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