]> git.pld-linux.org Git - packages/findutils.git/blob - findutils.spec
- updated selinux patch, cleanups
[packages/findutils.git] / findutils.spec
1 Summary:        GNU Find Utilities (find, xargs)
2 Summary(de):    GNU-Suchprogramme (find, xargs)
3 Summary(es):    Utilitarios de búsqueda de la GNU
4 Summary(fr):    Utilitaires de recherche de GNU (find, xargs)
5 Summary(pl):    Narzêdzia GNU do odnajdywania plików (find, xargs)
6 Summary(pt_BR): Utilitários de procura da GNU
7 Summary(tr):    GNU dosya arama araçlarý
8 Name:           findutils
9 Version:        4.2.4
10 Release:        1
11 Epoch:          1
12 License:        GPL
13 Group:          Applications/File
14 Source0:        ftp://alpha.gnu.org/gnu/findutils/%{name}-%{version}.tar.gz
15 # Source0-md5:  88284e4ddd122f59840088d54941a7de
16 #Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
17 Source1:        %{name}-non-english-man-pages.tar.bz2
18 # Source1-md5:  e76388b0c3218eec3557d05ccd6d6515
19 Patch0:         %{name}-info.patch
20 Patch1:         %{name}-mktemp.patch
21 Patch2:         %{name}-DESTDIR.patch
22 Patch3:         %{name}-pl.po-update.patch
23 Patch4:         %{name}-selinux.patch
24 Patch5:         %{name}-man-selinux.patch
25 URL:            http://www.gnu.org/software/findutils/
26 BuildRequires:  autoconf
27 BuildRequires:  automake
28 BuildRequires:  gettext-devel
29 BuildRequires:  libselinux-devel
30 BuildRequires:  texinfo
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 The findutils package contains programs which will help you locate
35 files on your system. The find utility searches through a hierarchy of
36 directories looking for files which match a certain set of criteria
37 (such as a filename pattern). The locate utility searches a database
38 (create by updatedb) to quickly find a file matching a given pattern.
39 The xargs utility builds and executes command lines from standard
40 input arguments (usually lists of file names generated by the find
41 command).
42
43 %description -l de
44 Das findutils-Paket enthält Programme, die dabei helfen, Dateien auf
45 Ihrem System zu finden. Das Find-Utility durchsucht die
46 Verzeichnishierarchie nach Dateien, die zu bestimmten Kriterien (z.B.
47 Dateiname) passen. Das locate-Utility durchsucht eine Datenbank
48 (erzeugt durch updatedb), um die Dateien schneller finden zu können.
49 xargs konstruiert Kommandozeilen von der Standardeingabe (z.B.
50 Dateilisten, die von find erzeugt werden), und führt sie aus.
51
52 %description -l es
53 Este paquete contiene programas para ayúdalo a localizar archivos en
54 tu sistema. El programa find puede pesquisar, a través de una
55 jerarquía de directorios, buscando por archivos que obedezcan a un
56 cierto conjunto de criterios (como nombre de archivo modelo).
57
58 %description -l fr
59 Ce package contient des programmes pour vous aider à localiser des
60 fichiers sur votre système. Le programme find peut rechercher à
61 travers une hiérarchie de répertoires des fichiers conformes à
62 certains critères (comme un type de nom).
63
64 %description -l pl
65 W pakiecie znajduj± siê narzêdzia pozwalaj±ce na poszukiwanie
66 okre¶lonych plików. Program find s³u¿y do poszukiwania w drzewie
67 katalogów plików o okre¶lonych parametrach, jak nazwa, uprawnienia,
68 typ czy data ostatniej modyfikacji.
69
70 %description -l pt_BR
71 Esse pacote contém programas para ajudá-lo a localizar arquivos em seu
72 sistema. O programa find pode procurar através de uma hierarquia de
73 diretórios procurando por arquivos que obedeçam um certo conjunto de
74 critérios (como nome de arquivo modelo).
75
76 %description -l tr
77 Bu pakette yer alan yazýlýmlar sisteminizde yer alan dosyalarý
78 bulabilmeniz için hazýrlanmýþlardýr. find programý ile belirli
79 özellikleri olan bir yazýlýmý bir dizin hiyerarþisi altýnda
80 arayabilirsiniz.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85 %patch1 -p1
86 %patch2 -p1
87 %patch3 -p1
88 %patch4 -p1
89 # patch5 is applied in install stage
90
91 %{__perl} -pi -e 's/_jy_FIND LIBOBJS_NORMALIZE/_jy_FINDLIBOBJS_NORMALIZE/' m4/findlib.m4
92
93 %build
94 %{__aclocal} -I gnulib/m4 -I m4
95 %{__autoconf}
96 %{__autoheader}
97 %{__automake}
98 %configure
99
100 %{__make}
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104
105 %{__make} install \
106         DESTDIR=$RPM_BUILD_ROOT
107
108 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
109 patch -p0 -d $RPM_BUILD_ROOT%{_mandir} < %{PATCH5}
110
111 # xargs is wanted in /bin
112 install -d $RPM_BUILD_ROOT/bin
113 mv $RPM_BUILD_ROOT%{_bindir}/xargs $RPM_BUILD_ROOT/bin
114
115 # unpackaged locate
116 rm -f $RPM_BUILD_ROOT%{_bindir}/{locate,updatedb} \
117         $RPM_BUILD_ROOT%{_libdir}/{bigram,code,frcode} \
118         $RPM_BUILD_ROOT%{_mandir}/{,*/}man?/{locate.1,updatedb.1,locatedb.5}*
119
120 %find_lang %{name}
121
122 %clean
123 rm -rf $RPM_BUILD_ROOT
124
125 %post
126 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
127
128 %postun
129 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
130
131 %files -f %{name}.lang
132 %defattr(644,root,root,755)
133 %doc NEWS README TODO ChangeLog
134 %attr(755,root,root) %{_bindir}/find
135 %attr(755,root,root) /bin/xargs
136
137 %{_mandir}/man1/[fx]*
138 %lang(de) %{_mandir}/de/man1/[fx]*
139 %lang(es) %{_mandir}/es/man1/[fx]*
140 %lang(fi) %{_mandir}/fi/man1/[fx]*
141 %lang(fr) %{_mandir}/fr/man1/[fx]*
142 %lang(hu) %{_mandir}/hu/man1/[fx]*
143 %lang(it) %{_mandir}/it/man1/[fx]*
144 %lang(ja) %{_mandir}/ja/man1/[fx]*
145 %lang(nl) %{_mandir}/nl/man1/[fx]*
146 %lang(pl) %{_mandir}/pl/man1/[fx]*
147 %lang(zh_CN) %{_mandir}/zh_CN/man1/[fx]*
148 %{_infodir}/find.info*
This page took 0.080739 seconds and 3 git commands to generate.