%define __cmake_in_source_build 1 Name: libcomps Version: 0.1.21 Release: 20240601005535.0.g2e973ce%{?dist} Summary: Comps XML file manipulation library License: GPL-2.0-or-later URL: https://github.com/rpm-software-management/libcomps Source0: libcomps-0.1.21-20240601005535.0.g2e973ce.tar.xz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: gcc BuildRequires: libxml2-devel BuildRequires: check-devel BuildRequires: expat-devel BuildRequires: zlib-devel %description Libcomps is library for structure-like manipulation with content of comps XML files. Supports read/write XML file, structure(s) modification. %package devel Summary: Development files for libcomps library Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for libcomps library. %package doc Summary: Documentation files for libcomps library Requires: %{name} = %{version}-%{release} BuildArch: noarch BuildRequires: doxygen %description doc Documentation files for libcomps library. %package -n python-%{name}-doc Summary: Documentation files for python bindings libcomps library Requires: %{name} = %{version}-%{release} BuildArch: noarch BuildRequires: python3-sphinx %description -n python-%{name}-doc Documentation files for python bindings libcomps library. %package -n python3-%{name} Summary: Python 3 bindings for libcomps library BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: make %{?python_provide:%python_provide python3-%{name}} Requires: %{name}%{?_isa} = %{version}-%{release} Obsoletes: platform-python-%{name} < %{version}-%{release} %description -n python3-%{name} Python3 bindings for libcomps library. %prep %autosetup -n %{name}-%{version} -n libcomps-0.1.21-20240601005535.0.g2e973ce mkdir build-py3 mkdir build-doc %build pushd build-py3 %cmake ../libcomps/ %make_build popd pushd build-doc %cmake ../libcomps/ make %{?_smp_mflags} docs make %{?_smp_mflags} pydocs popd %install pushd build-py3 %make_install popd %check pushd build-py3 make test make pytest popd %if %{undefined ldconfig_scriptlets} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %else %ldconfig_scriptlets %endif %files %license COPYING %doc README.md %{_libdir}/%{name}.so.* %files devel %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %{_includedir}/%{name}/ %files doc %doc build-doc/docs/libcomps-doc/html %files -n python-%{name}-doc %doc build-doc/src/python/docs/html %files -n python3-%{name} %{python3_sitearch}/%{name}/ %{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info %changelog * Tue Mar 12 2024 rpm-gitoverlay - 0.1.21-20240601005535.0.g2e973ce - [2e973ce] Release 0.1.21 (Aleš Matěj) - [6760aa1] Build aarch64 python packages during releases (Daniel Alley) - [a71bce7] Fix build: use correct variable for category and env (Aleš Matěj) - [0cdeedb] build: Restore compatiblity with libxml2-2.12.0 (Nicola Sella) - [220078b] tests: Unify formatting of current test announcements (Pavla Kratochvilova) - [2899e8e] tests: Don't print parsing errors during tests (Pavla Kratochvilova) - [f8d5add] Update CI (Daniel Alley)