]> git.pld-linux.org Git - SPECS.git/blob - weeder.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / weeder.spec
1 Summary:        Weeder - binary file identifier
2 Summary(pl.UTF-8):      Weeder - narzędzie do identyfikowania plików binarnych
3 Name:           weeder
4 Version:        0.9.7
5 Release:        1
6 Epoch:          0
7 License:        GPL
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)
14
15 %define         _datadir        %{_localstatedir}/lib/%{name}
16
17 %description
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.
24
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.
32
33 %prep
34 %setup -q
35 %patch0 -p1
36
37 %build
38 # don't remove trailing slash from DATADIR
39 %{__make} -C src \
40         CC="%{__cc}" \
41         CFLAGS='%{rpmcflags} -DDATADIR=\"%{_datadir}/\"'
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}}
46
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
49
50 %post
51 # move data from old original sources
52 if [ -d /var/%{name} ] && [ ! -L /var/%{name} ]; then
53         mv /var/%{name}/* %{_datadir}
54         rmdir /var/%{name}
55 fi
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc README history.txt
63 %attr(755,root,root) %{_bindir}/*
64 %{_mandir}/man1/*
65 %dir %attr(1777,root,root) %{_datadir}
This page took 0.353052 seconds and 3 git commands to generate.