|
|
763049 |
%global libsolv_version 0.6.20-1
|
|
|
763049 |
%global dnf_conflict 2.0.0-0.rc2.4
|
|
|
763049 |
|
|
|
763049 |
%bcond_with valgrind
|
|
|
763049 |
|
|
|
763049 |
%bcond_without rhsm
|
|
|
763049 |
|
|
|
763049 |
%global _cmake_opts \\\
|
|
|
ad5705 |
-DENABLE_RHSM_SUPPORT=OFF \\\
|
|
|
763049 |
%{nil}
|
|
|
763049 |
|
|
|
763049 |
Name: libdnf
|
|
|
763049 |
Version: 0.7.4
|
|
|
763049 |
Release: 2%{?dist}.el
|
|
|
763049 |
Summary: Library providing simplified C and Python API to libsolv
|
|
|
763049 |
License: LGPLv2+
|
|
|
763049 |
URL: https://github.com/rpm-software-management/libdnf
|
|
|
763049 |
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
763049 |
|
|
|
763049 |
Patch0: 0001-Revert-selector-prefer-obsoletes-Related-RhBug-10965.patch
|
|
|
763049 |
|
|
|
763049 |
BuildRequires: cmake
|
|
|
763049 |
BuildRequires: gcc
|
|
|
763049 |
BuildRequires: libsolv-devel >= %{libsolv_version}
|
|
|
763049 |
BuildRequires: pkgconfig(librepo)
|
|
|
763049 |
BuildRequires: pkgconfig(check)
|
|
|
763049 |
%if %{with valgrind}
|
|
|
763049 |
BuildRequires: valgrind
|
|
|
763049 |
%endif
|
|
|
763049 |
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.44.0
|
|
|
763049 |
BuildRequires: pkgconfig(gtk-doc)
|
|
|
763049 |
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
763049 |
BuildRequires: rpm-devel >= 4.11.0
|
|
|
763049 |
|
|
|
763049 |
Requires: libsolv%{?_isa} >= %{libsolv_version}
|
|
|
763049 |
|
|
|
763049 |
%description
|
|
|
763049 |
A Library providing simplified C and Python API to libsolv.
|
|
|
763049 |
|
|
|
763049 |
%package devel
|
|
|
763049 |
Summary: Development files for %{name}
|
|
|
763049 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
763049 |
Requires: libsolv-devel%{?_isa} >= %{libsolv_version}
|
|
|
763049 |
|
|
|
763049 |
%description devel
|
|
|
763049 |
Development files for %{name}.
|
|
|
763049 |
|
|
|
763049 |
%prep
|
|
|
763049 |
%autosetup -p1
|
|
|
763049 |
sed -i -e "/python/d" -e "/docs\/hawkey/d" CMakeLists.txt
|
|
|
763049 |
|
|
|
763049 |
%build
|
|
|
763049 |
mkdir %{_target_platform}
|
|
|
763049 |
pushd %{_target_platform}
|
|
|
763049 |
%cmake -DWITH_MAN=OFF ../ %{!?with_valgrind:-DDISABLE_VALGRIND=1} %{_cmake_opts}
|
|
|
763049 |
%make_build
|
|
|
763049 |
popd
|
|
|
763049 |
|
|
|
763049 |
%check
|
|
|
763049 |
if [ "$(id -u)" == "0" ] ; then
|
|
|
763049 |
cat <<ERROR 1>&2
|
|
|
763049 |
Package tests cannot be run under superuser account.
|
|
|
763049 |
Please build the package as non-root user.
|
|
|
763049 |
ERROR
|
|
|
763049 |
exit 1
|
|
|
763049 |
fi
|
|
|
763049 |
pushd %{_target_platform}
|
|
|
763049 |
make ARGS="-V" test
|
|
|
763049 |
popd
|
|
|
763049 |
|
|
|
763049 |
%install
|
|
|
763049 |
%make_install -C %{_target_platform}
|
|
|
763049 |
|
|
|
763049 |
%post -p /sbin/ldconfig
|
|
|
763049 |
%postun -p /sbin/ldconfig
|
|
|
763049 |
|
|
|
763049 |
%files
|
|
|
763049 |
%license COPYING
|
|
|
763049 |
%doc README.md AUTHORS NEWS
|
|
|
763049 |
%{_libdir}/%{name}.so.*
|
|
|
763049 |
%{_libdir}/girepository-1.0/Dnf-*.typelib
|
|
|
763049 |
|
|
|
763049 |
%files devel
|
|
|
763049 |
%doc %{_datadir}/gtk-doc/html/%{name}/
|
|
|
763049 |
%{_libdir}/%{name}.so
|
|
|
763049 |
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
763049 |
%{_includedir}/%{name}/
|
|
|
763049 |
%{_datadir}/gir-1.0/Dnf-*.gir
|
|
|
763049 |
|
|
|
763049 |
%changelog
|
|
|
465249 |
* Tue Mar 7 2017 Johnny Hughes <johnny@centos.org> - 0.7.4-2
|
|
|
465249 |
- Manual CentOS Debranding
|
|
|
465249 |
|
|
|
763049 |
* Mon Feb 20 2017 Jan Silhan <jsilhan@redhat.com> - 0.7.4-2
|
|
|
763049 |
- 0.7.4
|
|
|
763049 |
|
|
|
763049 |
* Fri Jan 06 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.7.1-1
|
|
|
763049 |
- 0.7.1
|
|
|
763049 |
|
|
|
763049 |
* Wed Dec 21 2016 Peter Robinson <pbrobinson@fedoraproject.org> 0.7.0-0.7gitf9b798c
|
|
|
763049 |
- Rebuild for Python 3.6
|
|
|
763049 |
|
|
|
763049 |
* Mon Dec 19 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.7.0-0.6gitf9b798c
|
|
|
763049 |
- Use new upstream URL
|
|
|
763049 |
|
|
|
763049 |
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 0.7.0-0.5gitf9b798c
|
|
|
763049 |
- Rebuild for Python 3.6
|
|
|
763049 |
|
|
|
763049 |
* Tue Dec 06 2016 Martin Hatina <mhatina@redhat.com> - 0.7.0-0.4gitf9b798c
|
|
|
763049 |
- Increase conflict version of dnf
|
|
|
763049 |
|
|
|
763049 |
* Thu Dec 01 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.7.0-0.3gitf9b798c
|
|
|
763049 |
- Update to latest snapshot
|
|
|
763049 |
|
|
|
763049 |
* Fri Nov 04 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.7.0-0.2git8bd77f8
|
|
|
763049 |
- Update to latest snapshot
|
|
|
763049 |
|
|
|
763049 |
* Thu Sep 29 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.7.0-0.1git179c0a6
|
|
|
763049 |
- Initial package
|