Changeset 848 for spec/trunk/SPECS/grep.spec
- Timestamp:
- Sep 12, 2016, 7:08:22 PM (9 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/grep.spec (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/grep.spec
r271 r848 1 #define svn_url e:/trees/grep/trunk 2 %define svn_url http://svn.netlabs.org/repos/ports/grep/trunk 3 %define svn_rev 1697 4 1 5 Summary: Pattern matching utilities 2 6 Name: grep 3 Version: 2. 104 Release: 2%{?dist}7 Version: 2.25 8 Release: 1%{?dist} 5 9 License: GPLv3+ 10 URL: http://www.gnu.org/software/grep/ 6 11 Group: Applications/Text 7 Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.xz8 Patch0: grep-os2.patch9 12 10 URL: http://www.gnu.org/software/grep/ 13 Vendor: bww bitwise works GmbH 14 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 11 15 12 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)13 16 BuildRequires: pcre-devel >= 3.9-10, gettext 14 #BuildRequires: texinfo15 #BuildRequires: autoconf automake17 BuildRequires: texinfo 18 BuildRequires: autoconf automake 16 19 17 20 %description … … 22 25 GNU grep is needed by many scripts, so it shall be installed on every system. 23 26 27 %debug_package 28 24 29 %prep 30 %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} 25 31 %setup -q 26 %patch0 -p1 32 %else 33 %setup -n "%{name}-%{version}" -Tc 34 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 35 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 36 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 37 %endif 27 38 28 39 %build 29 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe" 30 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 31 export LIBS="-lurpo -lmmap" 32 export CPPFLAGS="-I%{_includedir}/pcre" 33 %configure \ 34 --without-included-regex \ 35 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 40 # we do autoreconf even fedora doesn't do it 41 autoreconf -fi 42 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 43 %configure --without-included-regex --disable-silent-rules \ 44 CPPFLAGS="-I%{_includedir}/pcre" 36 45 make %{?_smp_mflags} 37 46 … … 41 50 gzip $RPM_BUILD_ROOT%{_infodir}/grep* 42 51 rm -f $RPM_BUILD_ROOT%{_infodir}/dir 43 rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias44 52 45 #%find_lang %name53 %find_lang %name 46 54 47 #%check55 %check 48 56 #make check 49 57 … … 51 59 rm -rf ${RPM_BUILD_ROOT} 52 60 53 %files 54 # -f %{name}.lang 61 %post 62 #/sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/grep.info.gz || : 63 64 %preun 65 #if [ $1 = 0 ]; then 66 # /sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/grep.info.gz || : 67 #fi 68 69 %files -f %{name}.lang 55 70 %defattr(-,root,root) 56 %doc ABOUT-NLS AUTHORS THANKS TODO NEWS README ChangeLog COPYING 71 %doc AUTHORS THANKS TODO NEWS 72 %{!?_licensedir:%global license %%doc} 73 %license COPYING 74 57 75 %{_bindir}/* 76 %exclude %{_bindir}/*.dbg 58 77 %{_infodir}/*.info*.gz 59 78 %{_mandir}/*/* 60 %{_datadir}/locale/*61 79 62 80 %changelog 81 * Mon Sep 12 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.25-1 82 - update to version 2.25 83 63 84 * Sun Jan 08 2012 yd 64 85 - initial unixroot build.
Note:
See TracChangeset
for help on using the changeset viewer.
