]> git.pld-linux.org Git - packages/findutils.git/blob - findutils.spec
FHS 2.0
[packages/findutils.git] / findutils.spec
1 Summary:        GNU Find Utilities (find, xargs, and locate)
2 Summary(de):    GNU-Suchprogramme (find, xargs und locate)
3 Summary(fr):    Utilitaires de recherche de GNU (find, xargs, et locate)
4 Summary(pl):    GNU narzêdzia do odnajdywania plików (find, xargs i locate)
5 Summary(tr):    GNU dosya arama araçlarý
6 Name:           findutils
7 Version:        4.1
8 Release:        31
9 Copyright:      GPL
10 Group:          Utilities/File
11 Group(pl):      Narzêdzia/Pliki
12 Source0:        ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
13 Source1:        updatedb.cron
14 Source2:        xargs.1.pl
15 Patch0:         findutils.patch
16 Patch1:         findutils-info.patch
17 Prereq:         /sbin/install-info
18 Requires:       mktemp
19 Buildroot:      /tmp/%{name}-%{version}-root
20
21 %description
22 This package contains programs to help you locate files on your system. The
23 find program can search through a hierarchy of directories looking for files
24 matching a certain set of criteria (such as a filename pattern). The locate
25 program searches a database (create by updatedb) to quickly find a file
26 matching a given pattern.
27
28 %description -l de
29 Dieses Paket enthält Programme zum Suchen von Dateien auf
30 dem System. Das Programm 'find' kann eine Verzeichnisstruktur
31 durchsuchen und Dateien finden, die den Suchkritierien entsprechen
32 (z.B. einem Dateinamenmuster). Das Programm 'locate' durchsucht
33 eine Datenbank (durch updatedb erstellt), um eine Datei, die dem
34 Suchmuster entspricht, zu finden.
35
36 %description -l fr
37 Ce package contient des programmes pour vous aider à localiser
38 des fichiers sur votre système. Le programme find peut rechercher
39 à travers une hiérarchie de répertoires des fichiers conformes à
40 certains critères (comme un type de nom). Le programme locatecherche 
41 une base de données (crée par updatedb) pour trouver rapidement
42 un fichier correspondant au type demandé.
43
44 %description -l pl
45 W pakiecie znajduj± siê narzêdzia pozwalaj±ce na poszukiwanie okre¶lonych
46 plików. Program find s³u¿y do przeszukania drzewa katalogów za plikami o
47 okre¶lonych parametrach, jak nazwa, uprawnienia, typ, data ostatniej
48 modyfikacji. Program locate lokalizuje pliki korzystaj±c z utworzonej
49 poleceniem updatedb bazy danych, dziêki czemu jest znacznie szybszy od find.
50
51 %description -l tr
52 Bu pakette yer alan yazýlýmlar sisteminizde yer alan dosyalarý bulabilmeniz
53 için hazýrlanmýþlardýr. find programý ile belirli özellikleri olan bir
54 yazýlýmý bir dizin hiyerarþisi altýnda arayabilirsiniz. locate yazýlýmý ise,
55 updatedb tarafýndan hazýrlanan bir veri tabaný üzerinde, belirtilen
56 dosyalarý arar.
57
58 %prep
59 %setup -q
60 %patch0 -p1 
61 %patch1 -p1
62
63 %build
64 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
65     ./configure \
66         --prefix=%{_prefix} \
67         --exec-prefix=%{_prefix} \
68         %{_target_platform}
69
70 make
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT/usr/{lib/findutils,share/man/{man{1,5},pl/man1}} \
75         $RPM_BUILD_ROOT/{etc/cron.daily,var/state}
76
77 make    prefix=$RPM_BUILD_ROOT%{_prefix} \
78         exec_prefix=$RPM_BUILD_ROOT%{_prefix} \
79         install
80         
81 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily
82 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1/xargs.1
83
84 :> $RPM_BUILD_ROOT/var/state/locatedb
85
86 gzip -9fn $RPM_BUILD_ROOT%{_infodir}/find.info* \
87         $RPM_BUILD_ROOT%{_mandir}/{man[15]/*,pl/man1/*} \
88         NEWS README TODO ChangeLog
89
90 %post
91 /sbin/install-info %{_infodir}/find.info.gz /etc/info-dir
92
93 %preun
94 if [ "$1" = "0" ]; then
95     /sbin/install-info --delete %{_infodir}/find.info.gz /etc/info-dir
96 fi
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %files
102 %defattr(644,root,root,755)
103 %doc {NEWS,README,TODO,ChangeLog}.gz
104
105 %attr(750,root,root) %config /etc/cron.daily/updatedb.cron
106 %attr(755,root,root) %{_bindir}/*
107 %attr(755,root,root) %dir %{_libdir}/findutils
108 %attr(755,root,root) %{_libdir}/findutils/*
109
110 %{_mandir}/man[15]/*
111 %lang(pl) %{_mandir}/pl/man1/*
112
113 %{_infodir}/find.info*
114 %ghost /var/state/*
115
116 %changelog
117 * Sat May 29 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
118 - FHS 2.0 
119
120 * Wed May 12 1999 Piotr Czerwiñski <pius@pld.org.pl>
121   [4.1-30]
122 - package is now FHS 2.0 compliant.
123
124 * Tue Apr 20 1999 Piotr Czerwiñski <pius@pld.org.pl>
125   [4.1-29]
126 - recompiled on rpm 3.
127
128 * Tue Apr  5 1999 Piotr Czerwiñski <pius@pld.org.pl>
129   [4.1-28]
130 - revision up to 28,
131 - added Group(pl),
132 - changed BuildRoot to /tmp/%%{name}-%%{version}-root,
133 - removed 'rm -rf $RPM_BUILD_ROOT' from %build,
134 - simplifications in %install,
135 - standarized {un}registering info pages (added findutils-info.patch),
136 - added more documentation,
137 - added pl man page for xargs(1L),
138 - added gzipping documentation and man pages,
139 - changes in %files (for rpm-2.9x).
140
141 * Sun Oct  4 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
142   [4.1.26]
143 - changed way passing $RPM_OPT_FLAGS.
144
145 * Fri Jun 12 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
146   [4.1.26d]
147 - added pl translation (made by Piotr Dembiñski <hektor@kki.net.pl>),
148 - macro %%{name}-%%{version} in Source,
149 - minor modifications of spec file.
150 - build against GNU libc-2.1.
This page took 0.069504 seconds and 4 git commands to generate.