[python-productmd] initial import

Dennis Gilmore ausil at fedoraproject.org
Fri Mar 13 19:24:35 UTC 2015


commit 9eafdb36dc70f1f0337464ffcdd8ef7b039231cd
Author: Dennis Gilmore <dennis at ausil.us>
Date:   Fri Mar 13 14:24:22 2015 -0500

    initial import

 .gitignore            |  1 +
 python-productmd.spec | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |  1 +
 3 files changed, 89 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a870ac8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/productmd-1.0.tar.bz2
diff --git a/python-productmd.spec b/python-productmd.spec
new file mode 100644
index 0000000..a9f82b6
--- /dev/null
+++ b/python-productmd.spec
@@ -0,0 +1,87 @@
+Name:           python-productmd
+Version:        1.0
+Release:        3%{?dist}.git57efab
+Summary:        Library providing parsers for metadata related to OS installation
+
+Group:          Development/Tools
+License:        LGPLv2+
+URL:            https://github.com/release-engineering/productmd
+#tarball made by running python2 setup.py sdist in teh checkout
+#commit has used: 57efab2e504f4e13375b996c645548d5c6a5cfdf
+Source0:        productmd-%{version}.tar.bz2
+BuildRequires:  python2-devel python-setuptools
+BuildRequires:  python3-devel python3-setuptools
+BuildRequires:  python-six python3-six
+
+BuildArch:      noarch
+
+%description
+Python library providing parsers for metadata related to composes
+and installation media.
+
+%package -n python3-productmd
+Summary:       Library providing parsers for metadata related to OS installation
+Group:         Development/Tools
+
+%description -n python3-productmd
+Python library providing parsers for metadata related to composes
+and installation media.
+
+%prep
+%setup -qc -n productmd-%{version}
+mv productmd-%{version} python2
+
+cp -a python2 python3
+cp python2/LICENSE .
+cp python2/AUTHORS .
+
+%build
+pushd python2
+CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
+popd
+
+pushd python3
+CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
+popd
+
+%install
+pushd python3
+%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
+popd
+
+pushd python2
+%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
+popd
+
+%check
+pushd python2
+%{__python2} ./setup.py test
+popd
+
+pushd python3
+%{__python3} ./setup.py test
+popd
+
+%files
+%defattr(-,root,root,-)
+%license LICENSE
+%doc AUTHORS 
+%{python_sitelib}/productmd/
+%{python_sitelib}/productmd-%{version}-py?.?.egg-info
+
+
+%files -n python3-productmd
+%license LICENSE
+%doc AUTHORS 
+%{python3_sitelib}/productmd/
+%{python3_sitelib}/productmd-%{version}-py?.?.egg-info
+
+%changelog
+* Fri Mar 13 2015 Dennis Gilmore <dennis at ausil.us> - 1.0-3.git57efab
+- rename to python-productmd
+
+* Wed Mar 11 2015 Dennis Gilmore <dennis at ausil.us> - 1.0-2.git57efab
+- update git tarball so we can run tests at build time
+
+* Tue Mar 10 2015 Dennis Gilmore <dennis at ausil.us> - 1.0-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..af1c66e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9f7bab5014844f7317144bfc10dc8635  productmd-1.0.tar.bz2


More information about the scm-commits mailing list