/[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 873868 - (show annotations) (download)
Mon Sep 7 10:53:40 2015 UTC (8 years, 7 months ago) by cjw
File size: 6024 byte(s)
- patch9: fix build with gcc 5

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.12
10 Release: %mkrel 5
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 Patch6: %{name}-wharf.patch
24 Patch7: %{name}-2.2.12-libAfterImage-makefile.patch
25 Patch8: %{name}-2.2.12-winlist.patch
26 Patch9: afterstep-2.2.12-gcc5.patch
27 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 Requires: desktop-common-data
38 Requires: xli
39 Recommends: asclock
40 # Requires: %libname = %{epoch}:%{version}-%{release}
41 Obsoletes: AfterStep < 4:2.2.11-8
42
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 Obsoletes: %{_lib}AfterStep0 < 4:2.2.11-8
60
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 Provides: %name-devel
79 Provides: lib%name-devel
80 Requires: %libname = %{epoch}:%version-%release
81 Obsoletes: %{_lib}AfterStep0-devel
82 Obsoletes: %{_lib}AfterStep-devel < 4:2.2.11-8
83
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 %setup -q -n %{name}-devel-%{version}
101
102 # LMDK patches
103 %patch2 -p1
104 %patch3 -p1
105 %patch6 -p0
106 %patch7 -p1
107 %patch8 -p1
108 %patch9 -p1 -b .gcc5
109
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 # 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
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 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
155 # Not needed with Mageia menu
156 rm -rf %{buildroot}%{__datadir}/afterstep/start/Applications/
157 rm -rf %{buildroot}%{_datadir}/xsessions/AfterStep.desktop
158
159 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 DESC=A NeXt like Window-Manager
165 SCRIPT:
166 exec %{_bindir}/%{name}
167 EOF
168
169 %files
170 %config(noreplace) %{_sysconfdir}/X11/wmsession.d/15%{name}
171 %doc COPYRIGHT ChangeLog NEW README TEAM 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 %{_libdir}/*.so.%major
183 %{_libdir}/*.so.%major.*
184
185 %files -n %libname_devel
186 %{_libdir}/*.so
187 %{_libdir}/*.a
188 %_includedir/*

  ViewVC Help
Powered by ViewVC 1.1.30