provide python2-productmd
- remove defattr
This commit is contained in:
parent
27f5183b26
commit
a37700f136
@ -1,5 +1,8 @@
|
|||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
|
|
||||||
|
# this must go after all 'License:' tags
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
|
||||||
%if 0%{?fedora} && 0%{?fedora} <= 12
|
%if 0%{?fedora} && 0%{?fedora} <= 12
|
||||||
%global with_python3 0
|
%global with_python3 0
|
||||||
%endif
|
%endif
|
||||||
@ -19,6 +22,12 @@ Group: Development/Tools
|
|||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://github.com/release-engineering/productmd
|
URL: https://github.com/release-engineering/productmd
|
||||||
Source0: productmd-%{version}.tar.gz
|
Source0: productmd-%{version}.tar.gz
|
||||||
|
|
||||||
|
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
|
||||||
@ -28,26 +37,10 @@ BuildRequires: python-six
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
# this must go after all 'License:' tags
|
|
||||||
%{!?_licensedir:%global license %doc}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Python library providing parsers for metadata related to composes
|
Python library providing parsers for metadata related to composes
|
||||||
and installation media.
|
and installation media.
|
||||||
|
|
||||||
%package -n python2-productmd
|
|
||||||
Summary: Library providing parsers for metadata related to OS installation
|
|
||||||
Group: Development/Tools
|
|
||||||
Obsoletes: python-productmd <= %{version}-%{release}
|
|
||||||
Provides: python-productmd = %{version}-%{release}
|
|
||||||
Obsoletes: productmd <= %{version}-%{release}
|
|
||||||
Provides: productmd = %{version}-%{release}
|
|
||||||
Requires: python-six
|
|
||||||
|
|
||||||
%description -n python2-productmd
|
|
||||||
Python library providing parsers for metadata related to composes
|
|
||||||
and installation media.
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%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
|
||||||
@ -79,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
|
||||||
@ -100,8 +93,7 @@ pushd python3
|
|||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python2-productmd
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
%{python_sitelib}/productmd/
|
%{python_sitelib}/productmd/
|
||||||
@ -117,9 +109,12 @@ popd
|
|||||||
%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
|
* Fri Dec 11 2015 Daniel Mach <dmach@redhat.com> - 1.0-9
|
||||||
- Use v1.0 tarball from github
|
- Use v1.0 tarball from github
|
||||||
- Rename python-productmd to python2-productmd
|
|
||||||
- Fix spec for el6 (license macro)
|
- Fix spec for el6 (license macro)
|
||||||
- Add dependency on python(3)-six
|
- Add dependency on python(3)-six
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user