Update to 0.1.11

This commit is contained in:
Pavla Kratochvilova 2019-03-12 10:16:02 +01:00
parent 3e89dddd6a
commit b8c0becc6f
2 changed files with 50 additions and 16 deletions

View File

@ -1,3 +1,4 @@
# Do not build python3 bindings for RHEL <= 7
%if 0%{?rhel} && 0%{?rhel} <= 7 %if 0%{?rhel} && 0%{?rhel} <= 7
%bcond_with python3 %bcond_with python3
%else %else
@ -12,8 +13,8 @@
%endif %endif
Name: libcomps Name: libcomps
Version: 0.1.10 Version: 0.1.11
Release: 2%{?dist} Release: 1%{?dist}
Summary: Comps XML file manipulation library Summary: Comps XML file manipulation library
License: GPLv2+ License: GPLv2+
@ -26,6 +27,7 @@ BuildRequires: gcc
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
BuildRequires: check-devel BuildRequires: check-devel
BuildRequires: expat-devel BuildRequires: expat-devel
BuildRequires: zlib-devel
%description %description
Libcomps is library for structure-like manipulation with content of Libcomps is library for structure-like manipulation with content of
@ -51,7 +53,16 @@ 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.
@ -82,15 +93,17 @@ Python3 bindings for libcomps library.
%prep %prep
%autosetup -n %{name}-%{name}-%{version} %autosetup -n %{name}-%{name}-%{version}
mkdir build %if %{with python2}
mkdir build-py2
%endif
%if %{with python3} %if %{with python3}
mkdir build-py3 mkdir build-py3
%endif %endif
mkdir build-doc
%build %build
%if %{with python2} %if %{with python2}
pushd build pushd build-py2
%cmake ../libcomps/ -DPYTHON_DESIRED:STRING=2 %cmake ../libcomps/ -DPYTHON_DESIRED:STRING=2
%make_build %make_build
popd popd
@ -100,14 +113,24 @@ popd
pushd build-py3 pushd build-py3
%cmake ../libcomps/ -DPYTHON_DESIRED:STRING=3 %cmake ../libcomps/ -DPYTHON_DESIRED:STRING=3
%make_build %make_build
make %{?_smp_mflags} docs
make %{?_smp_mflags} pydocs
popd popd
%endif %endif
pushd build-doc
%if %{with python2}
%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} pydocs
popd
%install %install
%if %{with python2} %if %{with python2}
pushd build pushd build-py2
%make_install %make_install
popd popd
%endif %endif
@ -120,17 +143,25 @@ popd
%check %check
%if %{with python2} %if %{with python2}
pushd build pushd build-py2
make test make test
popd
%endif
%if %{with python3}
pushd build-py3
make pytest make pytest
popd popd
%endif %endif
%if %{with python3}
pushd build-py3
make test
make pytest
popd
%endif
%if %{undefined ldconfig_scriptlets}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%else
%ldconfig_scriptlets %ldconfig_scriptlets
%endif
%files %files
%license COPYING %license COPYING
@ -142,10 +173,10 @@ popd
%{_includedir}/%{name}/ %{_includedir}/%{name}/
%files doc %files doc
%doc build-py3/docs/libcomps-doc/html %doc build-doc/docs/libcomps-doc/html
%files -n python-%{name}-doc %files -n python-%{name}-doc
%doc build-py3/src/python/docs/html %doc build-doc/src/python/docs/html
%if %{with python2} %if %{with python2}
%files -n python2-%{name} %files -n python2-%{name}
@ -158,6 +189,9 @@ popd
%endif %endif
%changelog %changelog
* Mon Mar 11 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 0.1.11-1
- Update to 0.1.11
* Wed Feb 13 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 0.1.10-1 * Wed Feb 13 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 0.1.10-1
- Update to 0.1.10 - Update to 0.1.10

View File

@ -1 +1 @@
SHA512 (libcomps-0.1.10.tar.gz) = 063bfc01dfee03ab1c48fef1293b4d95d3b7f8d05ee44c3285d72ed47a7e3d176bee94c7d6b9b9f5a7c209db969cafaaf9dd8a2f01426d27d33e3b161910cc3a SHA512 (libcomps-0.1.11.tar.gz) = eeb1749b48be4497f85bc2296d919b25ca59bb3dfe97fe84abfd5ef49b66d29946b08e3d1f560bf843d9d2aed17f878132caee55e4949a37af82cc8a92e5e99a