/[packages]/cauldron/AfterStep/current/SPECS/AfterStep.spec
ViewVC logotype

Contents of /cauldron/AfterStep/current/SPECS/AfterStep.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 186393 - (show annotations) (download)
Fri Dec 23 01:22:59 2011 UTC (12 years, 4 months ago) by fwang
File size: 5874 byte(s)
rebuild for new libtiff
1 %define name AfterStep
2 %define version 2.2.11
3 %define release %mkrel 6
4 %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 Patch5: AfterStep-2.2.11-libpng15.patch
27
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 %patch5 -p0 -b .libpng
102
103 %build
104 rm -f config.status
105 export CFLAGS="%optflags"
106 export CCFLAGS="%optflags"
107
108 %configure2_5x \
109 --enable-sharedlibs \
110 --with-imageloader="xsetbg" \
111 --with-helpcommand="xterm -fn 9x15 -e man" \
112 --with-desktops=1 \
113 --with-deskgeometry=1x1 \
114 --enable-different-looknfeels \
115 --enable-i18n \
116 --enable-savewindows \
117 --enable-texture \
118 --enable-shade \
119 --enable-virtual \
120 --enable-saveunders \
121 --enable-windowlist \
122 --enable-availability \
123 --enable-shaping \
124 --enable-xinerama \
125 --enable-script \
126 --with-xpm \
127 --with-jpeg \
128 --with-png \
129 --with-ttf \
130 --with-tiff
131
132 # We're using make here instead of the built-in macro percent-make because the AfterStep
133 # build-system lacks some dependencies which makes it fail sometimes with parallel
134 # builds (-j).
135 make
136
137 if [ -x /usr/bin/sgml2html ]; then sgml2html doc/afterstep.sgml; fi
138
139
140 %install
141 rm -rf $RPM_BUILD_ROOT
142 %makeinstall_std LDCONFIG=/bin/true
143
144 # LMDK icons
145 install -m644 %SOURCE4 -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
146 install -m644 %SOURCE3 -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
147 install -m644 %SOURCE5 -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png
148
149 # Not needed with Mageia menu
150 rm -fr $RPM_BUILD_ROOT/%{__datadir}/afterstep/start/Applications/
151
152 install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmsession.d
153 cat > $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmsession.d/15%{name} << EOF
154 NAME=%{name}
155 ICON=%{name}.png
156 EXEC=%{_bindir}/afterstep
157 DESC=A NeXt like Window-Manager
158 SCRIPT:
159 exec %{_bindir}/afterstep
160 EOF
161
162 %clean
163 rm -rf $RPM_BUILD_ROOT
164
165 %files
166 %defattr(-,root,root)
167 %config(noreplace) %{_sysconfdir}/X11/wmsession.d/15%{name}
168 %doc COPYRIGHT ChangeLog NEW README TEAM UPGRADE doc/languages doc/licences
169 %{_iconsdir}/%{name}.png
170 %{_miconsdir}/%{name}.png
171 %{_liconsdir}/%{name}.png
172 %{_bindir}/*
173 %{_mandir}/man1/*
174 %{_mandir}/man3/*
175 %dir %{_datadir}/afterstep
176 %{_datadir}/afterstep/*
177 %_datadir/xsessions/AfterStep.desktop
178
179 %files -n %libname
180 %defattr(-,root,root,-)
181 %{_libdir}/*.so.%major
182 %{_libdir}/*.so.%major.*
183
184 %files -n %libname_devel
185 %defattr(-,root,root,-)
186 %{_libdir}/*.so
187 %{_libdir}/*.a
188 %_includedir/*

  ViewVC Help
Powered by ViewVC 1.1.30