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 |
|
|
Release: %mkrel 1 |
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 |
nanardon |
95592 |
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 |
wally |
223746 |
Requires: desktop-common-data |
37 |
|
|
Requires: xli |
38 |
|
|
Suggests: asclock |
39 |
|
|
# Requires: %libname = %{epoch}:%{version}-%{release} |
40 |
wally |
223747 |
Obsoletes: AfterStep < 4:2.2.11-8 |
41 |
nanardon |
95592 |
|
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 |
wally |
223747 |
Obsoletes: %{_lib}AfterStep0 < 4:2.2.11-8 |
59 |
nanardon |
95592 |
|
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 |
wally |
223746 |
Provides: %name-devel |
78 |
|
|
Provides: lib%name-devel |
79 |
nanardon |
95592 |
Requires: %libname = %{epoch}:%version-%release |
80 |
wally |
223746 |
Obsoletes: %{_lib}AfterStep0-devel |
81 |
wally |
223747 |
Obsoletes: %{_lib}AfterStep-devel < 4:2.2.11-8 |
82 |
nanardon |
95592 |
|
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 |
remmy |
664817 |
%setup -q -n %{name}-devel-%{version} |
100 |
nanardon |
95592 |
|
101 |
|
|
# LMDK patches |
102 |
|
|
%patch2 -p1 |
103 |
|
|
%patch3 -p1 |
104 |
remmy |
202881 |
%patch6 -p0 |
105 |
remmy |
664817 |
%patch7 -p1 |
106 |
|
|
%patch8 -p1 |
107 |
nanardon |
95592 |
|
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 |
shlomif |
134346 |
# 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 |
nanardon |
95592 |
|
142 |
|
|
if [ -x /usr/bin/sgml2html ]; then sgml2html doc/afterstep.sgml; fi |
143 |
|
|
|
144 |
|
|
|
145 |
|
|
%install |
146 |
|
|
%makeinstall_std LDCONFIG=/bin/true |
147 |
|
|
|
148 |
|
|
# LMDK icons |
149 |
remmy |
202881 |
install -m644 %SOURCE4 -D %{buildroot}%{_iconsdir}/%{casedname}.png |
150 |
|
|
install -m644 %SOURCE3 -D %{buildroot}%{_miconsdir}/%{casedname}.png |
151 |
|
|
install -m644 %SOURCE5 -D %{buildroot}%{_liconsdir}/%{casedname}.png |
152 |
nanardon |
95592 |
|
153 |
nanardon |
95602 |
# Not needed with Mageia menu |
154 |
remmy |
202881 |
rm -rf %{buildroot}%{__datadir}/afterstep/start/Applications/ |
155 |
|
|
rm -rf %{buildroot}%{_datadir}/xsessions/AfterStep.desktop |
156 |
nanardon |
95592 |
|
157 |
remmy |
202881 |
install -d %{buildroot}%{_sysconfdir}/X11/wmsession.d |
158 |
|
|
cat > %{buildroot}%{_sysconfdir}/X11/wmsession.d/15%{name} << EOF |
159 |
|
|
NAME=%{casedname} |
160 |
|
|
ICON=%{casedname}.png |
161 |
|
|
EXEC=%{_bindir}/%{name} |
162 |
nanardon |
95592 |
DESC=A NeXt like Window-Manager |
163 |
|
|
SCRIPT: |
164 |
remmy |
202881 |
exec %{_bindir}/%{name} |
165 |
nanardon |
95592 |
EOF |
166 |
|
|
|
167 |
|
|
%files |
168 |
|
|
%config(noreplace) %{_sysconfdir}/X11/wmsession.d/15%{name} |
169 |
remmy |
664817 |
%doc COPYRIGHT ChangeLog NEW README TEAM doc/languages doc/licences |
170 |
remmy |
202881 |
%{_iconsdir}/%{casedname}.png |
171 |
|
|
%{_miconsdir}/%{casedname}.png |
172 |
|
|
%{_liconsdir}/%{casedname}.png |
173 |
nanardon |
95592 |
%{_bindir}/* |
174 |
|
|
%{_mandir}/man1/* |
175 |
|
|
%{_mandir}/man3/* |
176 |
remmy |
202881 |
%dir %{_datadir}/%{name} |
177 |
|
|
%{_datadir}/%{name}/* |
178 |
nanardon |
95592 |
|
179 |
|
|
%files -n %libname |
180 |
|
|
%{_libdir}/*.so.%major |
181 |
|
|
%{_libdir}/*.so.%major.* |
182 |
|
|
|
183 |
|
|
%files -n %libname_devel |
184 |
|
|
%{_libdir}/*.so |
185 |
|
|
%{_libdir}/*.a |
186 |
|
|
%_includedir/* |