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

Diff of /cauldron/AfterStep/current/SPECS/afterstep.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 199703 by fwang, Fri Dec 23 01:22:59 2011 UTC revision 202881 by remmy, Sun Jan 29 14:17:59 2012 UTC
# Line 1  Line 1 
1  %define name    AfterStep  %define name    afterstep
2  %define version 2.2.11  %define version 2.2.11
3  %define release %mkrel 6  %define release %mkrel 7
4  %define major   0  %define major   0
5  %define libname %mklibname %{name} %{major}  %define libname %mklibname %{name} %{major}
6  %define libname_devel   %mklibname %{name} -d  %define libname_devel   %mklibname %{name} -d
7  %define ltitle  AfterStep Window Manager  %define ltitle  AfterStep Window Manager
8    %define casedname AfterStep
9    
10  Summary:        %{ltitle}  Summary:        %{ltitle}
11  Name:           %{name}  Name:           %{name}
# Line 15  License:       GPLv2+ Line 16  License:       GPLv2+
16  Group:          Graphical desktop/Other  Group:          Graphical desktop/Other
17  URL:            http://www.afterstep.org/  URL:            http://www.afterstep.org/
18    
19  Source:         ftp://ftp.afterstep.org/stable/AfterStep-%version.tar.bz2  Source:         ftp://ftp.afterstep.org/stable/%{casedname}-%version.tar.bz2
20  Source1:        %{name}-mdkconf.tar.bz2  Source1:        %{casedname}-mdkconf.tar.bz2
21  Source3:        %{name}.png  Source3:        %{casedname}.png
22  Source4:        %{name}32.png  Source4:        %{casedname}32.png
23  Source5:        %{name}48.png  Source5:        %{casedname}48.png
24  Patch2:         %{name}-1.8.9-menuname.patch  Patch2:         %{casedname}-1.8.9-menuname.patch
25  Patch3:         %{name}.MenuKey.patch  Patch3:         %{casedname}.MenuKey.patch
26  Patch4:         afterstep-2.2.9-ldflags.patch  Patch4:         %{name}-2.2.9-ldflags.patch
27  Patch5:         AfterStep-2.2.11-libpng15.patch  Patch5:         %{casedname}-2.2.11-libpng15.patch
28    Patch6:         %{name}-wharf.patch
29    
30    %rename         %{casedname}
31  Requires:       desktop-common-data xli  Requires:       desktop-common-data xli
32    Suggests:       asclock
33  # Requires:     %libname = %{epoch}:%{version}-%{release}  # Requires:     %libname = %{epoch}:%{version}-%{release}
34  BuildRequires:  libx11-devel  BuildRequires:  libx11-devel
35  BuildRequires:  libxext-devel  BuildRequires:  libxext-devel
# Line 54  works nicely in environments where memor Line 58  works nicely in environments where memor
58  Summary:        Libraries needed by AfterStep  Summary:        Libraries needed by AfterStep
59  Group:          Graphical desktop/Other  Group:          Graphical desktop/Other
60  Provides:       lib%name = %version-%release  Provides:       lib%name = %version-%release
61    %rename         lib%{casedname}
62    
63  %description -n %libname  %description -n %libname
64  AfterStep is a Window Manager for X which started by emulating the NEXTSTEP  AfterStep is a Window Manager for X which started by emulating the NEXTSTEP
# Line 75  Group:         Development/C Line 80  Group:         Development/C
80  Provides:       %name-devel lib%name-devel  Provides:       %name-devel lib%name-devel
81  Requires:       %libname = %{epoch}:%version-%release  Requires:       %libname = %{epoch}:%version-%release
82  Obsoletes:      %mklibname -d %name 0  Obsoletes:      %mklibname -d %name 0
83    %rename         lib%{casedname}_devel
84    
85  %description -n %libname_devel  %description -n %libname_devel
86  AfterStep is a Window Manager for X which started by emulating the NEXTSTEP  AfterStep is a Window Manager for X which started by emulating the NEXTSTEP
# Line 92  This package contains devel files needed Line 98  This package contains devel files needed
98  AfterStep.  AfterStep.
99    
100  %prep  %prep
101  %setup -q  %setup -q -n %{casedname}-%{version}
102    
103  # LMDK patches  # LMDK patches
104  %patch2 -p1  %patch2 -p1
105  %patch3 -p1  %patch3 -p1
106  %patch4 -p0 -b .link  %patch4 -p0 -b .link
107  %patch5 -p0 -b .libpng  %patch5 -p0 -b .libpng
108    %patch6 -p0
109    
110  %build  %build
111  rm -f config.status  rm -f config.status
# Line 138  if [ -x /usr/bin/sgml2html ]; then sgml2 Line 145  if [ -x /usr/bin/sgml2html ]; then sgml2
145    
146    
147  %install  %install
148  rm -rf $RPM_BUILD_ROOT  rm -rf %{buildroot}
149  %makeinstall_std LDCONFIG=/bin/true  %makeinstall_std LDCONFIG=/bin/true
150    
151  # LMDK icons  # LMDK icons
152  install -m644 %SOURCE4 -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png  install -m644 %SOURCE4 -D %{buildroot}%{_iconsdir}/%{casedname}.png
153  install -m644 %SOURCE3 -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png  install -m644 %SOURCE3 -D %{buildroot}%{_miconsdir}/%{casedname}.png
154  install -m644 %SOURCE5 -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png  install -m644 %SOURCE5 -D %{buildroot}%{_liconsdir}/%{casedname}.png
155    
156  # Not needed with Mageia menu  # Not needed with Mageia menu
157  rm -fr $RPM_BUILD_ROOT/%{__datadir}/afterstep/start/Applications/  rm -rf %{buildroot}%{__datadir}/afterstep/start/Applications/
158    rm -rf %{buildroot}%{_datadir}/xsessions/AfterStep.desktop
159    
160  install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmsession.d  install -d %{buildroot}%{_sysconfdir}/X11/wmsession.d
161  cat > $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmsession.d/15%{name} << EOF  cat > %{buildroot}%{_sysconfdir}/X11/wmsession.d/15%{name} << EOF
162  NAME=%{name}  NAME=%{casedname}
163  ICON=%{name}.png  ICON=%{casedname}.png
164  EXEC=%{_bindir}/afterstep  EXEC=%{_bindir}/%{name}
165  DESC=A NeXt like Window-Manager  DESC=A NeXt like Window-Manager
166  SCRIPT:  SCRIPT:
167  exec %{_bindir}/afterstep  exec %{_bindir}/%{name}
168  EOF  EOF
169    
 %clean  
 rm -rf $RPM_BUILD_ROOT  
   
170  %files  %files
171  %defattr(-,root,root)  %defattr(-,root,root)
172  %config(noreplace) %{_sysconfdir}/X11/wmsession.d/15%{name}  %config(noreplace) %{_sysconfdir}/X11/wmsession.d/15%{name}
173  %doc COPYRIGHT ChangeLog NEW README TEAM UPGRADE doc/languages doc/licences  %doc COPYRIGHT ChangeLog NEW README TEAM UPGRADE doc/languages doc/licences
174  %{_iconsdir}/%{name}.png  %{_iconsdir}/%{casedname}.png
175  %{_miconsdir}/%{name}.png  %{_miconsdir}/%{casedname}.png
176  %{_liconsdir}/%{name}.png  %{_liconsdir}/%{casedname}.png
177  %{_bindir}/*  %{_bindir}/*
178  %{_mandir}/man1/*  %{_mandir}/man1/*
179  %{_mandir}/man3/*  %{_mandir}/man3/*
180  %dir %{_datadir}/afterstep  %dir %{_datadir}/%{name}
181  %{_datadir}/afterstep/*  %{_datadir}/%{name}/*
 %_datadir/xsessions/AfterStep.desktop  
182    
183  %files -n %libname  %files -n %libname
184  %defattr(-,root,root,-)  %defattr(-,root,root,-)

Legend:
Removed from v.199703  
changed lines
  Added in v.202881

  ViewVC Help
Powered by ViewVC 1.1.28