libdnf/libdnf.spec

105 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

Name: libdnf
Version: 0.22.0
Release: 1mamba
Summary: Software management library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/rpm-software-management/libdnf
## GITSOURCE https://github.com/rpm-software-management/libdnf.git 0.22.4
Source: https://github.com/rpm-software-management/libdnf.git/%{version}/libdnf-%{version}.tar.bz2
Patch0: libdnf-0.33.0-gcc-8.3.0.patch
Patch1: libdnf-0.22.0-rpm5.patch
Patch2: libdnf-0.22.0-rpm5-2.patch
Patch3: libdnf-0.22.0-rpm5-additional.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libglib-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
BuildRequires: librepo-devel
BuildRequires: libsolv-devel
BuildRequires: rpm-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
#BuildRequires: libmodulemd-devel
Provides: libhawkey
Obsoletes: libhawkey
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Software management library.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
Provides: libhawkey-devel
Obsoletes: libhawkey-devel
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
%cmake -d build \
-DCMAKE_CXX_FLAGS="-Doff64_t=__off64_t -Duint64_t=u_int64_t -Duint32_t=u_int32_t -Duint16_t=u_int16_t -Duint8_t=u_int8_t -I%{_includedir}/rpm" \
-DCMAKE_C_FLAGS="-Doff64_t=__off64_t -Duint64_t=u_int64_t -Duint32_t=u_int32_t -Duint16_t=u_int16_t -Duint8_t=u_int8_t -I%{_includedir}/rpm"
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%find_lang %{name} || touch %{name}.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%{_libdir}/libdnf.so.*
%dir %{python27_sitearch}/libdnf
%{python27_sitearch}/libdnf/*
%dir %{python27_sitearch}/hawkey
%{python27_sitearch}/hawkey/*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libdnf
%{_includedir}/libdnf/*
%{_libdir}/libdnf.so
%{_libdir}/pkgconfig/libdnf.pc
%dir %{_datadir}/gtk-doc/html/libdnf
%{_datadir}/gtk-doc/html/libdnf/*
%{_mandir}/man3/hawkey.3*
%doc README.md
%changelog
* Sat Jun 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22.0-1mamba
- update to 0.22.0
* Sat Jun 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11.1-1mamba
- update to 0.11.1
* Sat Jun 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.1-1mamba
- update to 0.8.1
* Sat Jun 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.33.0-1mamba
- package created using the webbuild interface