1 |
wally |
223746 |
%define major 0 |
2 |
|
|
%define libname %mklibname %{name} %{major} |
3 |
nanardon |
95592 |
%define libname_devel %mklibname %{name} -d |
4 |
wally |
223746 |
|
5 |
remmy |
202881 |
%define casedname AfterStep |
6 |
nanardon |
95592 |
|
7 |
wally |
223746 |
Summary: AfterStep Window Manager |
8 |
|
|
Name: afterstep |
9 |
remmy |
664817 |
Version: 2.2.12 |
10 |
umeabot |
953051 |
Release: %mkrel 6 |
11 |
nanardon |
95592 |
Epoch: 4 |
12 |
|
|
License: GPLv2+ |
13 |
|
|
Group: Graphical desktop/Other |
14 |
|
|
URL: http://www.afterstep.org/ |
15 |
|
|
|
16 |
remmy |
202881 |
Source: ftp://ftp.afterstep.org/stable/%{casedname}-%version.tar.bz2 |
17 |
|
|
Source1: %{casedname}-mdkconf.tar.bz2 |
18 |
|
|
Source3: %{casedname}.png |
19 |
|
|
Source4: %{casedname}32.png |
20 |
|
|
Source5: %{casedname}48.png |
21 |
|
|
Patch2: %{casedname}-1.8.9-menuname.patch |
22 |
|
|
Patch3: %{casedname}.MenuKey.patch |
23 |
|
|
Patch6: %{name}-wharf.patch |
24 |
remmy |
664817 |
Patch7: %{name}-2.2.12-libAfterImage-makefile.patch |
25 |
|
|
Patch8: %{name}-2.2.12-winlist.patch |
26 |
cjw |
873868 |
Patch9: afterstep-2.2.12-gcc5.patch |
27 |
nanardon |
95592 |
BuildRequires: libx11-devel |
28 |
|
|
BuildRequires: libxext-devel |
29 |
|
|
BuildRequires: libxinerama-devel |
30 |
|
|
BuildRequires: dbus-devel |
31 |
|
|
BuildRequires: freetype2-devel |
32 |
|
|
BuildRequires: jpeg-devel |
33 |
|
|
BuildRequires: librsvg-devel |
34 |
|
|
BuildRequires: png-devel |
35 |
|
|
BuildRequires: tiff-devel |
36 |
|
|
BuildRequires: gtk2-devel |
37 |
wally |
223746 |
Requires: desktop-common-data |
38 |
|
|
Requires: xli |
39 |
tv |
675551 |
Recommends: asclock |
40 |
wally |
223746 |
# Requires: %libname = %{epoch}:%{version}-%{release} |
41 |
wally |
223747 |
Obsoletes: AfterStep < 4:2.2.11-8 |
42 |
nanardon |
95592 |
|
43 |
|
|
%description |
44 |
|
|
AfterStep is a Window Manager for X which started by emulating the NEXTSTEP |
45 |
|
|
look and feel, but which has been significantly altered according to the |
46 |
|
|
requests of various users. Many adepts will tell you that NEXTSTEP is not |
47 |
|
|
only the most visually pleasant interface, but also one of the most functional |
48 |
|
|
and intuitive out there. AfterStep aims to incorporate the advantages of the |
49 |
|
|
NEXTSTEP interface, and add additional useful features. |
50 |
|
|
|
51 |
|
|
The developers of AfterStep have also worked very hard to ensure stability and |
52 |
|
|
a small program footprint. Without giving up too many features, AfterStep still |
53 |
|
|
works nicely in environments where memory is at a premium. |
54 |
|
|
|
55 |
|
|
%package -n %libname |
56 |
|
|
Summary: Libraries needed by AfterStep |
57 |
|
|
Group: Graphical desktop/Other |
58 |
|
|
Provides: lib%name = %version-%release |
59 |
wally |
223747 |
Obsoletes: %{_lib}AfterStep0 < 4:2.2.11-8 |
60 |
nanardon |
95592 |
|
61 |
|
|
%description -n %libname |
62 |
|
|
AfterStep is a Window Manager for X which started by emulating the NEXTSTEP |
63 |
|
|
look and feel, but which has been significantly altered according to the |
64 |
|
|
requests of various users. Many adepts will tell you that NEXTSTEP is not |
65 |
|
|
only the most visually pleasant interface, but also one of the most functional |
66 |
|
|
and intuitive out there. AfterStep aims to incorporate the advantages of the |
67 |
|
|
NEXTSTEP interface, and add additional useful features. |
68 |
|
|
|
69 |
|
|
The developers of AfterStep have also worked very hard to ensure stability and |
70 |
|
|
a small program footprint. Without giving up too many features, AfterStep still |
71 |
|
|
works nicely in environments where memory is at a premium. |
72 |
|
|
|
73 |
|
|
This package contains libraries needed by AfterStep package. |
74 |
|
|
|
75 |
|
|
%package -n %libname_devel |
76 |
|
|
Summary: Devel files needed to build applications based on AfterStep |
77 |
|
|
Group: Development/C |
78 |
wally |
223746 |
Provides: %name-devel |
79 |
|
|
Provides: lib%name-devel |
80 |
nanardon |
95592 |
Requires: %libname = %{epoch}:%version-%release |
81 |
wally |
223746 |
Obsoletes: %{_lib}AfterStep0-devel |
82 |
wally |
223747 |
Obsoletes: %{_lib}AfterStep-devel < 4:2.2.11-8 |
83 |
nanardon |
95592 |
|
84 |
|
|
%description -n %libname_devel |
85 |
|
|
AfterStep is a Window Manager for X which started by emulating the NEXTSTEP |
86 |
|
|
look and feel, but which has been significantly altered according to the |
87 |
|
|
requests of various users. Many adepts will tell you that NEXTSTEP is not |
88 |
|
|
only the most visually pleasant interface, but also one of the most functional |
89 |
|
|
and intuitive out there. AfterStep aims to incorporate the advantages of the |
90 |
|
|
NEXTSTEP interface, and add additional useful features. |
91 |
|
|
|
92 |
|
|
The developers of AfterStep have also worked very hard to ensure stability and |
93 |
|
|
a small program footprint. Without giving up too many features, AfterStep still |
94 |
|
|
works nicely in environments where memory is at a premium. |
95 |
|
|
|
96 |
|
|
This package contains devel files needed to build applications based on |
97 |
|
|
AfterStep. |
98 |
|
|
|
99 |
|
|
%prep |
100 |
remmy |
664817 |
%setup -q -n %{name}-devel-%{version} |
101 |
nanardon |
95592 |
|
102 |
|
|
# LMDK patches |
103 |
|
|
%patch2 -p1 |
104 |
|
|
%patch3 -p1 |
105 |
remmy |
202881 |
%patch6 -p0 |
106 |
remmy |
664817 |
%patch7 -p1 |
107 |
|
|
%patch8 -p1 |
108 |
cjw |
873868 |
%patch9 -p1 -b .gcc5 |
109 |
nanardon |
95592 |
|
110 |
|
|
%build |
111 |
|
|
rm -f config.status |
112 |
|
|
export CFLAGS="%optflags" |
113 |
|
|
export CCFLAGS="%optflags" |
114 |
|
|
|
115 |
|
|
%configure2_5x \ |
116 |
|
|
--enable-sharedlibs \ |
117 |
|
|
--with-imageloader="xsetbg" \ |
118 |
|
|
--with-helpcommand="xterm -fn 9x15 -e man" \ |
119 |
|
|
--with-desktops=1 \ |
120 |
|
|
--with-deskgeometry=1x1 \ |
121 |
|
|
--enable-different-looknfeels \ |
122 |
|
|
--enable-i18n \ |
123 |
|
|
--enable-savewindows \ |
124 |
|
|
--enable-texture \ |
125 |
|
|
--enable-shade \ |
126 |
|
|
--enable-virtual \ |
127 |
|
|
--enable-saveunders \ |
128 |
|
|
--enable-windowlist \ |
129 |
|
|
--enable-availability \ |
130 |
|
|
--enable-shaping \ |
131 |
|
|
--enable-xinerama \ |
132 |
|
|
--enable-script \ |
133 |
|
|
--with-xpm \ |
134 |
|
|
--with-jpeg \ |
135 |
|
|
--with-png \ |
136 |
|
|
--with-ttf \ |
137 |
|
|
--with-tiff |
138 |
|
|
|
139 |
shlomif |
134346 |
# We're using make here instead of the built-in macro percent-make because the AfterStep |
140 |
|
|
# build-system lacks some dependencies which makes it fail sometimes with parallel |
141 |
|
|
# builds (-j). |
142 |
|
|
make |
143 |
nanardon |
95592 |
|
144 |
|
|
if [ -x /usr/bin/sgml2html ]; then sgml2html doc/afterstep.sgml; fi |
145 |
|
|
|
146 |
|
|
|
147 |
|
|
%install |
148 |
|
|
%makeinstall_std LDCONFIG=/bin/true |
149 |
|
|
|
150 |
|
|
# LMDK icons |
151 |
remmy |
202881 |
install -m644 %SOURCE4 -D %{buildroot}%{_iconsdir}/%{casedname}.png |
152 |
|
|
install -m644 %SOURCE3 -D %{buildroot}%{_miconsdir}/%{casedname}.png |
153 |
|
|
install -m644 %SOURCE5 -D %{buildroot}%{_liconsdir}/%{casedname}.png |
154 |
nanardon |
95592 |
|
155 |
nanardon |
95602 |
# Not needed with Mageia menu |
156 |
remmy |
202881 |
rm -rf %{buildroot}%{__datadir}/afterstep/start/Applications/ |
157 |
|
|
rm -rf %{buildroot}%{_datadir}/xsessions/AfterStep.desktop |
158 |
nanardon |
95592 |
|
159 |
remmy |
202881 |
install -d %{buildroot}%{_sysconfdir}/X11/wmsession.d |
160 |
|
|
cat > %{buildroot}%{_sysconfdir}/X11/wmsession.d/15%{name} << EOF |
161 |
|
|
NAME=%{casedname} |
162 |
|
|
ICON=%{casedname}.png |
163 |
|
|
EXEC=%{_bindir}/%{name} |
164 |
nanardon |
95592 |
DESC=A NeXt like Window-Manager |
165 |
|
|
SCRIPT: |
166 |
remmy |
202881 |
exec %{_bindir}/%{name} |
167 |
nanardon |
95592 |
EOF |
168 |
|
|
|
169 |
|
|
%files |
170 |
|
|
%config(noreplace) %{_sysconfdir}/X11/wmsession.d/15%{name} |
171 |
remmy |
664817 |
%doc COPYRIGHT ChangeLog NEW README TEAM doc/languages doc/licences |
172 |
remmy |
202881 |
%{_iconsdir}/%{casedname}.png |
173 |
|
|
%{_miconsdir}/%{casedname}.png |
174 |
|
|
%{_liconsdir}/%{casedname}.png |
175 |
nanardon |
95592 |
%{_bindir}/* |
176 |
|
|
%{_mandir}/man1/* |
177 |
|
|
%{_mandir}/man3/* |
178 |
remmy |
202881 |
%dir %{_datadir}/%{name} |
179 |
|
|
%{_datadir}/%{name}/* |
180 |
nanardon |
95592 |
|
181 |
|
|
%files -n %libname |
182 |
|
|
%{_libdir}/*.so.%major |
183 |
|
|
%{_libdir}/*.so.%major.* |
184 |
|
|
|
185 |
|
|
%files -n %libname_devel |
186 |
|
|
%{_libdir}/*.so |
187 |
|
|
%{_libdir}/*.a |
188 |
|
|
%_includedir/* |