[beakerlib/f16] Update to new upstream version, packaging fixes
Petr Muller
afri at fedoraproject.org
Wed Jul 25 17:18:26 UTC 2012
commit 5ec7b408ab2399d5172d5b54d814d1a8acf0a772
Author: Petr Muller <muller at redhat.com>
Date: Wed Jul 25 19:18:00 2012 +0200
Update to new upstream version, packaging fixes
.gitignore | 1 +
0001-install-dir.patch | 40 ++++++++++++++++++++++++++++++++++++++++
0002-install-more-docs.patch | 25 +++++++++++++++++++++++++
beakerlib.spec | 14 ++++++++++++--
sources | 2 +-
5 files changed, 79 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 05cfd7b..1f2fe58 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
beakerlib-1.3.tar.gz
/beakerlib-1.4.tar.gz
/beakerlib-1.5.tar.gz
+/beakerlib-1.6.tar.gz
diff --git a/0001-install-dir.patch b/0001-install-dir.patch
new file mode 100644
index 0000000..1c8871d
--- /dev/null
+++ b/0001-install-dir.patch
@@ -0,0 +1,40 @@
+From 9faaca049ddf4724aa5a02b4917717f478cc348a Mon Sep 17 00:00:00 2001
+From: Petr Muller <muller at redhat.com>
+Date: Wed, 25 Jul 2012 17:30:57 +0200
+Subject: [PATCH] Revert the configurable default BL installation dir
+
+(it broke RPMs building)
+---
+ src/Makefile | 2 --
+ src/beakerlib.sh | 2 +-
+ 2 files changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 70f51eb..7a309dd 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -60,8 +60,6 @@ install: $(FILES) docsman gendict
+ install -p -m 644 examples/apache/* $(DESTDIR)/usr/share/doc/$(PKGNAME)-$(PKGVERSION)/examples/apache
+
+ install -p -m 644 $(FILES) $(DESTDIR)/usr/share/beakerlib
+- sed -i -e 's|INSTALLPATH|$(DESTDIR)|' $(DESTDIR)/usr/share/beakerlib/beakerlib.sh
+-
+ install -p -m 644 dictionary.vim $(DESTDIR)/usr/share/beakerlib
+
+ install -p python/rlMemAvg.py $(DESTDIR)/usr/bin/beakerlib-rlMemAvg
+diff --git a/src/beakerlib.sh b/src/beakerlib.sh
+index 67e4ae0..4cf7441 100644
+--- a/src/beakerlib.sh
++++ b/src/beakerlib.sh
+@@ -273,7 +273,7 @@ fi
+ test -f /etc/profile.d/cobbler.sh && . /etc/profile.d/cobbler.sh
+
+ set -e
+-export BEAKERLIB=${BEAKERLIB:-"INSTALLPATH"}
++export BEAKERLIB=${BEAKERLIB:-"/usr/share/beakerlib"}
+ . $BEAKERLIB/infrastructure.sh
+ . $BEAKERLIB/journal.sh
+ . $BEAKERLIB/logging.sh
+--
+1.7.11.2
+
diff --git a/0002-install-more-docs.patch b/0002-install-more-docs.patch
new file mode 100644
index 0000000..10952a3
--- /dev/null
+++ b/0002-install-more-docs.patch
@@ -0,0 +1,25 @@
+From 9cb0ceb625061cc4704ca765dfbf80809bed4ef8 Mon Sep 17 00:00:00 2001
+From: Petr Muller <muller at redhat.com>
+Date: Wed, 25 Jul 2012 17:50:02 +0200
+Subject: [PATCH] Install also few more files (README & friends) to docs
+
+---
+ Makefile | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/Makefile b/Makefile
+index 6b91a43..edfd47b 100644
+--- a/Makefile
++++ b/Makefile
+@@ -18,6 +18,8 @@ build:
+ install:
+ mkdir -p $(DESTDIR)/usr/share/doc/$(PKGNAME)-$(PKGVERSION)/
+ install -m 644 -p LICENSE $(DESTDIR)/usr/share/doc/$(PKGNAME)-$(PKGVERSION)/
++ install -m 644 -p README $(DESTDIR)/usr/share/doc/$(PKGNAME)-$(PKGVERSION)/
++ install -m 644 -p VERSION $(DESTDIR)/usr/share/doc/$(PKGNAME)-$(PKGVERSION)/
+
+ for i in $(SUBDIRS); do $(MAKE) -C $$i install; done
+
+--
+1.7.11.2
+
diff --git a/beakerlib.spec b/beakerlib.spec
index f35e5ed..3ef7449 100644
--- a/beakerlib.spec
+++ b/beakerlib.spec
@@ -1,6 +1,6 @@
Name: beakerlib
Summary: A shell-level integration testing library
-Version: 1.5
+Version: 1.6
Release: 1%{?dist}
License: GPLv2
Group: Development/Libraries
@@ -12,6 +12,10 @@ Requires: nfs-utils
Requires: python2
+Patch0: 0001-install-dir.patch
+Patch1: 0002-install-more-docs.patch
+
+
%description
The BeakerLib project means to provide a library of various helpers, which
could be used when writing operating system level integration tests.
@@ -19,7 +23,8 @@ could be used when writing operating system level integration tests.
%prep
%setup -q
-
+%patch0 -p1 -b .install-dir
+%patch1 -p1 -b .install-more-docs
%build
# This section is empty because this package ccontains shell scripts
@@ -45,9 +50,14 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/%{name}-*
%{_mandir}/man1/%{name}*1*
%doc %{_docdir}/%{name}-%{version}/LICENSE
+%doc %{_docdir}/%{name}-%{version}/README
+%doc %{_docdir}/%{name}-%{version}/VERSION
%doc %{_docdir}/%{name}-%{version}/examples/*/*
%changelog
+* Wed Jul 25 2012 Petr Muller <muller at redhat.com> - 1.6-1
+- Updated to new upstream version
+
* Wed May 02 2012 Petr Muller <muller at redhat.com> - 1.5-1
- update to new upstream version
diff --git a/sources b/sources
index 49ca552..1d95858 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-6f06030d8a7c0ca1c7c0f8c4c97384b8 beakerlib-1.5.tar.gz
+d303a229648b422114fbb1938aff4ae9 beakerlib-1.6.tar.gz
More information about the scm-commits
mailing list