Name: libsolv
Version: @VERSION@
Release: 0
-Url: git://gitorious.org/opensuse/libsolv.git
+Url: https://github.com/openSUSE/libsolv
Source: libsolv-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libneon0.26-devel
%endif
%if 0%{?fedora_version} || 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600
-BuildRequires: db4-devel
+BuildRequires: db-devel
%endif
%if 0%{?suse_version}
%if 0%{?suse_version} < 1030
BuildRequires: swig
%endif
%if %{with ruby_binding}
-%global ruby_vendorarch %(ruby -r rbconfig -e "puts Config::CONFIG['vendorarchdir'].nil? ? Config::CONFIG['sitearchdir'] : Config::CONFIG['vendorarchdir']")
+%global ruby_vendorarch %(ruby -r rbconfig -e "puts RbConfig::CONFIG['vendorarchdir'].nil? ? RbConfig::CONFIG['sitearchdir'] : RbConfig::CONFIG['vendorarchdir']")
BuildRequires: ruby
BuildRequires: ruby-devel
BuildRequires: swig
%package devel
Summary: A new approach to package dependency solving
Group: Development/Libraries/C and C++
-Requires: libsolv-tools = %version
%if !%{with disable_shared}
Requires: libsolv@LIBSOLV_SOVERSION@ = %version
%endif
CMAKE_FLAGS="-DFEDORA=1"
%endif
%if 0%{?suse_version}
-CMAKE_FLAGS="-DSUSE=1 -DENABLE_APPDATA=1"
+CMAKE_FLAGS="-DSUSE=1 -DENABLE_APPDATA=1 -DENABLE_COMPS=1"
%endif
cmake $CMAKE_FLAGS \
%defattr(-,root,root)
%if 0%{?suse_version}
%exclude %{_bindir}/helix2solv
+%exclude %{_mandir}/man1/helix2solv*
%endif
%exclude %{_bindir}/solv
%{_bindir}/*
+%{_mandir}/man1/*
%files devel
%defattr(-,root,root)
%{_includedir}/solv
%if 0%{?suse_version}
%{_bindir}/helix2solv
+%{_mandir}/man1/helix2solv*
%endif
%{_datadir}/cmake/Modules/*
-%{_mandir}/man?/*
+%{_libdir}/pkgconfig/libsolv.pc
+%{_mandir}/man3/*
%files demo
%defattr(-,root,root)