From 7cbc0c5108d5727ccdb1b393c00c635dc2cdf866197e2a2777df0de19573fe66 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 15 Feb 2013 12:14:54 +0000 Subject: [PATCH] Accepting request 151471 from home:mpluskal Necessary for thin provisioning support in lvm2 (see BNC#802136), when accepted please merge also to factory and 12.3 OBS-URL: https://build.opensuse.org/request/show/151471 OBS-URL: https://build.opensuse.org/package/show/Base:System/thin-provisioning-tools?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + ldflags.patch | 28 ++++++++++++++ thin-provisioning-tools-0.1.5.tar.bz2 | 3 ++ thin-provisioning-tools.changes | 17 ++++++++ thin-provisioning-tools.spec | 56 +++++++++++++++++++++++++++ 6 files changed, 128 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ldflags.patch create mode 100644 thin-provisioning-tools-0.1.5.tar.bz2 create mode 100644 thin-provisioning-tools.changes create mode 100644 thin-provisioning-tools.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ldflags.patch b/ldflags.patch new file mode 100644 index 0000000..5f4cb9d --- /dev/null +++ b/ldflags.patch @@ -0,0 +1,28 @@ + Makefile.in | 8 ++++---- + 1 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/Makefile.in b/Makefile.in +index 315b28e..3d19ef3 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -109,16 +109,16 @@ THIN_RESTORE_OBJECTS=$(subst .cc,.o,$(THIN_RESTORE_SOURCE)) + THIN_CHECK_OBJECTS=$(subst .cc,.o,$(THIN_CHECK_SOURCE)) + + thin_debug: $(THIN_DEBUG_OBJECTS) thin_debug.o +- $(CXX) $(CXXFLAGS) -o $@ $+ $(LIBS) $(LIBEXPAT) ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS) $(LIBEXPAT) + + thin_dump: $(THIN_DUMP_OBJECTS) thin_dump.o +- $(CXX) $(CXXFLAGS) -o $@ $+ $(LIBS) $(LIBEXPAT) ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS) $(LIBEXPAT) + + thin_restore: $(THIN_RESTORE_OBJECTS) thin_restore.o +- $(CXX) $(CXXFLAGS) -o $@ $+ $(LIBS) $(LIBEXPAT) ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS) $(LIBEXPAT) + + thin_check: $(THIN_CHECK_OBJECTS) thin_check.o +- $(CXX) $(CXXFLAGS) -o $@ $+ $(LIBS) ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS) + + clean: + $(RM) *.o unit-tests/*.o *.d unit-tests/*.d $(TEST_PROGRAMS) $(PROGRAMS) diff --git a/thin-provisioning-tools-0.1.5.tar.bz2 b/thin-provisioning-tools-0.1.5.tar.bz2 new file mode 100644 index 0000000..027c0f4 --- /dev/null +++ b/thin-provisioning-tools-0.1.5.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5694d3c3fba28e53dd5f91bef705265f05f84c464c934eaab6d050861dea46fc +size 174167 diff --git a/thin-provisioning-tools.changes b/thin-provisioning-tools.changes new file mode 100644 index 0000000..ba7a9f1 --- /dev/null +++ b/thin-provisioning-tools.changes @@ -0,0 +1,17 @@ +------------------------------------------------------------------- +Wed Feb 6 13:29:41 UTC 2013 - martin@pluskal.org + +- Cleanup .spec + +------------------------------------------------------------------- +Wed Feb 6 12:59:38 UTC 2013 - martin@pluskal.org + +- Add patch for ldflags - ldflags.patch + +------------------------------------------------------------------- +Tue Jul 31 14:44:47 CEST 2012 - fehr@suse.de + +- Make initial version of package from version 0.1.5 of + thin-provisioning-tools + +------------------------------------------------------------------- diff --git a/thin-provisioning-tools.spec b/thin-provisioning-tools.spec new file mode 100644 index 0000000..2a2449c --- /dev/null +++ b/thin-provisioning-tools.spec @@ -0,0 +1,56 @@ +# +# spec file for package thin-provisioning-tools +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: thin-provisioning-tools +Version: 0.1.5 +Release: 0 +Summary: Thin Provisioning Tools +License: GPL-3.0 +Group: System/Base +Url: https://github.com/jthornber/thin-provisioning-tools/ +Source: thin-provisioning-tools-0.1.5.tar.bz2 +Patch0: ldflags.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: boost-devel +BuildRequires: gcc-c++ +BuildRequires: libexpat-devel + +%description +A suite of tools for thin provisioning on Linux. + +%prep +%setup +%patch0 -p1 + +%build +autoreconf +%configure --bindir=/bin --libdir=/%_lib --with-optimisation="" +make %{?jobs:-j%jobs} + +%install +make install DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} BINDIR=${RPM_BUILD_ROOT}/usr/bin + +%files +%defattr(-,root,root) +%doc COPYING README +%{_bindir}/* +%{_mandir}/man8/* + +%changelog