commit 744901ab437012ce27844243d6f027b79619d6fd
Author: Jakub Bogusz <[email protected]>
Date:   Tue Apr 5 21:56:19 2016 +0200

    - updated to 0.6.1
    - added sh patch (remove bashisms from configure)
    - added opt patch, pass empty --with-optimisation to rely on 
CFLAGS/CXXFLAGS from environment

 thin-provisioning-tools-opt.patch | 11 +++++++++++
 thin-provisioning-tools-sh.patch  | 15 +++++++++++++++
 thin-provisioning-tools.spec      | 17 ++++++++++++-----
 3 files changed, 38 insertions(+), 5 deletions(-)
---
diff --git a/thin-provisioning-tools.spec b/thin-provisioning-tools.spec
index 5ef33d4..2c5c914 100644
--- a/thin-provisioning-tools.spec
+++ b/thin-provisioning-tools.spec
@@ -1,12 +1,15 @@
 Summary:       Tools for manipulating dm-thin device-mapper target metadata
 Summary(pl.UTF-8):     Narzędzia do modyfikowania metadanych celów dm-thin 
device-mappera
 Name:          thin-provisioning-tools
-Version:       0.6.0
+Version:       0.6.1
 Release:       1
 License:       GPL v3+
 Group:         Applications/System
+#Source0Download: https://github.com/jthornber/thin-provisioning-tools/releases
 Source0:       
https://github.com/jthornber/thin-provisioning-tools/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 8959e1f718523aebc2382a2b6ff8ddea
+# Source0-md5: f6f1207d63f5bd7aa1943ce3f12da84e
+Patch0:                %{name}-sh.patch
+Patch1:                %{name}-opt.patch
 URL:           https://github.com/jthornber/thin-provisioning-tools
 BuildRequires: autoconf >= 2.61
 BuildRequires: boost-devel
@@ -27,13 +30,17 @@ device-mappera.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
 %{__autoconf}
-%configure
+%configure \
+       --with-optimisation=" "
+
+CFLAGS="%{rpmcflags}" \
+CXXFLAGS="%{rpmcxxflags}" \
 %{__make} \
-       CFLAGS="%{rpmcflags} -Wall" \
-       CXXFLAGS="%{rpmcxxflags} -fno-strict-aliasing -Wall 
-DSTRERROR_R_CHAR_P" \
        V=
 
 %install
diff --git a/thin-provisioning-tools-opt.patch 
b/thin-provisioning-tools-opt.patch
new file mode 100644
index 0000000..b27380e
--- /dev/null
+++ b/thin-provisioning-tools-opt.patch
@@ -0,0 +1,11 @@
+--- thin-provisioning-tools-0.6.1/Makefile.in.orig     2016-02-10 
15:28:49.000000000 +0100
++++ thin-provisioning-tools-0.6.1/Makefile.in  2016-04-05 21:41:46.362026050 
+0200
+@@ -103,7 +103,7 @@
+ OBJECTS:=$(subst .cc,.o,$(SOURCE))
+ TOP_DIR:=@top_srcdir@
+ TOP_BUILDDIR:=@top_builddir@
+-CFLAGS+=-g -Wall -O3
++CFLAGS+=-Wall
+ CFLAGS+=@LFS_FLAGS@
+ CXXFLAGS+=-g -Wall -fno-strict-aliasing
+ CXXFLAGS+=@CXXOPTIMISE_FLAG@
diff --git a/thin-provisioning-tools-sh.patch b/thin-provisioning-tools-sh.patch
new file mode 100644
index 0000000..b0e5c21
--- /dev/null
+++ b/thin-provisioning-tools-sh.patch
@@ -0,0 +1,15 @@
+--- thin-provisioning-tools-0.6.1/configure.ac.orig    2016-02-10 
15:28:49.000000000 +0100
++++ thin-provisioning-tools-0.6.1/configure.ac 2016-04-05 21:39:11.502032549 
+0200
+@@ -49,10 +49,10 @@
+ dnl -- Check for large file support
+ AC_SYS_LARGEFILE
+ if test x$ac_cv_sys_file_offset_bits = x64; then
+-    LFS_FLAGS+="-D_FILE_OFFSET_BITS=64"
++    LFS_FLAGS="$LFS_FLAGS -D_FILE_OFFSET_BITS=64"
+ fi
+ if test x$ac_cv_sys_large_files = x1; then
+-    LFS_FLAGS+="-D_LARGE_FILES"
++    LFS_FLAGS="$LFS_FLAGS -D_LARGE_FILES"
+ fi
+ 
+ ################################################################
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/thin-provisioning-tools.git/commitdiff/744901ab437012ce27844243d6f027b79619d6fd

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to