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

Annotation of /cauldron/afterstep/current/SPECS/afterstep.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30