packages: file/file.spec - release 3

glen glen at pld-linux.org
Wed May 25 19:49:54 CEST 2011


Author: glen                         Date: Wed May 25 17:49:54 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- release 3

---- Files affected:
packages/file:
   file.spec (1.182 -> 1.183) 

---- Diffs:

================================================================
Index: packages/file/file.spec
diff -u packages/file/file.spec:1.182 packages/file/file.spec:1.183
--- packages/file/file.spec:1.182	Wed May 25 19:48:05 2011
+++ packages/file/file.spec	Wed May 25 19:49:49 2011
@@ -30,7 +30,7 @@
 Summary(zh_TW.UTF-8):	用於決定檔案類型的一個工具程式。
 Name:		file
 Version:	5.07
-Release:	2
+Release:	3
 License:	distributable
 Group:		Applications/File
 Source0:	ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz
@@ -278,7 +278,7 @@
 
 %if %{with python}
 cd python
-python setup.py build
+%{__python} setup.py build
 cd ..
 %endif
 
@@ -308,16 +308,16 @@
 
 install -D magic/Localstuff $RPM_BUILD_ROOT%{_sysconfdir}/magic
 
-cat magic/Header magic/Magdir/* %{SOURCE2} %{SOURCE3} >$RPM_BUILD_ROOT%{_datadir}/misc/magic
+cat magic/Header magic/Magdir/* %{SOURCE2} %{SOURCE3} > $RPM_BUILD_ROOT%{_datadir}/misc/magic
 awk -f %{SOURCE4} < $RPM_BUILD_ROOT%{_datadir}/misc/magic > $RPM_BUILD_ROOT%{_datadir}/misc/magic.mime
 
-bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
-
 src/file -m $RPM_BUILD_ROOT%{_datadir}/misc/magic -c -C
+ln -s misc $RPM_BUILD_ROOT%{_datadir}/file
+
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 rm -f $RPM_BUILD_ROOT%{_mandir}/README.file-non-english-man-pages
 rm -f $RPM_BUILD_ROOT%{_mandir}/file-magic4.diff
 
-ln -s misc $RPM_BUILD_ROOT%{_datadir}/file
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -390,6 +390,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.183  2011/05/25 17:49:49  glen
+- release 3
+
 Revision 1.182  2011/05/25 17:48:05  glen
 - upload new non-english-man-pages tarball instead of patching here
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/file/file.spec?r1=1.182&r2=1.183&f=u



More information about the pld-cvs-commit mailing list