createrepo_c/createrepo_c.spec

178 lines
5.6 KiB
RPMSpec

Name: createrepo_c
Version: 1.0.1
Release: 1mamba
Summary: C implementation of createrepo, a tool to create repodata from a set of rpm files
Group: System/Management
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/rpm-software-management/createrepo_c
Source: https://github.com/rpm-software-management/createrepo_c.git/%{version}/createrepo_c-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libbzip2-devel
BuildRequires: libcurl-devel
BuildRequires: libglib-devel
BuildRequires: liblzma-devel
BuildRequires: libmagic-devel
BuildRequires: libmodulemd-devel
BuildRequires: libopenssl-devel
BuildRequires: libpopt-devel
BuildRequires: libpython3-devel
BuildRequires: libpython311-devel
BuildRequires: librpm-devel
BuildRequires: libsqlite-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel
BuildRequires: libzck-devel
BuildRequires: libzstd-devel
## AUTOBUILDREQ-END
BuildRequires: librpm-devel >= 4.16.1.2-1mamba
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: createrepo
Obsoletes: createrepo <= 0.10.4
%description
C implementation of createrepo, a tool to create repodata from a set of rpm files.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n python-%{name}
Group: System/Libraries
Summary: Python bindings for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n python-%{name}
This package contains the Python bindings for %{name}.
%debug_package
%prep
%setup -q
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
for f in create merge modify sqlite; do
ln -s ${f}repo_c %{buildroot}%{_bindir}/${f}repo
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/createrepo*
%{_bindir}/mergerepo*
%{_bindir}/modifyrepo*
%{_bindir}/sqliterepo*
%{_datadir}/bash-completion/completions/createrepo_c
%{_datadir}/bash-completion/completions/mergerepo_c
%{_datadir}/bash-completion/completions/modifyrepo_c
%{_datadir}/bash-completion/completions/sqliterepo_c
%{_mandir}/man8/createrepo_c.8*
%{_mandir}/man8/mergerepo_c.8*
%{_mandir}/man8/modifyrepo_c.8*
%{_mandir}/man8/sqliterepo_c.8*
%doc AUTHORS COPYING
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libcreaterepo_c.so.*
%files -n python-%{name}
%defattr(-,root,root)
%{python3_sitearch}/createrepo_c-%{version}-py*.egg-info
%dir %{python3_sitearch}/createrepo_c
%{python3_sitearch}/createrepo_c/*
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/createrepo_c
%{_includedir}/createrepo_c/*.h
%{_libdir}/libcreaterepo_c.so
%{_libdir}/pkgconfig/createrepo_c.pc
%doc README.md
%changelog
* Wed Nov 08 2023 Automatic Build System <autodist@mambasoft.it> 1.0.1-1mamba
- automatic version update by autodist
* Wed Aug 02 2023 Automatic Build System <autodist@mambasoft.it> 1.0.0-1mamba
- automatic version update by autodist
* Wed Apr 05 2023 Automatic Build System <autodist@mambasoft.it> 0.21.1-1mamba
- automatic version update by autodist
* Thu Jun 30 2022 Automatic Build System <autodist@mambasoft.it> 0.20.1-1mamba
- automatic version update by autodist
* Tue Mar 29 2022 Automatic Build System <autodist@mambasoft.it> 0.20.0-1mamba
- automatic version update by autodist
* Tue Mar 08 2022 Automatic Build System <autodist@mambasoft.it> 0.19.0-1mamba
- automatic version update by autodist
* Mon Feb 21 2022 Automatic Build System <autodist@mambasoft.it> 0.18.0-1mamba
- automatic version update by autodist
* Tue Nov 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.17.7-2mamba
- obsolete createrepo and provide legacy symlinks
* Sat Oct 23 2021 Automatic Build System <autodist@mambasoft.it> 0.17.7-1mamba
- automatic version update by autodist
* Wed Sep 29 2021 Automatic Build System <autodist@mambasoft.it> 0.17.6-1mamba
- automatic version update by autodist
* Thu Sep 16 2021 Automatic Build System <autodist@mambasoft.it> 0.17.5-1mamba
- automatic version update by autodist
* Fri Jul 09 2021 Automatic Build System <autodist@mambasoft.it> 0.17.4-1mamba
- automatic version update by autodist
* Mon Jun 14 2021 Automatic Build System <autodist@mambasoft.it> 0.17.3-1mamba
- automatic version update by autodist
* Wed Apr 14 2021 Automatic Build System <autodist@mambasoft.it> 0.17.2-1mamba
- automatic version update by autodist
* Sun Mar 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.17.1-2mamba
- rebuilt by autoport with build requirements: librpm-devel>=4.16.1.2-1mamba
* Sat Mar 06 2021 Automatic Build System <autodist@mambasoft.it> 0.17.1-1mamba
- automatic version update by autodist
* Mon Feb 08 2021 Automatic Build System <autodist@mambasoft.it> 0.17.0-1mamba
- automatic version update by autodist
* Thu Feb 04 2021 Automatic Build System <autodist@mambasoft.it> 0.16.2-1mamba
- automatic version update by autodist
* Sat Sep 12 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16.0-1mamba
- package created using the webbuild interface