Changeset 961
- Timestamp:
- Feb 8, 2017, 1:36:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/which.spec
r429 r961 1 #2 # How to prepare a new source ZIP from SVN:3 # 1. svn export -r NNN SVN_URL NAME-rNNN4 # 2. zip -SrX9 NAME-rNNN.zip which-rXXX5 #6 7 1 Summary: Locate a program file in the user's paths 8 2 Name: which 9 3 Version: 1.0 10 Release: 1%{?dist}4 Release: 2%{?dist} 11 5 License: none 12 6 URL: http://sources.freebsd.org/releng/10.0/usr.bin/which/ … … 14 8 Group: Applications/System 15 9 16 %define svn_url http://svn.netlabs.org/repos/ports/which/trunk 17 %define svn_rev 733 10 %scm_source svn http://svn.netlabs.org/repos/ports/which/trunk 733 18 11 19 Source: %{name}-%{version}-r%{svn_rev}.zip 20 21 BuildRequires: gcc make subversion 12 BuildRequires: gcc make 22 13 23 14 %description … … 25 16 that would be run had these commands actually been invoked. 26 17 18 %debug_package 19 27 20 %prep 28 %if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi') 29 %setup -q 30 %else 31 %setup -n "%{name}-%{version}" -Tc 32 svn export -r %{svn_rev} %{svn_url} . --force 33 rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" 34 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}") 35 %endif 21 %scm_setup 36 22 37 23 %build 38 24 export CFLAGS="$RPM_OPT_FLAGS" 39 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp "25 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp -lcx" 40 26 make -f Makefile.os2 41 27 … … 51 37 52 38 %files 53 %defattr(-,root,root)54 39 %{_bindir}/which.exe 55 40 %{_mandir}/man1/which.1* 56 41 57 42 %changelog 43 * Wed Feb 8 2017 Dmitriy Kuminov <coding@dmik.org> 1.0-2 44 - Build against LIBCx to enable EXCEPTQ trap report generation. 45 - Add debug info package. 46 - Use scm_source/scm_setup for downloading sources. 58 47 59 48 * Wed Jun 4 2014 Dmitriy Kuminov <coding@dmik.org> 1.0-1
Note:
See TracChangeset
for help on using the changeset viewer.