2017-02-15 20:14:52 +00:00
|
|
|
# ** IMPORTANT NOTE **
|
|
|
|
# This spec is also tracked in productmd upstream git:
|
|
|
|
# https://github.com/release-engineering/productmd
|
2018-01-17 09:27:02 +00:00
|
|
|
# Please synchronize changes to it with upstream.
|
2015-12-11 12:24:00 +00:00
|
|
|
|
2018-01-17 09:27:02 +00:00
|
|
|
%bcond_without python3
|
2017-02-15 20:14:52 +00:00
|
|
|
|
2015-03-13 19:24:22 +00:00
|
|
|
Name: python-productmd
|
2018-01-17 09:27:02 +00:00
|
|
|
Version: 1.10
|
2018-02-07 11:47:42 +00:00
|
|
|
Release: 3%{?dist}
|
2015-03-13 19:24:22 +00:00
|
|
|
Summary: Library providing parsers for metadata related to OS installation
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: https://github.com/release-engineering/productmd
|
2016-11-23 13:09:55 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
|
2015-03-13 19:24:22 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2017-08-19 13:42:07 +00:00
|
|
|
%global _description\
|
|
|
|
Python library providing parsers for metadata related to composes\
|
2015-03-13 19:24:22 +00:00
|
|
|
and installation media.
|
|
|
|
|
2017-08-19 13:42:07 +00:00
|
|
|
%description %_description
|
|
|
|
|
|
|
|
%package -n python2-productmd
|
|
|
|
Summary: %summary
|
|
|
|
Obsoletes: productmd <= %{version}-%{release}
|
|
|
|
Provides: productmd = %{version}-%{release}
|
2018-02-07 11:47:42 +00:00
|
|
|
BuildRequires: python2-devel
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-six
|
2017-08-19 13:42:07 +00:00
|
|
|
Requires: python-six
|
2018-02-07 11:47:42 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
BuildRequires: python2-six
|
|
|
|
Requires: python2-six
|
2018-01-17 09:27:02 +00:00
|
|
|
%endif
|
2017-08-19 13:42:07 +00:00
|
|
|
%{?python_provide:%python_provide python2-productmd}
|
|
|
|
|
|
|
|
%description -n python2-productmd %_description
|
|
|
|
|
2015-12-10 02:33:36 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-02-11 02:35:00 +00:00
|
|
|
%package -n python%{python3_pkgversion}-productmd
|
2018-02-07 11:47:42 +00:00
|
|
|
Summary: %{summary}
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
BuildRequires: python%{python3_pkgversion}-six
|
|
|
|
Requires: python%{python3_pkgversion}-six
|
2015-03-13 19:24:22 +00:00
|
|
|
|
2018-02-07 11:47:42 +00:00
|
|
|
%description -n python%{python3_pkgversion}-productmd %_description
|
2015-12-10 02:33:36 +00:00
|
|
|
%endif
|
2015-03-13 19:24:22 +00:00
|
|
|
|
|
|
|
%prep
|
2016-11-23 13:09:55 +00:00
|
|
|
%setup -q
|
2015-03-13 19:24:22 +00:00
|
|
|
|
|
|
|
%build
|
2016-11-23 13:09:55 +00:00
|
|
|
%py2_build
|
2015-03-13 19:24:22 +00:00
|
|
|
|
2015-12-10 02:33:36 +00:00
|
|
|
%if 0%{?with_python3}
|
2016-11-23 13:09:55 +00:00
|
|
|
%py3_build
|
2015-12-10 02:33:36 +00:00
|
|
|
%endif
|
2015-03-13 19:24:22 +00:00
|
|
|
|
|
|
|
%install
|
2016-11-23 13:09:55 +00:00
|
|
|
%py2_install
|
2016-01-26 15:57:56 +00:00
|
|
|
|
2015-12-10 02:33:36 +00:00
|
|
|
%if 0%{?with_python3}
|
2016-11-23 13:09:55 +00:00
|
|
|
%py3_install
|
2015-12-10 02:33:36 +00:00
|
|
|
%endif
|
2015-03-13 19:24:22 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
%{__python2} ./setup.py test
|
|
|
|
|
2015-12-10 02:33:36 +00:00
|
|
|
%if 0%{?with_python3}
|
2015-03-13 19:24:22 +00:00
|
|
|
%{__python3} ./setup.py test
|
2015-12-10 02:33:36 +00:00
|
|
|
%endif
|
2015-03-13 19:24:22 +00:00
|
|
|
|
2017-08-19 13:42:07 +00:00
|
|
|
%files -n python2-productmd
|
2015-03-13 19:24:22 +00:00
|
|
|
%license LICENSE
|
2015-12-11 12:24:00 +00:00
|
|
|
%doc AUTHORS
|
2018-01-19 06:48:02 +00:00
|
|
|
%{python2_sitelib}/*
|
2015-03-13 19:24:22 +00:00
|
|
|
|
2015-12-10 02:33:36 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-02-11 02:35:00 +00:00
|
|
|
%files -n python%{python3_pkgversion}-productmd
|
2015-03-13 19:24:22 +00:00
|
|
|
%license LICENSE
|
2015-12-11 12:24:00 +00:00
|
|
|
%doc AUTHORS
|
2018-01-17 11:57:28 +00:00
|
|
|
%{python3_sitelib}/*
|
2015-12-10 02:33:36 +00:00
|
|
|
%endif
|
2015-03-13 19:24:22 +00:00
|
|
|
|
|
|
|
%changelog
|
2018-02-07 11:47:42 +00:00
|
|
|
* Wed Feb 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.10-3
|
|
|
|
- packaging fixes
|
|
|
|
|
2018-01-19 06:48:02 +00:00
|
|
|
* Fri Jan 19 2018 Lubomír Sedlář <lsedlar@redhat.com> - 1.10-2
|
|
|
|
- Fix wrong python_sitelib macro (RHBZ#1536202)
|
|
|
|
|
2018-01-17 09:27:02 +00:00
|
|
|
* Wed Jan 17 2018 Lubomír Sedlář <lsedlar@redhat.com> 1.10-1
|
|
|
|
- Drop Fedora 25 build (lsedlar@redhat.com)
|
|
|
|
- Drop RHEL compatibility from spec (lsedlar@redhat.com)
|
|
|
|
- Use more relaxed release type checks (lholecek@redhat.com)
|
|
|
|
- Fix parse release id with dash in type (lsedlar@redhat.com)
|
|
|
|
- Add tests for parse_release_id() (lholecek@redhat.com)
|
|
|
|
- Update dependencies to include Python version (#97)
|
|
|
|
|
2017-10-24 05:56:27 +00:00
|
|
|
* Tue Oct 24 2017 Lubomír Sedlář <lsedlar@redhat.com> 1.9-1
|
|
|
|
- add updates-testing as a valid compose type (#96)
|
|
|
|
(dgilmore@fedoraproject.org)
|
|
|
|
- Update tito configuration (lsedlar@redhat.com)
|
|
|
|
|
2017-10-11 09:09:38 +00:00
|
|
|
* Wed Oct 11 2017 Lubomír Sedlář <lsedlar@redhat.com> 1.8-1
|
|
|
|
- Report better error on parsing invalid JSON (#95) (lubomir.sedlar@gmail.com)
|
|
|
|
- Python 2 binary package renamed to python2-productmd (zbyszek@in.waw.pl)
|
|
|
|
- Sync spec file with Fedora (#94) (lubomir.sedlar@gmail.com)
|
|
|
|
|
2017-08-19 13:42:07 +00:00
|
|
|
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.7-3
|
|
|
|
- Python 2 binary package renamed to python2-productmd
|
|
|
|
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
|
|
2017-07-27 11:21:26 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-04-19 13:06:55 +00:00
|
|
|
* Wed Apr 19 2017 Lubomír Sedlář <lsedlar@redhat.com> 1.7-1
|
|
|
|
- common: omit context kwarg to urlopen on old Python (lsedlar@redhat.com)
|
|
|
|
|
2017-04-06 07:03:40 +00:00
|
|
|
* Thu Apr 06 2017 Lubomír Sedlář <lsedlar@redhat.com> 1.6-1
|
|
|
|
- Add a new image type dvd-debuginfo (lsedlar@redhat.com)
|
|
|
|
- Add Tito release for F26 (lsedlar@redhat.com)
|
|
|
|
|
2017-04-04 08:41:56 +00:00
|
|
|
* Tue Apr 04 2017 Lubomír Sedlář <lsedlar@redhat.com> 1.5-1
|
|
|
|
- Add 'unified' to unique image attributes (lsedlar@redhat.com)
|
|
|
|
- Add EA - Early Access label (lkocman@redhat.com)
|
|
|
|
- Correctly parse type from ci compose (lsedlar@redhat.com)
|
|
|
|
- Simplify tests for creating compose id (lsedlar@redhat.com)
|
|
|
|
- Sync spec file with Fedora (enable Py3 for EPEL) (#79) (awilliam@redhat.com)
|
|
|
|
- Support 'unique image identifier' concept, enforce on 1.1+
|
|
|
|
(awilliam@redhat.com)
|
|
|
|
|
2017-02-15 20:14:52 +00:00
|
|
|
* Wed Feb 15 2017 Adam Williamson <awilliam@redhat.com>
|
|
|
|
- Restore compatibility cruft for pure-RHEL builds
|
|
|
|
|
2017-02-11 10:00:53 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-02-11 02:35:00 +00:00
|
|
|
* Fri Feb 10 2017 Adam Williamson <awilliam@redhat.com> - 1.4-2
|
|
|
|
- Enable Python 3 build for EL 6+
|
|
|
|
|
2017-01-10 08:37:59 +00:00
|
|
|
* Tue Jan 10 2017 Lubomír Sedlář <lsedlar@redhat.com> 1.4-1
|
|
|
|
- Fix loading variants from legacy composeinfo. (dmach@redhat.com)
|
|
|
|
- Fix sorting composes (lsedlar@redhat.com)
|
|
|
|
- Compose: scan all subdirs under compose_path for metadata.
|
|
|
|
(dmach@redhat.com)
|
|
|
|
- Add Python 3.6 on Travis (lsedlar@redhat.com)
|
|
|
|
- tests: add tests for ComposeInfo.get_variants() (kdreyer@redhat.com)
|
|
|
|
- tests: composeinfo variant arches are sets (kdreyer@redhat.com)
|
|
|
|
- composeinfo: py3 support for sort in get_variants() (kdreyer@redhat.com)
|
|
|
|
- composeinfo: py3 support for iter in get_variants() (kdreyer@redhat.com)
|
|
|
|
- composeinfo: check variant arches as a set (kdreyer@redhat.com)
|
|
|
|
- composeinfo: fix arch kwarg handling in get_arches() (kdreyer@redhat.com)
|
|
|
|
- Configure bztar with setup.cfg (lsedlar@redhat.com)
|
|
|
|
- Remove requirements.txt (lsedlar@redhat.com)
|
|
|
|
- Include requirements.txt in tarball (lsedlar@redhat.com)
|
|
|
|
- Move %%license definition just before %%files (lsedlar@redhat.com)
|
|
|
|
- Remove builder.test from releasers.conf (lsedlar@redhat.com)
|
|
|
|
- Install deps with setup.py on Travis (lsedlar@redhat.com)
|
|
|
|
|
2016-11-23 13:09:55 +00:00
|
|
|
* Wed Nov 23 2016 Lubomír Sedlář <lsedlar@redhat.com> 1.3-1
|
|
|
|
- new package built with tito
|
|
|
|
|
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-06-02 12:18:42 +00:00
|
|
|
* Thu Jun 02 2016 Lubomír Sedlář <lsedlar@redhat.com> - 1.2-1
|
|
|
|
- New upstream release
|
|
|
|
- Update source url to point to PyPI
|
|
|
|
- Allow numbers in variant IDs. (dmach)
|
|
|
|
- Add support for top-level variant UIDs with dashes. (dmach)
|
|
|
|
- Change JSON separators to unify behavior on py2 and py3. (dmach)
|
|
|
|
- Move src images under binary arches. (dmach)
|
|
|
|
- Silence flake8 by moving module imports to top. (dmach)
|
|
|
|
- Forbid 'src' arch in images.json and rpms.json. (dmach)
|
|
|
|
- Include tests/images data in MANIFEST.in. (dmach)
|
|
|
|
- Add docstring to Header class (lsedlar)
|
|
|
|
|
2016-04-25 13:05:37 +00:00
|
|
|
* Mon Apr 25 2016 Lubomír Sedlář <lsedlar@redhat.com> - 1.1-1
|
|
|
|
- new upstream release
|
|
|
|
- use .tar.gz tarball from github
|
|
|
|
- removed patches as they are merged upstream
|
|
|
|
|
2016-03-11 15:15:09 +00:00
|
|
|
* Fri Mar 11 2016 Dennis Gilmore <dennsi@ausil.us> - 1.0-13
|
|
|
|
- add patch for supporting subvariant
|
|
|
|
|
2016-02-19 02:02:42 +00:00
|
|
|
* Thu Feb 18 2016 Dennis Gilmore <dennis@ausil.us> - 1.0-12
|
|
|
|
- add a patch to make rawhide as a version consistently an option
|
|
|
|
|
2016-02-18 20:35:07 +00:00
|
|
|
* Thu Feb 18 2016 Dennis Gilmore <dennis@ausil.us> - 1.0-11
|
2016-02-18 20:42:44 +00:00
|
|
|
- update from git to allow us to use rawhide as the version
|
2016-02-18 20:35:07 +00:00
|
|
|
|
2016-02-04 20:32:09 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-26 15:57:56 +00:00
|
|
|
* Tue Jan 26 2016 Dennis Gilmore <dennis@ausil.us> - 1.0-10
|
|
|
|
- provide python2-productmd
|
|
|
|
- remove defattr
|
|
|
|
|
2015-12-11 12:24:00 +00:00
|
|
|
* 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
|
|
|
|
|
2015-12-10 02:33:36 +00:00
|
|
|
* Wed Dec 09 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-8.git3b72969
|
|
|
|
- enable building only on python 2 on epel
|
|
|
|
|
2015-11-10 16:44:46 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-7.git3b72969
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-11-03 19:39:16 +00:00
|
|
|
* Tue Nov 03 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-6.git3b72969
|
|
|
|
- update git snapshot
|
|
|
|
- rebuild for python-3.5
|
|
|
|
|
2015-06-18 20:20:28 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5.gitec8c627
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-07 16:08:57 +00:00
|
|
|
* Sun Jun 07 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-4.gitec8c627
|
|
|
|
- update git snapshot to latest git head with fixes for pungi
|
|
|
|
|
2015-03-13 19:24:22 +00:00
|
|
|
* Fri Mar 13 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-3.git57efab
|
|
|
|
- rename to python-productmd
|
|
|
|
|
|
|
|
* Wed Mar 11 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-2.git57efab
|
|
|
|
- update git tarball so we can run tests at build time
|
|
|
|
|
|
|
|
* Tue Mar 10 2015 Dennis Gilmore <dennis@ausil.us> - 1.0-1
|
|
|
|
- Initial packaging
|