[duff] Initial Build of duff-0.5.2

Eduardo Javier Echeverria Alvarado echevemaster at fedoraproject.org
Thu Nov 15 08:48:46 UTC 2012


commit 3d120d0a5ac3f23f5c21df35a2462eb32faf4292
Author: Eduardo Echeverria <echevemaster at gmail.com>
Date:   Thu Nov 15 04:17:14 2012 -0430

    Initial Build of duff-0.5.2

 .gitignore                               |    1 +
 duff-linking-to-shared-library-sha.patch |   14 ++++++
 duff-remove-docs-of-sha.patch            |   11 +++++
 duff.spec                                |   67 ++++++++++++++++++++++++++++++
 sources                                  |    1 +
 5 files changed, 94 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..08a49ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/duff-0.5.2.tar.gz
diff --git a/duff-linking-to-shared-library-sha.patch b/duff-linking-to-shared-library-sha.patch
new file mode 100644
index 0000000..4f676ed
--- /dev/null
+++ b/duff-linking-to-shared-library-sha.patch
@@ -0,0 +1,14 @@
+--- duff-0.5.2-orig/src/Makefile.am	2012-11-01 02:02:01.826361340 -0430
++++ duff-0.5.2/src/Makefile.am	2012-11-01 02:05:44.127476440 -0430
+@@ -3,8 +3,8 @@
+ 
+ bin_PROGRAMS = duff
+ 
+-duff_SOURCES = duff.c duffdriver.c dufffile.c duffstring.c duffutil.c sha1.c sha256.c sha384.c sha512.c
+-duff_LDADD = @LIBINTL@
++duff_SOURCES = duff.c duffdriver.c dufffile.c duffstring.c duffutil.c 
++duff_LDADD = -Llibsha.so -lsha
+ 
+-noinst_HEADERS = duff.h duffstring.h sha1.h sha256.h sha384.h sha512.h
++noinst_HEADERS = duff.h duffstring.h 
+ 
diff --git a/duff-remove-docs-of-sha.patch b/duff-remove-docs-of-sha.patch
new file mode 100644
index 0000000..3624e21
--- /dev/null
+++ b/duff-remove-docs-of-sha.patch
@@ -0,0 +1,11 @@
+--- duff-0.5.2-orig/Makefile.am	2012-11-01 02:02:01.828361343 -0430
++++ duff-0.5.2/Makefile.am	2012-11-01 19:40:27.247597556 -0430
+@@ -5,7 +5,7 @@
+ 
+ EXTRA_DIST = build-aux/config.rpath m4/ChangeLog HACKING
+ 
+-dist_doc_DATA = README.SHA
++dist_doc_DATA = README
+ 
+ ACLOCAL_AMFLAGS = -I m4
+ 
diff --git a/duff.spec b/duff.spec
new file mode 100644
index 0000000..aa26f9a
--- /dev/null
+++ b/duff.spec
@@ -0,0 +1,67 @@
+Name:		duff
+Version:	0.5.2
+Release:	4%{?dist}
+Summary:	Quickly find duplicate files
+
+License:	zlib
+URL:		http://duff.sourceforge.net/
+Source0:	http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.gz
+Patch1:		duff-linking-to-shared-library-sha.patch
+Patch2:		duff-remove-docs-of-sha.patch
+BuildRequires:	sha-devel
+BuildRequires:	autoconf
+BuildRequires:	automake
+
+%description
+Duff is a command-line utility for quickly finding duplicates in a given set of
+files
+
+
+%prep
+%setup -q
+#Remove bundled sha and unnecessary files
+rm -rf src/sha*
+rm -rf autom4te.cache
+rm -rf README.SHA
+%patch1 -p1
+%patch2 -p1
+
+%build
+autoreconf -fi
+autoheader
+%configure \
+	--disable-rpath
+make %{?_smp_mflags}
+
+%check
+make DESTDIR=%{buildroot} check
+
+%install
+make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install
+%find_lang %{name}
+find %{buildroot} -name 'join-duplicates.sh' | xargs chmod 0755
+
+%files -f %{name}.lang
+%doc AUTHORS COPYING ChangeLog NEWS README TODO
+%{_bindir}/duff
+%{_datadir}/duff/join-duplicates.sh
+%{_docdir}/duff
+%{_mandir}/man1/duff.1*
+
+
+%changelog
+* Thu Nov 01 2012 Eduardo Echeverria  <echevemaster at gmail.com> - 0.5.2-4
+- Remove bundled sha files
+- Remove unnecessary buildroot
+- Remove %%clean 
+- Add patch for linking to shared libraries of sha 
+
+* Sun Sep 16 2012 Eduardo Echeverria  <echevemaster at gmail.com> - 0.5.2-3
+- Remove rm -rf in section clean
+
+* Sun Sep 16 2012 Eduardo Echeverria  <echevemaster at gmail.com> - 0.5.2-2
+- Remove glibc-devel of BuildRequires
+- Remove autoconf, autoconf, libtool
+
+* Sat Sep 15 2012 Eduardo Echeverria  <echevemaster at gmail.com> - 0.5.2-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..c822660 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+483f9216ebea14b090e0d71dbf7077ff  duff-0.5.2.tar.gz


More information about the scm-commits mailing list