]> git.pld-linux.org Git - packages/wine.git/commitdiff
- no_install_post_strip and stripping in %%install are back! wine-20011108-5
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 20 Dec 2001 23:45:15 +0000 (23:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fixed chpax, release 5

Changed files:
    wine.spec -> 1.56

wine.spec

index 54418b5dde609bbe549148b67adc26eb149d5299..fb502d4f69d149a9fc7cdd3ffe8ded6bdb86096b 100644 (file)
--- a/wine.spec
+++ b/wine.spec
@@ -4,7 +4,7 @@ Summary(pl):    Program pozwalaj
 Summary(pt_BR):        Executa programas Windows no Linux
 Name:          wine
 Version:       20011108
-Release:       4
+Release:       5
 License:       distributable
 Group:         Applications/Emulators
 Group(de):     Applikationen/Emulators
@@ -31,6 +31,7 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _prefix         /usr/X11R6
 %define                _mandir         %{_prefix}/man
 %define                _winedir        %{_datadir}/%{name}
+%define no_install_post_strip 1
 
 %description
 Wine is a program which allows running Microsoft Windows programs
@@ -75,13 +76,13 @@ Requires:   %{name} = %{version}
 %description devel
 Wine - header files.
 
-%description -l es devel
+%description devel -l es
 Biblioteca de desarrollo de wine.
 
-%description -l pl devel
+%description devel -l pl
 Wine - pliki nag³ówkowe.
 
-%description -l pt_BR devel
+%description devel -l pt_BR
 Arquivos de inclusão e bibliotecas para desenvolver aplicações com o
 WINE.
 
@@ -145,21 +146,29 @@ vcr=mciviscd.drv
 MPEGVideo=mciqtz.drv
 EOF
 
-
 gzip -9nf README WARRANTY LICENSE DEVELOPERS-HINTS ChangeLog BUGS AUTHORS ANNOUNCE
 
-%__spec_install_post        
-%{__arch_install_post}
-%{__os_install_post}
-chpax -p $RPM_BUILD_ROOT%{_bindir}/wine
-%{nil}
-
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+echo "Strip executable binaries and shared object files."
+filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*"`
+elfexelist=`echo $filelist | xargs -r file | \
+       awk '/ELF.*executable/ {print $1}' | cut -d: -f1`
+elfsharedlist=`echo $filelist | xargs -r file | \
+       awk '/LF.*shared object/ {print $1}' | cut -d: -f1`; \
+if [ -n "$elfexelist" ]; then \
+       strip -R .note -R .comment $elfexelist
+fi
+if [ -n "$elfsharedlist" ]; then
+       strip --strip-unneeded -R .note  -R .comment $elfsharedlist
+fi
+
+/sbin/chpax -p $RPM_BUILD_ROOT%{_bindir}/wine
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc {README,WARRANTY,LICENSE,DEVELOPERS-HINTS,ChangeLog,BUGS,AUTHORS,ANNOUNCE}.gz
This page took 0.037932 seconds and 4 git commands to generate.