2016-03-24 10:11:06 +01:00
|
|
|
%define major 0
|
|
|
|
%define libname lib%{name}%{major}
|
|
|
|
%define devname lib%{name}-devel
|
|
|
|
|
2016-05-03 17:16:44 +02:00
|
|
|
%define version_unconverted 0.10.0.git20160503.7c6fae0
|
2016-04-11 11:25:49 +02:00
|
|
|
|
2016-03-24 10:11:06 +01:00
|
|
|
Name: createrepo_c
|
|
|
|
Summary: Creates a common metadata repository
|
|
|
|
Group: System/Packages
|
2016-05-03 17:16:44 +02:00
|
|
|
Version: 0.10.0.git20160503.7c6fae0
|
2016-03-24 10:11:06 +01:00
|
|
|
Release: 0
|
|
|
|
License: GPL-2.0
|
|
|
|
URL: https://github.com/rpm-software-management/createrepo_c
|
|
|
|
Source0: https://github.com/rpm-software-management/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: file-devel
|
|
|
|
BuildRequires: glib2-devel >= 2.22.0
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: rpm-devel >= 4.9.0
|
|
|
|
BuildRequires: sqlite3-devel
|
|
|
|
BuildRequires: lzma-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: bash-completion
|
|
|
|
|
|
|
|
Requires: %{libname} = %{version}-%{release}
|
|
|
|
|
|
|
|
# prevent provides from nonstandard paths:
|
|
|
|
%global __provides_exclude ^(%{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so)$
|
|
|
|
|
|
|
|
%description
|
|
|
|
C implementation of Createrepo.
|
|
|
|
A set of utilities (createrepo_c, mergerepo_c, modifyrepo_c)
|
|
|
|
for generating a common metadata repository from a directory of
|
|
|
|
rpm packages and maintaining it.
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Library for repodata manipulation
|
|
|
|
Group: System/Libraries
|
|
|
|
# The function to create DeltaRPMs calls /usr/bin/makedeltarpm,
|
|
|
|
# which is part of the 'deltarpm' package
|
|
|
|
Requires: deltarpm
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
Libraries for applications using the createrepo_c library
|
|
|
|
for easy manipulation with a repodata.
|
|
|
|
|
|
|
|
%package -n %{devname}
|
|
|
|
Summary: Library for repodata manipulation
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: %{name}-devel = %{version}-%{release}
|
|
|
|
Requires: pkg-config
|
|
|
|
Requires: %{libname} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n %{devname}
|
|
|
|
This package contains the createrepo_c C library and header files.
|
|
|
|
These development files are for easy manipulation with a repodata.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
rm -rf py3
|
|
|
|
mkdir py3
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
2016-05-03 17:16:44 +02:00
|
|
|
%cmake -DENABLE_LEGACY_WEAKTAGS=1 -DENABLE_DRPM=OFF -DENABLE_PYTHON=OFF
|
2016-03-24 10:11:06 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
make doc-c
|
|
|
|
|
|
|
|
%check
|
|
|
|
pushd ./build
|
|
|
|
make tests
|
|
|
|
make ARGS="-V" test
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd ./build
|
|
|
|
%make_install
|
|
|
|
popd
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md COPYING
|
|
|
|
%_mandir/man8/createrepo_c.8.*
|
|
|
|
%_mandir/man8/mergerepo_c.8.*
|
|
|
|
%_mandir/man8/modifyrepo_c.8.*
|
|
|
|
%_mandir/man8/sqliterepo_c.8.*
|
|
|
|
%{_datadir}/bash-completion/completions/
|
|
|
|
%{_bindir}/createrepo_c
|
|
|
|
%{_bindir}/mergerepo_c
|
|
|
|
%{_bindir}/modifyrepo_c
|
|
|
|
%{_bindir}/sqliterepo_c
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%doc COPYING
|
|
|
|
%{_libdir}/libcreaterepo_c.so.%{major}
|
|
|
|
%{_libdir}/libcreaterepo_c.so.%{major}.*
|
|
|
|
|
|
|
|
%files -n %{devname}
|
|
|
|
%{_libdir}/libcreaterepo_c.so
|
|
|
|
%{_libdir}/pkgconfig/createrepo_c.pc
|
|
|
|
%{_includedir}/createrepo_c/
|
|
|
|
%doc build/doc/html COPYING
|
|
|
|
|
|
|
|
%changelog
|