|
|
b381a4 |
%define __cmake_in_source_build 1
|
|
|
1dfe7b |
|
|
|
1dfe7b |
Name: libcomps
|
|
|
b381a4 |
Version: 0.1.16
|
|
|
0ad99e |
Release: 2%{?dist}
|
|
|
1dfe7b |
Summary: Comps XML file manipulation library
|
|
|
1dfe7b |
|
|
|
1dfe7b |
License: GPLv2+
|
|
|
1dfe7b |
URL: https://github.com/rpm-software-management/libcomps
|
|
|
b381a4 |
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
0ad99e |
Patch1: 0001-Dont-print-empty-requires.patch
|
|
|
1dfe7b |
|
|
|
1dfe7b |
BuildRequires: gcc-c++
|
|
|
1dfe7b |
BuildRequires: cmake
|
|
|
1dfe7b |
BuildRequires: gcc
|
|
|
1dfe7b |
BuildRequires: libxml2-devel
|
|
|
1dfe7b |
BuildRequires: check-devel
|
|
|
1dfe7b |
BuildRequires: expat-devel
|
|
|
1dfe7b |
BuildRequires: zlib-devel
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%description
|
|
|
1dfe7b |
Libcomps is library for structure-like manipulation with content of
|
|
|
1dfe7b |
comps XML files. Supports read/write XML file, structure(s) modification.
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%package devel
|
|
|
1dfe7b |
Summary: Development files for libcomps library
|
|
|
1dfe7b |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%description devel
|
|
|
1dfe7b |
Development files for libcomps library.
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%package doc
|
|
|
1dfe7b |
Summary: Documentation files for libcomps library
|
|
|
1dfe7b |
Requires: %{name} = %{version}-%{release}
|
|
|
1dfe7b |
BuildArch: noarch
|
|
|
1dfe7b |
BuildRequires: doxygen
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%description doc
|
|
|
1dfe7b |
Documentation files for libcomps library.
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%package -n python-%{name}-doc
|
|
|
1dfe7b |
Summary: Documentation files for python bindings libcomps library
|
|
|
1dfe7b |
Requires: %{name} = %{version}-%{release}
|
|
|
1dfe7b |
BuildArch: noarch
|
|
|
1dfe7b |
BuildRequires: python3-sphinx
|
|
|
b381a4 |
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%description -n python-%{name}-doc
|
|
|
1dfe7b |
Documentation files for python bindings libcomps library.
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%package -n python3-%{name}
|
|
|
1dfe7b |
Summary: Python 3 bindings for libcomps library
|
|
|
1dfe7b |
BuildRequires: python3-devel
|
|
|
1dfe7b |
%{?python_provide:%python_provide python3-%{name}}
|
|
|
1dfe7b |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
1dfe7b |
Obsoletes: platform-python-%{name} < %{version}-%{release}
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%description -n python3-%{name}
|
|
|
1dfe7b |
Python3 bindings for libcomps library.
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%prep
|
|
|
b381a4 |
%autosetup -n %{name}-%{version} -p1
|
|
|
1dfe7b |
|
|
|
1dfe7b |
mkdir build-py3
|
|
|
1dfe7b |
mkdir build-doc
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%build
|
|
|
1dfe7b |
pushd build-py3
|
|
|
b381a4 |
%cmake ../libcomps/
|
|
|
1dfe7b |
%make_build
|
|
|
1dfe7b |
popd
|
|
|
1dfe7b |
|
|
|
1dfe7b |
pushd build-doc
|
|
|
b381a4 |
%cmake ../libcomps/
|
|
|
1dfe7b |
make %{?_smp_mflags} docs
|
|
|
1dfe7b |
make %{?_smp_mflags} pydocs
|
|
|
1dfe7b |
popd
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%install
|
|
|
1dfe7b |
pushd build-py3
|
|
|
1dfe7b |
%make_install
|
|
|
1dfe7b |
popd
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%check
|
|
|
1dfe7b |
pushd build-py3
|
|
|
1dfe7b |
make test
|
|
|
1dfe7b |
make pytest
|
|
|
1dfe7b |
popd
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%if %{undefined ldconfig_scriptlets}
|
|
|
1dfe7b |
%post -p /sbin/ldconfig
|
|
|
1dfe7b |
%postun -p /sbin/ldconfig
|
|
|
1dfe7b |
%else
|
|
|
1dfe7b |
%ldconfig_scriptlets
|
|
|
1dfe7b |
%endif
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%files
|
|
|
1dfe7b |
%license COPYING
|
|
|
1dfe7b |
%doc README.md
|
|
|
1dfe7b |
%{_libdir}/%{name}.so.*
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%files devel
|
|
|
1dfe7b |
%{_libdir}/%{name}.so
|
|
|
b381a4 |
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
1dfe7b |
%{_includedir}/%{name}/
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%files doc
|
|
|
1dfe7b |
%doc build-doc/docs/libcomps-doc/html
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%files -n python-%{name}-doc
|
|
|
1dfe7b |
%doc build-doc/src/python/docs/html
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%files -n python3-%{name}
|
|
|
1dfe7b |
%{python3_sitearch}/%{name}/
|
|
|
b381a4 |
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
|
|
|
1dfe7b |
|
|
|
1dfe7b |
%changelog
|
|
|
0ad99e |
* Fri May 21 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 0.1.16-2
|
|
|
0ad99e |
- Backport patch: Don't print empty requires
|
|
|
0ad99e |
|
|
|
b381a4 |
* Fri Apr 30 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 0.1.16-1
|
|
|
b381a4 |
- Update to 0.1.16
|
|
|
b381a4 |
- Make inline function __comps_objmrtree_all also static (RhBug:1793424)
|
|
|
b381a4 |
- Fix memory leaks and resource leaks
|
|
|
b381a4 |
- Fix: Check result "comps_parse_parsed_init()"
|
|
|
b381a4 |
|
|
|
c66498 |
* Thu Jan 14 2021 Nicola Sella <nsella@redhat.com> - 0.1.11-5
|
|
|
c66498 |
- Use already implemented clear for COMPS_HSList (RhBug:1888343)
|
|
|
c66498 |
|
|
|
1dfe7b |
* Mon Jan 13 2020 Ales Matej <amatej@redhat.com> - 0.1.11-4
|
|
|
1dfe7b |
- Do not skip type=mandatory in xml output (RhBug:1771224)
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Wed Nov 13 2019 Ales Matej <amatej@redhat.com> - 0.1.11-3
|
|
|
1dfe7b |
- Fix segfault caused by empty dict created by *_by_lang in python api (RhBug:1757959)
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Thu Aug 01 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 0.1.11-2
|
|
|
1dfe7b |
- Backport patch: Fix order of asserts in unit test (RhBug:1713220)
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Mon May 13 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 0.1.11-1
|
|
|
1dfe7b |
- Update to 0.1.11
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Thu Dec 13 2018 Daniel Mach <dmach@redhat.com> - 0.1.8-13
|
|
|
1dfe7b |
- Fix resource leaks, double free, unused code, optimize
|
|
|
1dfe7b |
- Resolves: rhbz#1606974
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Mon Jun 25 2018 LumÃr Balhar <lbalhar@redhat.com> - 0.1.8-12
|
|
|
1dfe7b |
- Disable Python 2 subpackage (and dependent) by default
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-11
|
|
|
1dfe7b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Wed Jan 31 2018 Igor Gnatenko <ignatenko@redhat.com> - 0.1.8-10
|
|
|
1dfe7b |
- Switch to %%ldconfig_scriptlets
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Tue Nov 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.8-9
|
|
|
1dfe7b |
- Use better Obsoletes for platform-python
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Fri Nov 03 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.1.8-8
|
|
|
1dfe7b |
- Remove platform-python subpackage
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Fri Sep 01 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.1.8-7
|
|
|
1dfe7b |
- Disable platform python on old releases
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Thu Aug 10 2017 LumÃr Balhar <lbalhar@redhat.com> - 0.1.8-6
|
|
|
1dfe7b |
- Add Platform Python subpackage (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-5
|
|
|
1dfe7b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-4
|
|
|
1dfe7b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-3
|
|
|
1dfe7b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 0.1.8-2
|
|
|
1dfe7b |
- Rebuild for Python 3.6
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Thu Sep 22 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.1.8-1
|
|
|
1dfe7b |
- Update to 0.1.8
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Tue Aug 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.1.7-6
|
|
|
1dfe7b |
- Add %%{?system_python_abi}
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-5
|
|
|
1dfe7b |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Tue Apr 12 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.1.7-4
|
|
|
1dfe7b |
- Adopt to new packaging guidelines
|
|
|
1dfe7b |
- Use %%license macro
|
|
|
1dfe7b |
- Fix file ownerships
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-3
|
|
|
1dfe7b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 0.1.7-2
|
|
|
1dfe7b |
- Rebuilt for Python3.5 rebuild
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Thu Jul 02 2015 Jindrich Luza <jluza@redhat.com> 0.1.7
|
|
|
1dfe7b |
- added langpacks to union process
|
|
|
1dfe7b |
- comps DOCTYPE read-write-read fix
|
|
|
1dfe7b |
- support biarchonly attribute
|
|
|
1dfe7b |
- fixed rhbz#1073885 rhbz#1073890 rhbz#1073907 rhbz#1073979
|
|
|
1dfe7b |
- fix rhbz#1073079
|
|
|
1dfe7b |
- comps_*_match() now support fnmatching
|
|
|
1dfe7b |
- added libpycomps.MATCH_IGNORECASE as matching flag
|
|
|
1dfe7b |
- added group.packages_match
|
|
|
1dfe7b |
- added comps.groups_match, comps.categories_match, comps.entironments_match
|
|
|
1dfe7b |
- PyCOMPS_Package hash
|
|
|
1dfe7b |
- cmake-2.6, python-2.6, RHEL-6 compatible
|
|
|
1dfe7b |
- '_arch' attribute change to 'arch'
|
|
|
1dfe7b |
- empty 'arch' attribute will be ommited from output from now
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Wed Jan 29 2014 Jindrich Luza <jluza@redhat.com> 0.1.6
|
|
|
1dfe7b |
- version bumped
|
|
|
1dfe7b |
- added libcomps.MDict.keys()
|
|
|
1dfe7b |
- libcomps.MDict.values()
|
|
|
1dfe7b |
- libcomps.MDict.items()
|
|
|
1dfe7b |
- libcomps.MDict.clear()
|
|
|
1dfe7b |
- libcomps.MDict.update()
|
|
|
1dfe7b |
- libcomps.MDict.copy()
|
|
|
1dfe7b |
- COMPS_List replaced with COMPS_HSList
|
|
|
1dfe7b |
- added missing basearchonly to DocGroupPackage
|
|
|
1dfe7b |
- python3/CMakeLists.txt fixed
|
|
|
1dfe7b |
- added explicit attributes support for xml options
|
|
|
1dfe7b |
- added arch_filter test for python
|
|
|
1dfe7b |
- insert method in libcomps.Sequence
|
|
|
1dfe7b |
- Unioning is now accomplished with replace x append policy
|
|
|
1dfe7b |
- Weaker package equality check (comparing only name now)
|
|
|
1dfe7b |
- Fixed leeks in unioning
|
|
|
1dfe7b |
- modified test_merge_comps test_libcomps
|
|
|
1dfe7b |
- dictionaries are now storing keys in alphabetical order
|
|
|
1dfe7b |
- comps parser redesigned
|
|
|
1dfe7b |
- change python/tests directory composition
|
|
|
1dfe7b |
- added elem attributes check in parser
|
|
|
1dfe7b |
- xml output '_arch' attribute support
|
|
|
1dfe7b |
- parser and xml output defaults options for specify defaults values
|
|
|
1dfe7b |
- comps object validation in python
|
|
|
1dfe7b |
- added validity checker before append/set object to list (python only)
|
|
|
1dfe7b |
- .validate() method
|
|
|
1dfe7b |
- added libcomps.Dict.keys
|
|
|
1dfe7b |
- libcomps.Dict.values
|
|
|
1dfe7b |
- libcomps.Dict.items
|
|
|
1dfe7b |
- libcomps.Dict.clear
|
|
|
1dfe7b |
- libcomps.Dict.update
|
|
|
1dfe7b |
- libcomps.Dict.copy
|
|
|
1dfe7b |
- added xml output options (comps.xml_str([options = {}]), comps.xml_f(options = {}))
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Wed Oct 23 2013 Jindrich Luza <jluza@redhat.com> 0.1.4-4
|
|
|
1dfe7b |
- group.uservisible is true by default now.
|
|
|
1dfe7b |
- fixed comps_mobjradix parent node problem
|
|
|
1dfe7b |
- implemented bindings for blacklist, whiteout and langpacks
|
|
|
1dfe7b |
- COMPS_Logger redesigned
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Tue Oct 08 2013 Jindrich Luza <jluza@redhat.com> 0.1.5
|
|
|
1dfe7b |
- version bump
|
|
|
1dfe7b |
- PyCOMPS_Sequence.__getitem__["objectid"] implemented for libcomps.GroupList, libcomps.CategoryList, libcomps.EnvList
|
|
|
1dfe7b |
- added missing files
|
|
|
1dfe7b |
- missing display_order fix for libcomps.Environment
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Tue Oct 01 2013 Jindrich Luza <jluza@redhat.com> 0.1.4
|
|
|
1dfe7b |
- added missing files
|
|
|
1dfe7b |
- architectural redesign finished
|
|
|
1dfe7b |
- fixed #1003986 by Gustavo Luiz Duarte guidelines (but not tested on ppc)
|
|
|
1dfe7b |
- fixed bug #1000449
|
|
|
1dfe7b |
- fixed bug #1000442
|
|
|
1dfe7b |
- added GroupId.default test
|
|
|
1dfe7b |
- some minor unreported bugs discovered during testing fixed
|
|
|
1dfe7b |
- finished default attribute support in groupid object
|
|
|
1dfe7b |
- Comps.get_last_parse_errors and Comps.get_last_parse_log has been renamed
|
|
|
1dfe7b |
- as Comps.get_last_errors and Comps.get_last_log
|
|
|
1dfe7b |
- version bumped. Python bindings is now easier.
|
|
|
1dfe7b |
- added missing files
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Tue Aug 20 2013 Jindrich Luza <jluza@redhat.com> 0.1.3
|
|
|
1dfe7b |
- finished default attribute support in groupid object
|
|
|
1dfe7b |
- Comps.get_last_parse_errors and Comps.get_last_parse_log has been renamed
|
|
|
1dfe7b |
- as Comps.get_last_errors and Comps.get_last_log
|
|
|
1dfe7b |
- finished default attribute support in groupid object
|
|
|
1dfe7b |
- Comps.get_last_parse_errors and Comps.get_last_parse_log has been renamed
|
|
|
1dfe7b |
- as Comps.get_last_errors and Comps.get_last_log
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Thu Jul 18 2013 Jindrich Luza <jluza@redhat.com> 0.1.2
|
|
|
1dfe7b |
- automatic changelog system
|
|
|
1dfe7b |
- fixed issue #14
|
|
|
1dfe7b |
- libcomps.Dict is now behave more like python dict. Implemented iter(libcomps.Dict)
|
|
|
1dfe7b |
- libcomps.iteritems() and libcomps.itervalues()
|
|
|
1dfe7b |
- remaked error reporting system.
|
|
|
1dfe7b |
- libcomps.Comps.fromxml_f and libcomps.Comps.fromxml_str now return
|
|
|
1dfe7b |
- -1, 0 or 1. 0 means parse procedure completed without any problem,
|
|
|
1dfe7b |
- 1 means there's some errors or warnings but not fatal. -1 indicates
|
|
|
1dfe7b |
- fatal error problem (some results maybe given, but probably incomplete
|
|
|
1dfe7b |
- and invalid)
|
|
|
1dfe7b |
- errors catched during parsing can be obtained by calling
|
|
|
1dfe7b |
- libcomps.Comps.get_last_parse_errors
|
|
|
1dfe7b |
- all log is given by
|
|
|
1dfe7b |
- libcomps.Comps.get_last_parse_log
|
|
|
1dfe7b |
- prop system complete
|
|
|
1dfe7b |
- fixed issue 1
|
|
|
1dfe7b |
- fixed issue 3
|
|
|
1dfe7b |
- added <packagereq requires=...> support
|
|
|
1dfe7b |
- new prop system in progress....
|
|
|
1dfe7b |
- separated doc package
|
|
|
1dfe7b |
- some minor fixes in CMakeFiles
|
|
|
1dfe7b |
- improved integrated tests
|
|
|
1dfe7b |
|
|
|
1dfe7b |
* Tue Jun 25 2013 Jindrich Luza <jluza@redhat.com> 0.1.1-1
|
|
|
1dfe7b |
- Automatic commit of package [libcomps] release [0.1.1-1].
|
|
|
1dfe7b |
|