librepo/librepo.spec

79 lines
2.2 KiB
RPMSpec
Raw Normal View History

Name: librepo
Version: 1.8.1
Release: 1mamba
Summary: A library providing C and Python API for downloading packages and linux repository metadata in rpm-md format
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://rpm-software-management.github.io/librepo/
## GITSOURCE https://github.com/rpm-software-management/librepo.git 1.8.1
Source: https://github.com/rpm-software-management/librepo.git/%{version}/librepo-%{version}.tar.bz2
Patch0: librepo-1.8.1-xattr-glibc.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libassuan-devel
BuildRequires: libcurl-devel
BuildRequires: libexpat-devel
BuildRequires: libglib-devel
BuildRequires: libgpg-error-devel
BuildRequires: libgpgme-devel
BuildRequires: libopenssl-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A library providing C and Python (libcURL like) API for downloading packages and linux repository metadata in rpm-md format.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%patch0 -p1
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/librepo.so.*
%doc AUTHORS COPYING
%dir %{python27_sitearch}/librepo
%{python27_sitearch}/librepo/*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/librepo
%{_includedir}/librepo/*.h
%{_libdir}/librepo.so
%{_libdir}/pkgconfig/librepo.pc
%doc README.md
%changelog
* Thu May 17 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.1-1mamba
- package created using the webbuild interface