Changeset 855 for spec/trunk/SPECS/findutils.spec
- Timestamp:
- Oct 5, 2016, 10:49:10 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/findutils.spec
r386 r855 1 #define svn_url e:/trees/findutils/trunk 2 %define svn_url http://svn.netlabs.org/repos/ports/findutils/trunk 3 %define svn_rev 1720 4 1 5 Summary: The GNU versions of find utilities (find and xargs) 2 6 Name: findutils 3 Version: 4. 4.24 Release: 6%{?dist}7 Version: 4.6.0 8 Release: 1%{?dist} 5 9 Epoch: 1 6 10 License: GPLv3+ 7 11 Group: Applications/File 8 12 URL: http://www.gnu.org/software/findutils/ 9 Source0: ftp://ftp.gnu.org/gnu/findutils/%{name}-%{version}.tar.gz 10 11 Patch0: findutils-os2.patch 13 Vendor: bww bitwise works GmbH 14 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 12 15 13 16 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 14 #BuildRequires: libtool, automake, autoconf 15 #BuildRequires: dejagnu, texinfo 16 BuildRequires: gettext-devel 17 BuildRequires: libtool, automake, autoconf 18 BuildRequires: texinfo 19 #BuildRequires: dejagnu 20 21 #Requires(post): /sbin/install-info 22 #Requires(preun): /sbin/install-info 17 23 18 24 %description … … 27 33 useful for finding things on your system. 28 34 29 %package debug 30 Summary: HLL debug data for exception handling support. 31 32 %description debug 33 HLL debug data for exception handling support. 34 35 %debug_package 35 36 36 37 %prep 38 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0} 37 39 %setup -q 38 %patch0 -p1 40 %else 41 %setup -n "%{name}-%{version}" -Tc 42 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 43 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 44 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 45 %endif 46 47 autoreconf -fiv 39 48 40 49 %build 41 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe" 42 export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" 43 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 44 export LIBS="-lurpo -lmmap" 45 %configure \ 46 --without-fts \ 47 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 50 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 51 export LIBS="-lcx -lpthread" 52 %configure 53 48 54 make %{?_smp_mflags} 49 55 … … 55 61 make install DESTDIR=$RPM_BUILD_ROOT 56 62 57 rm -f $RPM_BUILD_ROOT%{_infodir}/dir 58 rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias 59 60 #%find_lang %{name} 61 62 # move find to /bin/find 63 #mkdir -p $RPM_BUILD_ROOT/bin 64 #mv $RPM_BUILD_ROOT{%_bindir,/bin}/find 65 66 # create /usr/bin/find -> /bin/find symlink 67 #ln -sf ../../bin/find $RPM_BUILD_ROOT/usr/bin 63 rm -f %{buildroot}%{_infodir}/dir 68 64 69 65 # yd move conflicting tools to libexec/bin and place a symlink for script compatibility … … 74 70 done 75 71 72 %find_lang %{name} 73 74 %post 75 #if [ -f %{_infodir}/find.info.gz ]; then 76 # /sbin/install-info %{_infodir}/find.info.gz %{_infodir}/dir || : 77 #fi 78 79 %preun 80 #if [ $1 = 0 ]; then 81 # if [ -f %{_infodir}/find.info.gz ]; then 82 # /sbin/install-info --delete %{_infodir}/find.info.gz %{_infodir}/dir || : 83 # fi 84 #fi 85 76 86 %clean 77 87 rm -rf $RPM_BUILD_ROOT 78 88 79 %files 80 # -f %{name}.lang 89 %files -f %{name}.lang 81 90 %defattr(-,root,root,-) 82 %doc AUTHORS COPYING NEWS README THANKS TODO 91 %{!?_licensedir:%global license %%doc} 92 %license COPYING 93 %doc AUTHORS NEWS README THANKS TODO 83 94 %{_bindir}/find 84 %{_bindir}/ftsfind.exe85 95 %{_bindir}/xargs.exe 86 96 %{_bindir}/locate.exe … … 92 102 %{_infodir}/find-maint.info 93 103 %{_datadir}/locale/* 94 %exclude %{_bindir}/*.dbg95 104 %exclude %{_libexecdir}/*.dbg 96 105 %exclude %{_libexecdir}/bin/*.dbg 97 106 98 %files debug 99 %defattr(-,root,root) 100 %{_bindir}/*.dbg 101 %{_libexecdir}/*.dbg 102 %{_libexecdir}/bin/*.dbg 107 %changelog 108 * Wed Oct 05 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 4.6.0-1 109 - udated version to 4.6.0 110 - adjusted spec to latest toolset 103 111 104 %changelog105 112 * Sat Mar 15 2014 yd 106 113 - fixed libexec dir for symlinks. … … 120 127 121 128 * Sun Jan 08 2012 yd 122 - initial unixroot build .129 - initial unixroot build
Note:
See TracChangeset
for help on using the changeset viewer.