Update to 0.1.16
Resolves: rhbz#1951431
This commit is contained in:
parent
683650bf9d
commit
9b766a9a39
@ -1,22 +1,8 @@
|
|||||||
%define __cmake_in_source_build 1
|
%define __cmake_in_source_build 1
|
||||||
|
|
||||||
# Do not build python3 bindings for RHEL <= 7
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
||||||
%bcond_with python3
|
|
||||||
%else
|
|
||||||
%bcond_without python3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Do not build python2 bindings for RHEL > 7 and Fedora > 29
|
|
||||||
%if 0%{?rhel} > 7 || 0%{?fedora} > 29
|
|
||||||
%bcond_with python2
|
|
||||||
%else
|
|
||||||
%bcond_without python2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: libcomps
|
Name: libcomps
|
||||||
Version: 0.1.15
|
Version: 0.1.16
|
||||||
Release: 7%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Comps XML file manipulation library
|
Summary: Comps XML file manipulation library
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -55,32 +41,12 @@ Documentation files for libcomps library.
|
|||||||
Summary: Documentation files for python bindings libcomps library
|
Summary: Documentation files for python bindings libcomps library
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with python3}
|
|
||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinx
|
||||||
%endif
|
|
||||||
%if %{with python2}
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
||||||
BuildRequires: python-sphinx
|
|
||||||
%else
|
|
||||||
BuildRequires: python2-sphinx
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description -n python-%{name}-doc
|
%description -n python-%{name}-doc
|
||||||
Documentation files for python bindings libcomps library.
|
Documentation files for python bindings libcomps library.
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%package -n python2-%{name}
|
|
||||||
Summary: Python 2 bindings for libcomps library
|
|
||||||
%{?python_provide:%python_provide python2-%{name}}
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-%{name}
|
|
||||||
Python 2 bindings for libcomps library.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Summary: Python 3 bindings for libcomps library
|
Summary: Python 3 bindings for libcomps library
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -91,73 +57,35 @@ Obsoletes: platform-python-%{name} < %{version}-%{release}
|
|||||||
|
|
||||||
%description -n python3-%{name}
|
%description -n python3-%{name}
|
||||||
Python3 bindings for libcomps library.
|
Python3 bindings for libcomps library.
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{name}-%{name}-%{version}
|
%autosetup -p1 -n %{name}-%{name}-%{version}
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
mkdir build-py2
|
|
||||||
%endif
|
|
||||||
%if %{with python3}
|
|
||||||
mkdir build-py3
|
mkdir build-py3
|
||||||
%endif
|
|
||||||
mkdir build-doc
|
mkdir build-doc
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{with python2}
|
|
||||||
pushd build-py2
|
|
||||||
%cmake ../libcomps/ -DPYTHON_DESIRED:STRING=2
|
|
||||||
%make_build
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
pushd build-py3
|
pushd build-py3
|
||||||
%cmake ../libcomps/ -DPYTHON_DESIRED:STRING=3
|
%cmake ../libcomps/
|
||||||
%make_build
|
%make_build
|
||||||
popd
|
popd
|
||||||
%endif
|
|
||||||
|
|
||||||
pushd build-doc
|
pushd build-doc
|
||||||
%if %{with python2}
|
%cmake ../libcomps/
|
||||||
%cmake ../libcomps/ -DPYTHON_DESIRED:STRING=2
|
|
||||||
%else
|
|
||||||
%if %{with python3}
|
|
||||||
%cmake ../libcomps/ -DPYTHON_DESIRED:STRING=3
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
make %{?_smp_mflags} docs
|
make %{?_smp_mflags} docs
|
||||||
make %{?_smp_mflags} pydocs
|
make %{?_smp_mflags} pydocs
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{with python2}
|
|
||||||
pushd build-py2
|
|
||||||
%make_install
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
pushd build-py3
|
pushd build-py3
|
||||||
%make_install
|
%make_install
|
||||||
popd
|
popd
|
||||||
%endif
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with python2}
|
|
||||||
pushd build-py2
|
|
||||||
make test
|
|
||||||
make pytest
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
pushd build-py3
|
pushd build-py3
|
||||||
make test
|
make test
|
||||||
make pytest
|
make pytest
|
||||||
popd
|
popd
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{undefined ldconfig_scriptlets}
|
%if %{undefined ldconfig_scriptlets}
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
@ -182,19 +110,16 @@ popd
|
|||||||
%files -n python-%{name}-doc
|
%files -n python-%{name}-doc
|
||||||
%doc build-doc/src/python/docs/html
|
%doc build-doc/src/python/docs/html
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%files -n python2-%{name}
|
|
||||||
%{python2_sitearch}/%{name}/
|
|
||||||
%{python2_sitearch}/%{name}-%{version}-py%{python2_version}.egg-info
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%{python3_sitearch}/%{name}/
|
%{python3_sitearch}/%{name}/
|
||||||
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
|
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 27 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 0.1.16-1
|
||||||
|
- Update to 0.1.16
|
||||||
|
- Fix a crash when clearing COMPS_ObjRTree (RhBug:1888343)
|
||||||
|
- Fix memory leaks and resource leaks
|
||||||
|
|
||||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.1.15-7
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.1.15-7
|
||||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (libcomps-0.1.15.tar.gz) = e546853c70bf463345803db28cb47a19671f58e45641624b9b4a25486347e7d9d57fcf6b2e7d8dc77e510aa009c7fc2d0c300d19b2eb3fe9b4b01e12e3e70404
|
SHA512 (libcomps-0.1.16.tar.gz) = b0e429e792d72f643b28cff3f8aacf522c2bf150415ee7b35f48e09ce7c4b5a05e9468e694fe2e0ed07a9fefdc786bd4e7ae3476282d6154790d4d03148c336d
|
||||||
|
Loading…
Reference in New Issue
Block a user