Changeset 513
- Timestamp:
- Feb 2, 2015, 6:10:43 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/file.spec
r168 r513 1 #define svn_url F:/rd/ports/file/trunk 2 %define svn_url http://svn.netlabs.org/repos/ports/file/trunk 3 %define svn_rev 266 4 1 5 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} 2 6 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} … … 6 10 Name: file 7 11 Version: 5.04 8 Release: 6%{?dist}12 Release: 7%{?dist} 9 13 License: BSD 10 14 Group: Applications/File 11 Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz12 15 URL: http://www.darwinsys.com/file/ 13 16 14 Patch0: file-os2.diff 17 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 15 18 16 19 Requires: file-libs = %{version}-%{release} … … 63 66 file(1) command. 64 67 68 %package debug 69 Summary: HLL debug data for exception handling support. 70 71 %description debug 72 HLL debug data for exception handling support. 73 65 74 %prep 66 67 # Don't use -b -- it will lead to poblems when compiling magic file 75 %if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi') 68 76 %setup -q 69 %patch0 -p1 77 %else 78 %setup -n "%{name}-%{version}" -T -c 79 svn export -r %{svn_rev} %{svn_url} . --force 80 rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" 81 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}") 82 %endif 70 83 71 84 #iconv -f iso-8859-1 -t utf-8 < doc/libmagic.man > doc/libmagic.man_ … … 74 87 75 88 %build 76 export CONFIG_S HELL="/bin/sh"89 export CONFIG_SITE="/@unixroot/usr/share/config.legacy" 77 90 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 78 91 export LIBS="-lurpo -lmmap" … … 80 93 %configure \ 81 94 --enable-fsect-man5 --disable-rpath \ 82 --disable-shared --disable-static \ 83 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 95 --disable-shared --disable-static 84 96 85 # remove hardcoded library paths from local libtool86 #sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool87 #sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool88 #export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/src/.libs89 97 make %{?_smp_mflags} 90 98 … … 118 126 rm -rf $RPM_BUILD_ROOT 119 127 120 #%post libs -p /sbin/ldconfig121 122 #%postun libs -p /sbin/ldconfig123 124 128 %files 125 129 %defattr(-,root,root,-) … … 152 156 %{_libdir}/python*/* 153 157 158 %files debug 159 %defattr(-,root,root) 160 %{_libdir}/*.dbg 161 154 162 %changelog 163 * Mon Feb 02 2015 yd <yd@os2power.com> 5.04-7 164 - r266, rebuilt with gcc 4.9.2 and python 2.7.
Note:
See TracChangeset
for help on using the changeset viewer.