[python-dmidecode] documenting upstream relocation and tarball creation

aledvink aledvink at fedoraproject.org
Thu Jul 19 11:09:40 UTC 2012


commit dcd901de3b96cf576d22f5fc27638cd75986c213
Author: Ales Ledvinka <aledvink at redhat.com>
Date:   Thu Jul 19 10:51:12 2012 +0200

    documenting upstream relocation and tarball creation

 .gitignore            |    1 +
 generate-tarball.sh   |   10 ++++++++++
 python-dmidecode.spec |    8 ++++++--
 sources               |    2 +-
 4 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 3a9f715..4daeb1e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 python-dmidecode-3.10.13.tar.gz
+python-dmidecode-3.10.13.tar.xz
diff --git a/generate-tarball.sh b/generate-tarball.sh
new file mode 100755
index 0000000..b266b4b
--- /dev/null
+++ b/generate-tarball.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+VERSION=$1
+
+# git clone ssh://git.fedorahosted.org/git/python-dmidecode.git
+# cd python-dmidecode
+git archive --format=tar --prefix=python-dmidecode-$VERSION/ -o python-dmidecode-$VERSION.tar v$VERSION 
+tar -xvf python-dmidecode-$VERSION.tar
+rm -r python-dmidecode-$VERSION/debian
+tar -cJvf python-dmidecode-$VERSION.tar.xz python-dmidecode-$VERSION
diff --git a/python-dmidecode.spec b/python-dmidecode.spec
index 291947c..2ca748d 100644
--- a/python-dmidecode.spec
+++ b/python-dmidecode.spec
@@ -4,11 +4,12 @@
 Summary: Python module to access DMI data
 Name: python-dmidecode
 Version: 3.10.13
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: GPLv2
 Group: System Environment/Libraries
 URL: http://projects.autonomy.net.au/python-dmidecode/
-Source0: http://src.autonomy.net.au/python-dmidecode/%{name}-%{version}.tar.gz
+Source0: %{name}-%{version}.tar.xz
+Source1: generate-tarball.sh
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 Requires: libxml2-python
 BuildRequires: libxml2-python
@@ -49,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/python-dmidecode/
 
 %changelog
+* Thu Jul 19 2012 Ales Ledvinka <aledvink at redhat.com> 3.10.14-5
+- Upstream relocated. Document source tag and tarball generation.
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.10.13-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/sources b/sources
index e45f8f5..d13c7c0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b0a0840c037ae64b5d02920a2f798c52  python-dmidecode-3.10.13.tar.gz
+66882eeed64651906942f3bbf3cd219b  python-dmidecode-3.10.13.tar.xz


More information about the scm-commits mailing list