package created using the webbuild interface [release 0.16.0-1mamba;Sat Sep 12 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 21:33:52 +01:00
parent 291a043ada
commit ad19a2bebb
2 changed files with 119 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# createrepo_c # createrepo_c
C implementation of createrepo, a tool to create repodata from a set of rpm files.

117
createrepo_c.spec Normal file
View File

@ -0,0 +1,117 @@
Name: createrepo_c
Version: 0.16.0
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: ldconfig
BuildRequires: libbzip2-devel
BuildRequires: libcurl-devel
BuildRequires: libdrpm-devel
BuildRequires: libglib-devel
BuildRequires: liblzma-devel
BuildRequires: libmagic-devel
BuildRequires: libmodulemd-devel
BuildRequires: libopenssl-devel
BuildRequires: libpython-devel
BuildRequires: libpython3-devel
BuildRequires: librpm-devel
BuildRequires: libsqlite-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel
BuildRequires: libzck-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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
%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_c
%{_bindir}/mergerepo_c
%{_bindir}/modifyrepo_c
%{_bindir}/sqliterepo_c
%{_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
* Sat Sep 12 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16.0-1mamba
- package created using the webbuild interface