Merge branch 'master' into el6
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
commit
6432330d3d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/productmd-1.0.tar.bz2
|
/productmd-1.0.tar.bz2
|
||||||
|
/productmd-1.0.tar.gz
|
||||||
|
@ -1,25 +1,33 @@
|
|||||||
%if 0%{?fedora} > 12
|
|
||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
%else
|
|
||||||
|
# this must go after all 'License:' tags
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
|
||||||
|
%if 0%{?fedora} && 0%{?fedora} <= 12
|
||||||
|
%global with_python3 0
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||||
%{!?__python2: %global __python2 /usr/bin/python2}
|
%{!?__python2: %global __python2 /usr/bin/python2}
|
||||||
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||||
%else
|
%global with_python3 0
|
||||||
%global with_python3 1
|
|
||||||
%endif
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: python-productmd
|
Name: python-productmd
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 8%{?dist}.git3b72969
|
Release: 9%{?dist}
|
||||||
Summary: Library providing parsers for metadata related to OS installation
|
Summary: Library providing parsers for metadata related to OS installation
|
||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://github.com/release-engineering/productmd
|
URL: https://github.com/release-engineering/productmd
|
||||||
#tarball made by running python2 setup.py sdist in the checkout
|
Source0: productmd-%{version}.tar.gz
|
||||||
#commit has used: 3b72969cca33021954ee61746c9ba5b3e3d47dd9
|
|
||||||
Source0: productmd-%{version}.tar.bz2
|
Obsoletes: productmd <= %{version}-%{release}
|
||||||
|
Provides: productmd = %{version}-%{release}
|
||||||
|
Provides: python2-productmd = %{version}-%{release}
|
||||||
|
Requires: python-six
|
||||||
|
|
||||||
BuildRequires: python2-devel python-setuptools
|
BuildRequires: python2-devel python-setuptools
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
@ -37,6 +45,7 @@ and installation media.
|
|||||||
%package -n python3-productmd
|
%package -n python3-productmd
|
||||||
Summary: Library providing parsers for metadata related to OS installation
|
Summary: Library providing parsers for metadata related to OS installation
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
|
Requires: python3-six
|
||||||
|
|
||||||
%description -n python3-productmd
|
%description -n python3-productmd
|
||||||
Python library providing parsers for metadata related to composes
|
Python library providing parsers for metadata related to composes
|
||||||
@ -63,16 +72,16 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
pushd python2
|
||||||
|
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||||
|
popd
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd python3
|
pushd python3
|
||||||
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
pushd python2
|
|
||||||
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
||||||
popd
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd python2
|
pushd python2
|
||||||
%{__python2} ./setup.py test
|
%{__python2} ./setup.py test
|
||||||
@ -85,10 +94,8 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %doc}
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
%{python_sitelib}/productmd/
|
%{python_sitelib}/productmd/
|
||||||
%{python_sitelib}/productmd-%{version}-py?.?.egg-info
|
%{python_sitelib}/productmd-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
@ -96,12 +103,21 @@ popd
|
|||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%files -n python3-productmd
|
%files -n python3-productmd
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
%{python3_sitelib}/productmd/
|
%{python3_sitelib}/productmd/
|
||||||
%{python3_sitelib}/productmd-%{version}-py?.?.egg-info
|
%{python3_sitelib}/productmd-%{version}-py?.?.egg-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 26 2016 Dennis Gilmore <dennis@ausil.us> - 1.0-10
|
||||||
|
- provide python2-productmd
|
||||||
|
- remove defattr
|
||||||
|
|
||||||
|
* Fri Dec 11 2015 Daniel Mach <dmach@redhat.com> - 1.0-9
|
||||||
|
- Use v1.0 tarball from github
|
||||||
|
- Fix spec for el6 (license macro)
|
||||||
|
- Add dependency on python(3)-six
|
||||||
|
|
||||||
* Wed Dec 09 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-8.git3b72969
|
* Wed Dec 09 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-8.git3b72969
|
||||||
- enable building only on python 2 on epel
|
- enable building only on python 2 on epel
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user