File libcreg.spec of Package failed_libcreg

Name:           libcreg
Version:        20210625
Release:        1.1
Summary:        library and tools for handling "creg" data

License:        GPLv2+
URL:            https://example.org/libcreg
Source0:        libcreg-experimental-20210625.tar.gz

BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  libfuse-devel
BuildRequires:  python3-devel
BuildRequires:  autoconf
BuildRequires:  automake

%description
libcreg is a library and set of tools to manage "creg" data and
provide Python bindings (optional).  This package builds the core
library and command line tools.

%prep
%setup -q

%build
# Disable building the Python extension modules in-tree to avoid
# installing pycreg.la into a location that causes libtool to fail
# under the rpm build root on some toolchain/python configurations.
# This keeps the native library and tools building as before.
%configure --disable-python
make -j%{?_smp_mflags}

%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}

%files -f /dev/null
%defattr(-,root,root,-)
/usr/lib64/libcreg.so*
/usr/bin/cregexport
/usr/bin/creginfo
/usr/bin/cregmount
/usr/share/man/man1/creginfo.1
/usr/share/man/man3/libcreg.3
/usr/lib64/pkgconfig/libcreg.pc
/usr/include/libcreg
/usr/include/libcreg/*

%changelog
* Sun Aug 10 2025 Packager <packager@example.org> - 20210625-1.1
- Disable building Python bindings in the rpm build to avoid libtool
  install errors for the Python module path under some toolchains.
openSUSE Build Service is sponsored by