1 Summary: Weeder - binary file identifier
2 Summary(pl.UTF-8): Weeder - narzędzie do identyfikowania plików binarnych
8 Group: Applications/Console
9 Source0: http://members.teleweb.at/erikajo/%{name}-%{version}.tgz
10 # Source0-md5: 744a45626d1dfde49e456fb9ffb35380
11 Patch0: %{name}-FHS.patch
12 URL: http://members.teleweb.at/erikajo/weeder.htm
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define _datadir %{_localstatedir}/lib/%{name}
18 Weeder is a utility which takes fingerprints (crc and length) of
19 files. Once a fingerprint is taken it can display or delete duplicates
20 in vast amounts of files. Usually this applies to the maintenance of
21 collections of pictures or archives. It serves as well for integrity
22 checking purposes. Weeder is designed to be unlimited in the number of
23 files processed and for speed.
25 %description -l pl.UTF-8
26 Weeder to narzędzie pobierające odciski (sumy kontrolne i rozmiar)
27 plików. Po pobraniu odcisku może wyświetlić albo usunąć dplikaty dużej
28 liczby plików. Zwykle przydaje się to przy zarządzaniu kolekcją
29 obrazów lub archiwów. Może służyć też do sprawdzania spójności. Weeder
30 jest zaprojektowany tak, by działał z nieograniczoną liczbą plików
31 oraz pod kątem szybkości.
38 # don't remove trailing slash from DATADIR
41 CFLAGS='%{rpmcflags} -DDATADIR=\"%{_datadir}/\"'
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}}
47 install src/%{name} $RPM_BUILD_ROOT%{_bindir}
48 sed -e 's,/var/weeder,%{_datadir},g' %{name}.1 > $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
51 # move data from old original sources
52 if [ -d /var/%{name} ] && [ ! -L /var/%{name} ]; then
53 mv /var/%{name}/* %{_datadir}
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc README history.txt
63 %attr(755,root,root) %{_bindir}/*
65 %dir %attr(1777,root,root) %{_datadir}