Changeset 859 for spec/trunk/SPECS
- Timestamp:
- Oct 14, 2016, 5:50:40 PM (9 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/cpio.spec (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/cpio.spec
r336 r859 1 #define svn_url e:/trees/cpio/trunk 2 %define svn_url http://svn.netlabs.org/repos/ports/cpio/trunk 3 %define svn_rev 1747 1 4 2 5 Summary: A GNU archiving program 3 6 Name: cpio 4 7 Version: 2.11 5 Release: 4%{?dist}8 Release: 5%{?dist} 6 9 License: GPLv3+ 7 10 Group: Applications/Archiving 8 11 URL: http://www.gnu.org/software/cpio/ 9 Source: ftp://ftp.gnu.org/gnu/cpio/cpio-%{version}.tar.gz 10 Source1: cpio.1 11 12 Patch1: cpio-os2.diff 12 Vendor: bww bitwise works GmbH 13 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 13 14 14 15 #Requires(post): /sbin/install-info 15 16 #Requires(preun): /sbin/install-info 16 #BuildRequires: texinfo, autoconf, gettext, rmt17 BuildRequires: gettext17 BuildRequires: texinfo, autoconf, gettext 18 #BuildRequires: rmt 18 19 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 20 19 21 Requires: gettext-libs 20 22 … … 33 35 Install cpio if you need a program to manage file archives. 34 36 37 %debug_package 38 39 35 40 %prep 41 %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} 36 42 %setup -q 37 %patch1 -p1 -b .os2~ 38 #autoheader 43 %else 44 %setup -n "%{name}-%{version}" -Tc 45 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 46 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 47 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 48 %endif 49 50 autoreconf -fvi 39 51 40 52 %build 41 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe" 42 export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -pedantic -fno-strict-aliasing -Wall" ; \ 43 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \ 44 export LIBS="-lintl -lurpo" ; \ 45 %configure --with-rmt="%{_sysconfdir}/rmt" \ 46 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 53 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 54 export LIBS="-lcx" 55 %configure --with-rmt="%{_sysconfdir}/rmt" 47 56 48 57 make %{?_smp_mflags} … … 55 64 rm -f $RPM_BUILD_ROOT%{_libexecdir}/rmt 56 65 rm -f $RPM_BUILD_ROOT%{_infodir}/dir 57 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1*58 install -c -p -m 0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man159 66 60 rm -f $RPM_BUILD_ROOT%{_usr}/lib/charset.alias 61 62 #%find_lang %{name} 67 %find_lang %{name} 63 68 64 69 %clean … … 82 87 #fi 83 88 84 %files 85 # -f %{name}.lang 89 %files -f %{name}.lang 86 90 %defattr(-,root,root,0755) 87 91 %doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING 88 %{_bindir}/* 92 %{_bindir}/*.exe 89 93 %{_mandir}/man*/* 90 94 %{_infodir}/*.info* … … 92 96 93 97 %changelog 98 * Fri Oct 14 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.11-5 99 - add debug package 100 - adapt to latest toolchain 101 94 102 * Mon Dec 03 2012 yd 95 103 - remove file name ending \r due to binary stdin. fixes ticket:16.
Note:
See TracChangeset
for help on using the changeset viewer.
