[packages/duff] build with shared sha

glen glen at pld-linux.org
Wed Apr 13 21:44:28 CEST 2016


commit e6874af0bc418da9e7f731c587ddca8d6c224fde
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Apr 13 22:44:06 2016 +0300

    build with shared sha
    
    patch from fedora, with bogus -L removed

 duff.spec        |  9 ++++++---
 shared-sha.patch | 14 ++++++++++++++
 2 files changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/duff.spec b/duff.spec
index 190e9da..aa17b32 100644
--- a/duff.spec
+++ b/duff.spec
@@ -1,15 +1,17 @@
 Summary:	Duplicate file finder
 Name:		duff
 Version:	0.5.2
-Release:	1
+Release:	2
 License:	BSD
 Group:		Applications
 Source0:	https://github.com/elmindreda/duff/archive/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	e4688d2724e1990d7d36ecb89f114f9e
 Patch0:		gettext.patch
+Patch1:		shared-sha.patch
 URL:		http://duff.dreda.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
+BuildRequires:	sha-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -19,9 +21,11 @@ a given set of files.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+
+install -d build-aux
 
 %build
-mkdir -p build-aux
 %{__gettextize}
 %{__aclocal}
 %{__autoconf}
@@ -32,7 +36,6 @@ mkdir -p build-aux
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
diff --git a/shared-sha.patch b/shared-sha.patch
new file mode 100644
index 0000000..8f429b3
--- /dev/null
+++ b/shared-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 = -lsha
+ 
+-noinst_HEADERS = duff.h duffstring.h sha1.h sha256.h sha384.h sha512.h
++noinst_HEADERS = duff.h duffstring.h 
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/duff.git/commitdiff/e6874af0bc418da9e7f731c587ddca8d6c224fde



More information about the pld-cvs-commit mailing list