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