2014-04-11 13:05:56 +00:00
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
2016-04-12 09:27:05 +00:00
|
|
|
%bcond_with python3
|
2014-03-06 10:10:50 +00:00
|
|
|
%else
|
2016-04-12 09:27:05 +00:00
|
|
|
%bcond_without python3
|
2014-03-06 10:10:50 +00:00
|
|
|
%endif
|
|
|
|
|
2013-08-08 14:37:41 +00:00
|
|
|
Name: libcomps
|
2016-09-22 12:27:30 +00:00
|
|
|
Version: 0.1.8
|
2017-02-10 18:29:11 +00:00
|
|
|
Release: 3%{?dist}
|
2013-08-08 14:37:41 +00:00
|
|
|
Summary: Comps XML file manipulation library
|
|
|
|
|
|
|
|
License: GPLv2+
|
2016-04-12 09:27:05 +00:00
|
|
|
URL: https://github.com/rpm-software-management/libcomps
|
|
|
|
Source0: %{url}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc
|
2013-08-08 14:37:41 +00:00
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: check-devel
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
Libcomps is library for structure-like manipulation with content of
|
|
|
|
comps XML files. Supports read/write XML file, structure(s) modification.
|
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for libcomps library
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for libcomps library.
|
|
|
|
|
2013-08-08 14:37:41 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation files for libcomps library
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
|
|
|
%description doc
|
2016-04-12 09:27:05 +00:00
|
|
|
Documentation files for libcomps library.
|
2013-08-08 14:37:41 +00:00
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%package -n python-%{name}-doc
|
2014-01-21 14:22:32 +00:00
|
|
|
Summary: Documentation files for python bindings libcomps library
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-sphinx
|
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%description -n python-%{name}-doc
|
|
|
|
Documentation files for python bindings libcomps library.
|
2013-08-08 14:37:41 +00:00
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%package -n python2-%{name}
|
|
|
|
Summary: Python 2 bindings for libcomps library
|
|
|
|
%{?python_provide:%python_provide python2-%{name}}
|
|
|
|
BuildRequires: python2-devel
|
2013-08-08 14:37:41 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%description -n python2-%{name}
|
|
|
|
Python 2 bindings for libcomps library.
|
2013-08-08 14:37:41 +00:00
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%if %{with python3}
|
|
|
|
%package -n python3-%{name}
|
|
|
|
Summary: Python 3 bindings for libcomps library
|
2013-08-08 14:37:41 +00:00
|
|
|
BuildRequires: python3-devel
|
2016-08-09 15:16:31 +00:00
|
|
|
%{?system_python_abi}
|
2016-04-12 09:27:05 +00:00
|
|
|
%{?python_provide:%python_provide python3-%{name}}
|
2013-08-08 14:37:41 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%description -n python3-%{name}
|
|
|
|
Python3 bindings for libcomps library.
|
2014-03-06 10:10:50 +00:00
|
|
|
%endif
|
2013-08-08 14:37:41 +00:00
|
|
|
|
|
|
|
%prep
|
2016-04-12 09:27:05 +00:00
|
|
|
%autosetup -n %{name}-%{name}-%{version}
|
|
|
|
|
|
|
|
mkdir build
|
2013-08-08 14:37:41 +00:00
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%if %{with python3}
|
|
|
|
mkdir build-py3
|
2014-03-06 10:10:50 +00:00
|
|
|
%endif
|
2013-08-08 14:37:41 +00:00
|
|
|
|
|
|
|
%build
|
2016-04-12 09:27:05 +00:00
|
|
|
pushd build
|
|
|
|
%cmake ../libcomps/ -DPYTHON_DESIRED:STRING=2
|
|
|
|
%make_build
|
|
|
|
make %{?_smp_mflags} docs
|
|
|
|
make %{?_smp_mflags} pydocs
|
2013-08-08 14:37:41 +00:00
|
|
|
popd
|
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%if %{with python3}
|
|
|
|
pushd build-py3
|
|
|
|
%cmake ../libcomps/ -DPYTHON_DESIRED:STRING=3
|
|
|
|
%make_build
|
2014-01-21 14:22:32 +00:00
|
|
|
popd
|
2014-03-06 10:10:50 +00:00
|
|
|
%endif
|
2013-08-08 14:37:41 +00:00
|
|
|
|
|
|
|
%install
|
2016-04-12 09:27:05 +00:00
|
|
|
pushd build
|
|
|
|
%make_install
|
|
|
|
popd
|
2014-03-06 10:10:50 +00:00
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%if %{with python3}
|
|
|
|
pushd build-py3
|
|
|
|
%make_install
|
2013-08-08 14:37:41 +00:00
|
|
|
popd
|
2014-03-06 10:10:50 +00:00
|
|
|
%endif
|
2013-08-08 14:37:41 +00:00
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%check
|
|
|
|
pushd build
|
|
|
|
make test
|
|
|
|
popd
|
|
|
|
%if %{with python3}
|
|
|
|
pushd build-py3
|
|
|
|
make pytest
|
|
|
|
popd
|
|
|
|
%endif
|
2013-08-08 14:37:41 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2016-04-12 09:27:05 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
|
|
|
%{_libdir}/%{name}.so.*
|
2013-08-08 14:37:41 +00:00
|
|
|
|
|
|
|
%files devel
|
2016-04-12 09:27:05 +00:00
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_includedir}/%{name}/
|
2013-08-08 14:37:41 +00:00
|
|
|
|
|
|
|
%files doc
|
2016-04-12 09:27:05 +00:00
|
|
|
%doc build/docs/libcomps-doc/html
|
2013-08-08 14:37:41 +00:00
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%files -n python-%{name}-doc
|
|
|
|
%doc build/src/python/docs/html
|
2014-01-21 14:22:32 +00:00
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%files -n python2-%{name}
|
|
|
|
%{python2_sitearch}/%{name}/
|
2013-08-08 14:37:41 +00:00
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
%if %{with python3}
|
|
|
|
%files -n python3-%{name}
|
|
|
|
%{python3_sitearch}/%{name}/
|
2014-03-06 10:10:50 +00:00
|
|
|
%endif
|
2013-08-08 14:37:41 +00:00
|
|
|
|
|
|
|
%changelog
|
2017-02-10 18:29:11 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-13 11:58:25 +00:00
|
|
|
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 0.1.8-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-09-22 12:27:30 +00:00
|
|
|
* Thu Sep 22 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.1.8-1
|
|
|
|
- Update to 0.1.8
|
|
|
|
|
2016-08-09 15:16:31 +00:00
|
|
|
* Tue Aug 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.1.7-6
|
|
|
|
- Add %%{?system_python_abi}
|
|
|
|
|
2016-07-19 07:37:57 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-5
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-04-12 09:27:05 +00:00
|
|
|
* Tue Apr 12 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.1.7-4
|
|
|
|
- Adopt to new packaging guidelines
|
|
|
|
- Use %%license macro
|
|
|
|
- Fix file ownerships
|
|
|
|
|
2016-02-04 03:00:14 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-10-14 08:47:10 +00:00
|
|
|
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 0.1.7-2
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
|
2015-08-13 11:33:10 +00:00
|
|
|
* Thu Jul 02 2015 Jindrich Luza <jluza@redhat.com> 0.1.7
|
|
|
|
- added langpacks to union process
|
|
|
|
- comps DOCTYPE read-write-read fix
|
|
|
|
- support biarchonly attribute
|
|
|
|
- fixed rhbz#1073885 rhbz#1073890 rhbz#1073907 rhbz#1073979
|
|
|
|
- fix rhbz#1073079
|
|
|
|
- comps_*_match() now support fnmatching
|
|
|
|
- added libpycomps.MATCH_IGNORECASE as matching flag
|
|
|
|
- added group.packages_match
|
|
|
|
- added comps.groups_match, comps.categories_match, comps.entironments_match
|
|
|
|
- PyCOMPS_Package hash
|
|
|
|
- cmake-2.6, python-2.6, RHEL-6 compatible
|
|
|
|
- '_arch' attribute change to 'arch'
|
|
|
|
- empty 'arch' attribute will be ommited from output from now
|
2014-08-17 02:41:18 +00:00
|
|
|
|
2014-01-29 11:30:44 +00:00
|
|
|
* Wed Jan 29 2014 Jindrich Luza <jluza@redhat.com> 0.1.6
|
|
|
|
- version bumped
|
|
|
|
- added libcomps.MDict.keys()
|
|
|
|
- libcomps.MDict.values()
|
|
|
|
- libcomps.MDict.items()
|
|
|
|
- libcomps.MDict.clear()
|
|
|
|
- libcomps.MDict.update()
|
|
|
|
- libcomps.MDict.copy()
|
|
|
|
- COMPS_List replaced with COMPS_HSList
|
|
|
|
- added missing basearchonly to DocGroupPackage
|
|
|
|
- python3/CMakeLists.txt fixed
|
|
|
|
- added explicit attributes support for xml options
|
|
|
|
- added arch_filter test for python
|
|
|
|
- insert method in libcomps.Sequence
|
|
|
|
- Unioning is now accomplished with replace x append policy
|
|
|
|
- Weaker package equality check (comparing only name now)
|
|
|
|
- Fixed leeks in unioning
|
|
|
|
- modified test_merge_comps test_libcomps
|
|
|
|
- dictionaries are now storing keys in alphabetical order
|
|
|
|
- comps parser redesigned
|
|
|
|
- change python/tests directory composition
|
|
|
|
- added elem attributes check in parser
|
|
|
|
- xml output '_arch' attribute support
|
|
|
|
- parser and xml output defaults options for specify defaults values
|
|
|
|
- comps object validation in python
|
|
|
|
- added validity checker before append/set object to list (python only)
|
|
|
|
- .validate() method
|
|
|
|
- added libcomps.Dict.keys
|
|
|
|
- libcomps.Dict.values
|
|
|
|
- libcomps.Dict.items
|
|
|
|
- libcomps.Dict.clear
|
|
|
|
- libcomps.Dict.update
|
|
|
|
- libcomps.Dict.copy
|
|
|
|
- added xml output options (comps.xml_str([options = {}]), comps.xml_f(options = {}))
|
|
|
|
|
2013-10-23 14:46:29 +00:00
|
|
|
* Wed Oct 23 2013 Jindrich Luza <jluza@redhat.com> 0.1.4-4
|
|
|
|
- group.uservisible is true by default now.
|
2014-01-21 14:22:32 +00:00
|
|
|
- fixed comps_mobjradix parent node problem
|
|
|
|
- implemented bindings for blacklist, whiteout and langpacks
|
|
|
|
- COMPS_Logger redesigned
|
2013-10-22 11:21:43 +00:00
|
|
|
|
2013-12-03 12:34:12 +00:00
|
|
|
* Tue Oct 08 2013 Jindrich Luza <jluza@redhat.com> 0.1.5
|
|
|
|
- version bump
|
2014-01-21 14:22:32 +00:00
|
|
|
- PyCOMPS_Sequence.__getitem__["objectid"] implemented for libcomps.GroupList, libcomps.CategoryList, libcomps.EnvList
|
|
|
|
- added missing files
|
|
|
|
- missing display_order fix for libcomps.Environment
|
2013-10-01 15:01:33 +00:00
|
|
|
|
|
|
|
* Tue Oct 01 2013 Jindrich Luza <jluza@redhat.com> 0.1.4
|
|
|
|
- added missing files
|
|
|
|
- architectural redesign finished
|
2013-09-06 12:34:34 +00:00
|
|
|
- fixed #1003986 by Gustavo Luiz Duarte guidelines (but not tested on ppc)
|
|
|
|
- fixed bug #1000449
|
|
|
|
- fixed bug #1000442
|
|
|
|
- added GroupId.default test
|
|
|
|
- some minor unreported bugs discovered during testing fixed
|
2014-01-21 14:22:32 +00:00
|
|
|
- finished default attribute support in groupid object
|
|
|
|
- Comps.get_last_parse_errors and Comps.get_last_parse_log has been renamed
|
|
|
|
- as Comps.get_last_errors and Comps.get_last_log
|
|
|
|
- version bumped. Python bindings is now easier.
|
|
|
|
- added missing files
|
2013-08-20 13:39:08 +00:00
|
|
|
|
|
|
|
* Tue Aug 20 2013 Jindrich Luza <jluza@redhat.com> 0.1.3
|
|
|
|
- finished default attribute support in groupid object
|
|
|
|
- Comps.get_last_parse_errors and Comps.get_last_parse_log has been renamed
|
|
|
|
- as Comps.get_last_errors and Comps.get_last_log
|
2013-09-06 12:34:34 +00:00
|
|
|
- finished default attribute support in groupid object
|
|
|
|
- Comps.get_last_parse_errors and Comps.get_last_parse_log has been renamed
|
|
|
|
- as Comps.get_last_errors and Comps.get_last_log
|
2013-08-08 14:37:41 +00:00
|
|
|
|
|
|
|
* Thu Jul 18 2013 Jindrich Luza <jluza@redhat.com> 0.1.2
|
|
|
|
- automatic changelog system
|
|
|
|
- fixed issue #14
|
|
|
|
- libcomps.Dict is now behave more like python dict. Implemented iter(libcomps.Dict)
|
|
|
|
- libcomps.iteritems() and libcomps.itervalues()
|
|
|
|
- remaked error reporting system.
|
|
|
|
- libcomps.Comps.fromxml_f and libcomps.Comps.fromxml_str now return
|
|
|
|
- -1, 0 or 1. 0 means parse procedure completed without any problem,
|
|
|
|
- 1 means there's some errors or warnings but not fatal. -1 indicates
|
|
|
|
- fatal error problem (some results maybe given, but probably incomplete
|
|
|
|
- and invalid)
|
|
|
|
- errors catched during parsing can be obtained by calling
|
|
|
|
- libcomps.Comps.get_last_parse_errors
|
|
|
|
- all log is given by
|
|
|
|
- libcomps.Comps.get_last_parse_log
|
2014-01-29 11:30:44 +00:00
|
|
|
- prop system complete
|
|
|
|
- fixed issue 1
|
|
|
|
- fixed issue 3
|
|
|
|
- added <packagereq requires=...> support
|
|
|
|
- new prop system in progress....
|
|
|
|
- separated doc package
|
|
|
|
- some minor fixes in CMakeFiles
|
|
|
|
- improved integrated tests
|
2013-08-08 14:37:41 +00:00
|
|
|
|
|
|
|
* Tue Jun 25 2013 Jindrich Luza <jluza@redhat.com> 0.1.1-1
|
|
|
|
- Automatic commit of package [libcomps] release [0.1.1-1].
|
|
|
|
|