source: projects/specs/trunk/s/slocate/slocate-vl.spec @ 3518

Revision 3518, 9.0 KB checked in by iwaim, 13 years ago (diff)

slocate 2.7-25vl6

Line 
1Summary:     Finds files on a system via a central database.
2Summary(ja): システム上のファイルをデータベースを使って検索します
3Name: slocate
4Version: 2.7
5Release: 25%{?_dist_release}
6License: GPL
7Group: Applications/System
8Source0: http://ftp.debian.org/debian/pool/main/s/slocate/slocate_2.7-4.tar.gz
9Source1: slocate.cron
10Source2: updatedb.conf
11Source3: updatedb.conf.5
12Patch0: slocate-2.7-4.info.patch
13Patch1: slocate-wht.patch
14Patch2: slocate-2.6-manpage.patch
15Patch3: slocate-2.7-fts.patch
16Patch4: slocate-2.7-lazy-mtab.patch
17Patch5: slocate-2.7-4.autofoo.patch
18Patch6: slocate-2.7-4.bounds.patch
19Patch7: slocate-2.7-4.config.patch
20BuildRequires: gzip
21Prereq: shadow-utils
22Buildroot: %{_tmppath}/%{name}-%{version}-root
23
24
25%description
26Slocate is a security-enhanced version of locate. Just like locate,
27slocate searches through a central database (which is updated nightly)
28for files which match a given pattern. Slocate allows you to quickly
29find files anywhere on your system.
30
31%description -l ja
32slocate は locate のセキュリティ対策バージョンです.locate と同様に,
33slocate は (毎晩自動更新される) データベースを元に,指定したパターンに
34マッチするファイルを検索します.slocate を使って,システム上のどこにある
35ファイルでも高速に探し出すことが出来ます.
36
37
38%prep
39%setup -q
40%patch0 -p1 -b .info
41%patch1 -p1 -b .wht
42# *sigh*
43gunzip doc/*.gz
44%patch2 -p1 -b .manpage
45%patch3 -p1 -b .fts
46%patch4 -p1 -b .lazy
47%patch5 -p1 -b .autofoo
48%patch6 -p1 -b .bounds
49%patch7 -p1 -b .config
50
51%build
52autoreconf -f -i
53CFLAGS="$RPM_OPT_FLAGS -fsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64" %configure
54make
55
56
57%install
58rm -rf $RPM_BUILD_ROOT
59mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man{1,5}}
60mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
61mkdir -p $RPM_BUILD_ROOT/var/lib/slocate
62install slocate $RPM_BUILD_ROOT%{_bindir}
63ln -sf slocate $RPM_BUILD_ROOT%{_bindir}/locate
64ln -sf slocate $RPM_BUILD_ROOT%{_bindir}/updatedb
65install doc/slocate.1.linux $RPM_BUILD_ROOT%{_mandir}/man1/slocate.1
66install doc/updatedb.1 $RPM_BUILD_ROOT%{_mandir}/man1
67ln -sf slocate.1 $RPM_BUILD_ROOT%{_mandir}/man1/locate.1
68install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
69install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
70install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/man5
71
72
73%clean
74rm -rf $RPM_BUILD_ROOT
75
76
77%pre
78/usr/sbin/groupadd -g 21 -r -f slocate
79
80
81%preun
82if [ "$1" = "0" ]; then
83  /usr/sbin/groupdel slocate
84  rm -f /var/lib/slocate/slocate.db
85fi
86
87
88%files
89%defattr(-,root,root)
90%doc ChangeLog INSTALL README LICENSE MIRRORS
91%attr(2755,root,slocate) %{_bindir}/slocate
92%attr(-,root,slocate) %{_bindir}/locate
93%attr(-,root,slocate) %{_bindir}/updatedb
94%attr(644,root,root) %{_mandir}/man[15]/*
95%attr(755,root,root) %{_sysconfdir}/cron.daily/slocate.cron
96%attr(644,root,root) %config %{_sysconfdir}/updatedb.conf
97%dir %attr(750,root,slocate) /var/lib/slocate
98
99
100%changelog
101* Sun Apr 17 2011 IWAI, Masaharu <iwai@alib.jp> 2.7-25vl6
102- build on current VineSeed
103
104* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 2.7-24vl5
105- applied new versioning policy, spec in utf-8
106
107* Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-24vl2
108- changed Group to Applications/System
109
110* Tue Aug 02 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-24vl1
111- added Patches based on Fedora development
112  * Tue Jun 21 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-24
113  - Add missing OOM handling to lazy-mtab.patch
114  * Sun May  1 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-23
115  - Remove "nodev" filesystems from PRUNEFS
116  * Sat Apr 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-22
117  - Point the user at updatedb.conf if the database is too old
118  * Sat Apr 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-21
119  - Don't assume paths in /etc/mtab don't contain symlinks (#139950, #110575)
120  - Use %%config(noreplace) for /etc/updatedb.conf (#155014)
121  * Sun Apr  3 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-20
122  - Don't run updatedb by default
123  * Tue Mar 29 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-19
124  - Add updatedb.conf(5) (#135952)
125  * Mon Mar 28 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-18
126  - Drop unnecessary BuildRequires: autoconf
127  - Remove /mnt/floppy from PRUNEPATHS, it's in /media now
128  * Fri Mar 25 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-17
129  - Update to debian slocate_2.7-4 (#151710)
130  - Fix comment parsing in /etc/updatedb.conf (#135952)
131  - Exclude /var/spool/squid and /var/spool/cups (#150388)
132  - Remove 'export' lines from /etc/updatedb.conf to avoid the false impression
133    that the file is a shell script
134  * Fri Mar  4 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-16
135  - Fix crash when no filesystems are pruned
136  - Rebuild with gcc 4
137  * Tue Feb 16 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-15
138  - Fix slocate-2.7-fts.patch
139  - Automatically prune all nodev filesystems, remove those entries from
140    PRUNEFS (#123914)
141  * Tue Feb 15 2005 Miloslav Trmac <mitr@redhat.com> - 2.7-14
142  - Process the filesystem type exclusion list when finding the mount points,
143    not only before starting the filesystem tree walk (#139950)
144  - Clean up the spec file (#135192, original patch by Robert Scheck)
145  * Wed Nov  3 2004 Thomas Woerner <twoerner@redhat.com> 2.7-13
146  - added /media to PRUNEPATHS
147  * Wed Oct 20 2004 Thomas Woerner <twoerner@redhat.com> 2.7-12
148  - added /mnt/floppy to PRUNEPATHS
149  * Fri May 21 2004 Bill Nottingham <notting@redhat.com> 2.7-10
150  - exclude cifs (#122499)
151  * Fri Apr 16 2004 Karsten Hopp <karsten@redhat.de> 2.7-9
152  - exlude usbdevfs (#113816)
153  * Mon Mar 29 2004 Karsten Hopp <karsten@redhat.de> 2.7-8
154  - use included sl_fts.h, fix handling of large files (#105950)
155  - use one single file to configure updatedb (#112964)
156
157* Sun Feb 08 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-5vl1
158- updated 2.7 and added patch6 from Fedora 2.7-5
159  * Wed Jan 21 2004 Mark Cox <mjc@redhat.com>
160  - drop privs for non slocate gid databases (CAN-2003-0848)
161
162* Mon Oct 20 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6-10vl1
163- rebuild with new toolchains
164- s/Copyright/License/
165- based on Redhat Rawhide 2.6-10
166
167* Sat Jan 26 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.5-1vl3
168- fixed spec typo to install gzipped man page correctly
169
170* Mon Sep 03 2001 Toru Sagami <sagami@vinelinux.org>
171- 2.5-1vl2
172- place /var/lib in absolute without using %%_localstatedir macros
173
174* Sun Jan 14 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> 2.5-1vl1
175- based on 2.5-1 from Rawhide
176- rebuilt for Vine Linux
177- use better macros
178- added Japanese summary and description
179
180* Fri Jan  6 2001 Bill Nottingham <notting@redhat.com>
181- update to 2.5
182
183* Mon Dec 18 2000 Bill Nottingham <notting@redhat.com>
184- update to the mysterious 2.4 release
185
186* Mon Nov 27 2000 Bill Nottingham <notting@redhat.com>
187- update to 2.3; fixes database reading problem
188
189* Wed Aug 23 2000 Than Ngo <than@redhat.com>
190- add a default updatedb.conf (Bug #13475)
191
192* Wed Aug 23 2000 Jakub Jelinek <jakub@redhat.com>
193- fix build with glibc defining DT_WHT but not defining S_IFWHT.
194
195* Sun Jul 23 2000 Nalin Dahyabhai <nalin@redhat.com>
196- don't print a message telling how to rebuild the database if we're
197  rebuilding the database
198
199* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
200- automatic rebuild
201
202* Thu Jun 22 2000 Bill Nottingham <notting@redhat.com>
203- update to 2.2
204- fix it to not have debugging (oops)
205
206* Sat Jun 10 2000 Bill Nottingham <notting@redhat.com>
207- rebuild, FHS manpages, etc.
208
209* Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com>
210- simplify preun
211
212* Fri Mar 17 2000 Bill Nottingham <notting@redhat.com>
213- fix a segfault
214
215* Thu Feb  3 2000 Bill Nottingham <notting@redhat.com>
216- handle compressed man pages
217
218* Tue Oct 21 1999 Bill Nottingham <notting@redhat.com>
219- update to 2.1
220
221* Mon Oct 18 1999 Bill Nottingham <notting@redhat.com>
222- fix a bug that was causing segfaults.
223
224* Mon Sep 20 1999 Bill Nottingham <notting@redhat.com>
225- remove group database on final uninstall
226
227* Fri Sep 10 1999 Bill Nottingham <notting@redhat.com>
228- add a note about creating the database if opening of it fails.
229
230* Tue Jul  6 1999 Bill Nottingham <notting@redhat.com>
231- update to 2.0
232- use new -f (filesystem type) option to simplify cron script
233- link updatedb back to slocate to allow parsing of updatedb.conf
234  config files
235
236* Mon Jun 14 1999 Bill Nottingham <notting@redhat.com>
237- don't exclude VFAT partitions
238- add some docs
239
240* Tue Jun  1 1999 Jeff Johnson <jbj@redhat.com>
241- update to 1.6.
242- use /etc/cron.daily as /usr/bin/updatedb to more perfectly imitate the
243  findutils updatedb.
244- exclude vfat partitions too (#3164).
245
246* Tue May 11 1999 Bill Nottingham <notting@redhat.com>
247- update to 1.5
248- make database dir 0750
249
250* Mon Apr 19 1999 Bill Nottingham <notting@redhat.com>
251- fix updatedb cron script
252
253* Mon Apr 12 1999 Bill Nottingham <notting@redhat.com>
254- add updatedb as a link to slocate
255- add an updatedb man page
256
257* Fri Mar 26 1999 Michael Maher <mike@redhat.com>
258- added man page
259
260* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
261- auto rebuild in the new build environment (release 3)
262
263* Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
264- %post groupadd changed to %pre
Note: See TracBrowser for help on using the repository browser.