add packaging
[platform/upstream/fdupes.git] / packaging / fdupes.spec
1 #
2 # spec file for package fdupes (Version 1.40)
3 #
4 # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
5 # This file and all modifications and additions to the pristine
6 # package are under the same license as the package itself.
7 #
8 # Please submit bugfixes or comments via http://bugs.opensuse.org/
9 #
10
11
12 Name:           fdupes
13 Version:        1.40
14 Release:        42.66
15 License:        X11/MIT
16 Summary:        Identifying or deleting duplicate files
17 Url:            http://premium.caribe.net/~adrian2/fdupes.html
18 Group:          Productivity/Archiving/Compression
19 Source0:        %{name}-%{version}.tar.bz2
20 Source1:        macros.fdupes
21 Patch0:         %{name}.diff
22 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
23
24 %description
25 FDUPES is a program for identifying or deleting duplicate files
26 residing within specified directories
27
28 %prep
29 %setup -q
30 %patch0
31
32 %build
33 make
34
35 %install
36 install -D -m755 fdupes %{buildroot}/usr/bin/fdupes
37 install -D -m644 fdupes.1 %{buildroot}/usr/share/man/man1/fdupes.1
38 install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.fdupes
39
40 %files
41 %defattr(-, root, root)
42 %doc CHANGES
43 %{_bindir}/fdupes
44 %{_mandir}/*/*
45 %{_sysconfdir}/rpm
46