summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-07 09:30:22 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-07 09:30:22 -0800
commitb962b90de1ca1d5631971042b036e994d346c360 (patch)
tree7695bf9c2031a6c3b9af66a31a794e52ae65cbd9
parent689298ab0fd25c5441b219c82438c478355f1bb4 (diff)
downloadfdupes-b962b90de1ca1d5631971042b036e994d346c360.tar.gz
fdupes-b962b90de1ca1d5631971042b036e994d346c360.tar.bz2
fdupes-b962b90de1ca1d5631971042b036e994d346c360.zip
add packaging
-rw-r--r--packaging/fdupes.diff45
-rw-r--r--packaging/fdupes.spec46
2 files changed, 91 insertions, 0 deletions
diff --git a/packaging/fdupes.diff b/packaging/fdupes.diff
new file mode 100644
index 0000000..3e8ffdb
--- /dev/null
+++ b/packaging/fdupes.diff
@@ -0,0 +1,45 @@
+--- Makefile
++++ Makefile
+@@ -2,13 +2,13 @@
+ # INSTALLDIR indicates directory where program is to be installed.
+ # Suggested values are "/usr/local/bin" or "/usr/bin".
+ #
+-INSTALLDIR = /usr/local/bin
++INSTALLDIR = /usr/bin
+
+ #
+ # MANPAGEDIR indicates directory where the fdupes man page is to be
+ # installed. Suggested values are "/usr/local/man" or "/usr/man".
+ #
+-MANPAGEDIR = /usr/local/man
++MANPAGEDIR = /usr/share/man
+
+ #
+ # VERSION determines the program's version number.
+@@ -35,7 +35,7 @@
+ #####################################################################
+
+ fdupes: fdupes.c md5/md5.c
+- gcc fdupes.c md5/md5.c -Wall -o fdupes -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE)
++ gcc fdupes.c md5/md5.c $(RPM_OPT_FLAGS) -o fdupes -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE)
+
+ install: fdupes
+ cp fdupes $(INSTALLDIR)
+--- md5/md5.c
++++ md5/md5.c
+@@ -39,6 +39,7 @@
+ */
+
+ #include "md5.h"
++#include <string.h>
+
+ #ifdef TEST
+ /*
+@@ -46,7 +47,6 @@
+ * The test program should print out the same values as given in section
+ * A.5 of RFC 1321, reproduced below.
+ */
+-#include <string.h>
+ main()
+ {
+ static const char *const test[7] = {
diff --git a/packaging/fdupes.spec b/packaging/fdupes.spec
new file mode 100644
index 0000000..abca243
--- /dev/null
+++ b/packaging/fdupes.spec
@@ -0,0 +1,46 @@
+#
+# spec file for package fdupes (Version 1.40)
+#
+# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+
+Name: fdupes
+Version: 1.40
+Release: 42.66
+License: X11/MIT
+Summary: Identifying or deleting duplicate files
+Url: http://premium.caribe.net/~adrian2/fdupes.html
+Group: Productivity/Archiving/Compression
+Source0: %{name}-%{version}.tar.bz2
+Source1: macros.fdupes
+Patch0: %{name}.diff
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+FDUPES is a program for identifying or deleting duplicate files
+residing within specified directories
+
+%prep
+%setup -q
+%patch0
+
+%build
+make
+
+%install
+install -D -m755 fdupes %{buildroot}/usr/bin/fdupes
+install -D -m644 fdupes.1 %{buildroot}/usr/share/man/man1/fdupes.1
+install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.fdupes
+
+%files
+%defattr(-, root, root)
+%doc CHANGES
+%{_bindir}/fdupes
+%{_mandir}/*/*
+%{_sysconfdir}/rpm
+