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