Blame SPECS/libcomps.spec

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