source: spec/trunk/SPECS/findutils.spec@ 855

Last change on this file since 855 was 855, checked in by Silvan Scherrer, 9 years ago

spec: findutils: update to version 4.6.0

File size: 3.4 KB
Line 
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
5Summary: The GNU versions of find utilities (find and xargs)
6Name: findutils
7Version: 4.6.0
8Release: 1%{?dist}
9Epoch: 1
10License: GPLv3+
11Group: Applications/File
12URL: http://www.gnu.org/software/findutils/
13Vendor: bww bitwise works GmbH
14Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
15
16Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17BuildRequires: libtool, automake, autoconf
18BuildRequires: texinfo
19#BuildRequires: dejagnu
20
21#Requires(post): /sbin/install-info
22#Requires(preun): /sbin/install-info
23
24%description
25The findutils package contains programs which will help you locate
26files on your system. The find utility searches through a hierarchy
27of directories looking for files which match a certain set of criteria
28(such as a file name pattern). The xargs utility builds and executes
29command lines from standard input arguments (usually lists of file
30names generated by the find command).
31
32You should install findutils because it includes tools that are very
33useful for finding things on your system.
34
35%debug_package
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}
39%setup -q
40%else
41%setup -n "%{name}-%{version}" -Tc
42svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
43rm -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
47autoreconf -fiv
48
49%build
50export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
51export LIBS="-lcx -lpthread"
52%configure
53
54make %{?_smp_mflags}
55
56#%check
57#make check
58
59%install
60rm -rf $RPM_BUILD_ROOT
61make install DESTDIR=$RPM_BUILD_ROOT
62
63rm -f %{buildroot}%{_infodir}/dir
64
65# yd move conflicting tools to libexec/bin and place a symlink for script compatibility
66mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/bin
67for i in find; do
68 mv $RPM_BUILD_ROOT%{_bindir}/$i.exe $RPM_BUILD_ROOT%{_libexecdir}/bin/$i.exe
69 ln -s %{_libexecdir}/bin/$i.exe $RPM_BUILD_ROOT%{_bindir}/$i
70done
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
86%clean
87rm -rf $RPM_BUILD_ROOT
88
89%files -f %{name}.lang
90%defattr(-,root,root,-)
91%{!?_licensedir:%global license %%doc}
92%license COPYING
93%doc AUTHORS NEWS README THANKS TODO
94%{_bindir}/find
95%{_bindir}/xargs.exe
96%{_bindir}/locate.exe
97%{_bindir}/updatedb
98%{_libexecdir}/*
99%{_mandir}/man1/*
100%{_mandir}/man5/*
101%{_infodir}/find.info*
102%{_infodir}/find-maint.info
103%{_datadir}/locale/*
104%exclude %{_libexecdir}/*.dbg
105%exclude %{_libexecdir}/bin/*.dbg
106
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
111
112* Sat Mar 15 2014 yd
113- fixed libexec dir for symlinks.
114- added debug package with symbolic info for exceptq.
115
116* Tue Jul 30 2013 yd
117- disabled FTS code, now find works as before.
118
119* Wed Jul 24 2013 yd
120- move conflicting tools to libexec/bin.
121
122* Wed Jun 05 2013 yd
123- r641, fix xargs stop in freadahead.
124
125* Thu Mar 14 2013 yd
126- rename find.exe to find-unix.exe and add symlink.
127
128* Sun Jan 08 2012 yd
129- initial unixroot build
Note: See TracBrowser for help on using the repository browser.