Blame SPECS/libsolv.spec

83b9c6
%global gitrev 12af31a403d975552cb9131240ea2271bff496d5
83b9c6
%{!?ruby_vendorarch: %global ruby_vendorarch %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorarchdir"] ')}
83b9c6
%filter_provides_in %{perl_vendorarch}/.*\.so$
83b9c6
%filter_provides_in %{python_sitearch}/.*\.so$
83b9c6
%filter_provides_in %{ruby_vendorarch}/.*\.so$
83b9c6
%filter_setup
83b9c6
83b9c6
Name:		libsolv
83b9c6
Version:	0.6.4
83b9c6
Release:	4%{?dist}
83b9c6
License:	BSD
83b9c6
Url:		https://github.com/openSUSE/libsolv
83b9c6
Source:		https://github.com/openSUSE/%{name}/archive/%{gitrev}/%{name}-%{gitrev}.tar.gz
83b9c6
Patch0:		libsolv-rubyinclude.patch
83b9c6
Group:		Development/Libraries
83b9c6
Summary:	Package dependency solver
83b9c6
BuildRequires:	cmake libdb-devel expat-devel rpm-devel zlib-devel
83b9c6
BuildRequires:	swig perl perl-devel ruby ruby-devel python2-devel
83b9c6
BuildRequires:  xz-devel
83b9c6
%description
83b9c6
A free package dependency solver using a satisfiability algorithm. The
83b9c6
library is based on two major, but independent, blocks:
83b9c6
83b9c6
- Using a dictionary approach to store and retrieve package
83b9c6
  and dependency information.
83b9c6
83b9c6
- Using satisfiability, a well known and researched topic, for
83b9c6
  resolving package dependencies.
83b9c6
83b9c6
%package devel
83b9c6
Summary:	A new approach to package dependency solving
83b9c6
Group:		Development/Libraries
83b9c6
Requires:	libsolv-tools%{?_isa} = %{version}-%{release}
83b9c6
Requires:	libsolv%{?_isa} = %{version}-%{release}
83b9c6
Requires:	rpm-devel%{?_isa}
83b9c6
Requires:	cmake
83b9c6
83b9c6
%description devel
83b9c6
Development files for libsolv,
83b9c6
83b9c6
%package tools
83b9c6
Summary:	A new approach to package dependency solving
83b9c6
Group:		Development/Libraries
83b9c6
Requires:	gzip bzip2 coreutils
83b9c6
Requires:	libsolv%{?_isa} = %{version}-%{release}
83b9c6
83b9c6
%description tools
83b9c6
Package dependency solver tools.
83b9c6
83b9c6
%package demo
83b9c6
Summary:	Applications demoing the libsolv library
83b9c6
Group:		Development/Libraries
83b9c6
Requires:	curl gnupg2
83b9c6
Requires:	libsolv%{?_isa} = %{version}-%{release}
83b9c6
83b9c6
%description demo
83b9c6
Applications demoing the libsolv library.
83b9c6
83b9c6
%package -n ruby-solv
83b9c6
Summary:	Ruby bindings for the libsolv library
83b9c6
Group:		Development/Languages
83b9c6
Requires:	libsolv%{?_isa} = %{version}-%{release}
83b9c6
83b9c6
%description -n ruby-solv
83b9c6
Ruby bindings for sat solver.
83b9c6
83b9c6
%package -n python-solv
83b9c6
Summary:	Python bindings for the libsolv library
83b9c6
Group:		Development/Languages
83b9c6
Requires:	python
83b9c6
Requires:	libsolv%{?_isa} = %{version}-%{release}
83b9c6
83b9c6
%description -n python-solv
83b9c6
Python bindings for sat solver.
83b9c6
83b9c6
%package -n perl-solv
83b9c6
Summary:	Perl bindings for the libsolv library
83b9c6
Group:		Development/Languages
83b9c6
Requires:	perl
83b9c6
Requires:	libsolv%{?_isa} = %{version}-%{release}
83b9c6
83b9c6
%description -n perl-solv
83b9c6
Perl bindings for sat solver.
83b9c6
83b9c6
%prep
83b9c6
%setup -q -n %{name}-%{gitrev}
83b9c6
%patch0 -p1 -b .rubyinclude
83b9c6
83b9c6
%check
83b9c6
make ARGS="-V" test
83b9c6
83b9c6
%build
83b9c6
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
83b9c6
       -DENABLE_PERL=1 \
83b9c6
       -DENABLE_PYTHON=1 \
83b9c6
       -DENABLE_RUBY=1 \
83b9c6
       -DUSE_VENDORDIRS=1 \
83b9c6
       -DFEDORA=1 \
83b9c6
       -DENABLE_DEBIAN=1 \
83b9c6
       -DENABLE_ARCHREPO=1 \
83b9c6
       -DENABLE_LZMA_COMPRESSION=1 \
83b9c6
       -DMULTI_SEMANTICS=1
83b9c6
83b9c6
make %{?_smp_mflags}
83b9c6
83b9c6
%install
83b9c6
make DESTDIR=$RPM_BUILD_ROOT install
83b9c6
rm $RPM_BUILD_ROOT/usr/bin/testsolv
83b9c6
83b9c6
%post -p /sbin/ldconfig
83b9c6
83b9c6
%postun -p /sbin/ldconfig
83b9c6
83b9c6
%files
83b9c6
%doc LICENSE* README BUGS
83b9c6
%_libdir/libsolv.so.*
83b9c6
%_libdir/libsolvext.so.*
83b9c6
83b9c6
%files tools
83b9c6
%_bindir/archpkgs2solv
83b9c6
%_bindir/archrepo2solv
83b9c6
%_bindir/deb2solv
83b9c6
%_bindir/deltainfoxml2solv
83b9c6
%_bindir/dumpsolv
83b9c6
%_bindir/installcheck
83b9c6
%_bindir/mergesolv
83b9c6
%_bindir/repo2solv.sh
83b9c6
%_bindir/repomdxml2solv
83b9c6
%_bindir/rpmdb2solv
83b9c6
%_bindir/rpmmd2solv
83b9c6
%_bindir/rpms2solv
83b9c6
%_bindir/updateinfoxml2solv
83b9c6
83b9c6
%files devel
83b9c6
%doc examples/solv.c
83b9c6
%_libdir/libsolv.so
83b9c6
%_libdir/libsolvext.so
83b9c6
%_includedir/solv
83b9c6
%_datadir/cmake/Modules/FindLibSolv.cmake
83b9c6
%{_mandir}/man?/*
83b9c6
83b9c6
%files demo
83b9c6
%_bindir/solv
83b9c6
83b9c6
%files -n perl-solv
83b9c6
%doc examples/p5solv
83b9c6
%{perl_vendorarch}/*
83b9c6
83b9c6
%files -n ruby-solv
83b9c6
%doc examples/rbsolv
83b9c6
%{ruby_vendorarch}/*
83b9c6
83b9c6
%files -n python-solv
83b9c6
%doc examples/pysolv
83b9c6
%{python_sitearch}/*
83b9c6
83b9c6
%changelog
83b9c6
83b9c6
* Thu Jan 15 2015 Radek Holý <rholy@redhat.com> - 0.6.4-4
83b9c6
- Add explicit requires on libsolv to the subpackages.
83b9c6
83b9c6
* Tue Dec 9 2014 Radek Holý <rholy@redhat.com> - 0.6.4-3
83b9c6
- Make the spec file compatible with GitHub packaging guideliness.
83b9c6
83b9c6
* Wed Sep 3 2014 Aleš Kozumplík <akozumpl@redhat.com> - 0.6.4-2
83b9c6
- Rebase to upstream 12af31a
83b9c6
83b9c6
* Mon Dec 16 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.4.1-1.gitbcedc98
83b9c6
- Rebase upstream bcedc98
83b9c6
- Fix RhBug:1051917.
83b9c6
83b9c6
* Mon Dec 16 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.4.1-0.gita8e47f1
83b9c6
- Rebase to 0.4.1, upstream commit a8e47f1.
83b9c6
83b9c6
* Fri Nov 22 2013 Zdenek Pavlas <zpavlas@redhat.com> - 0.4.0-2.git4442b7f
83b9c6
- Rebase to 0.4.0, upstream commit 4442b7f.
83b9c6
- support DELTA_LOCATION_BASE for completeness
83b9c6
83b9c6
* Tue Oct 29 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.4.0-1.gitd49d319
83b9c6
- Rebase to 0.4.0, upstream commit d49d319.
83b9c6
83b9c6
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 0.3.0-9.gita59d11d
83b9c6
- Perl 5.18 rebuild
83b9c6
83b9c6
* Wed Jul 31 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-8.gita59d11d
83b9c6
- Rebase to upstream a59d11d.
83b9c6
83b9c6
* Fri Jul 19 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-7.git228d412
83b9c6
- Add build flags, including Deb, Arch, LZMA and MULTI_SEMANTICS. (RhBug:985905)
83b9c6
83b9c6
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.3.0-6.git228d412
83b9c6
- Perl 5.18 rebuild
83b9c6
83b9c6
* Mon Jun 24 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-5.git228d412
83b9c6
- Rebase to upstream 228d412.
83b9c6
- Fixes hawkey github issue https://github.com/akozumpl/hawkey/issues/13
83b9c6
83b9c6
* Thu Jun 20 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-4.git209e9cb
83b9c6
- Rebase to upstream 209e9cb.
83b9c6
- Package the new man pages.
83b9c6
83b9c6
* Thu May 16 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-3.git7399ad1
83b9c6
- Run 'make test' with libsolv build.
83b9c6
83b9c6
* Mon Apr 8 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-2.git7399ad1
83b9c6
- Rebase to upstream 7399ad1.
83b9c6
- Fixes RhBug:905209
83b9c6
83b9c6
* Mon Apr 8 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-1.gite372b78
83b9c6
- Rebase to upstream e372b78.
83b9c6
- Fixes RhBug:e372b78
83b9c6
83b9c6
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-2.gitf663ca2
83b9c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
83b9c6
83b9c6
* Thu Aug 23 2012 Aleš Kozumplík <akozumpl@redhat.com> - 0.0.0-17.git6c9d3eb
83b9c6
- Rebase to upstream 6c9d3eb.
83b9c6
- Drop the solv.i stdbool.h fix integrated upstream.
83b9c6
- Dropped the job reasons fix.
83b9c6
83b9c6
* Mon Jul 23 2012 Aleš Kozumplík <akozumpl@redhat.com> - 0.0.0-16.git1617994
83b9c6
- Fix build problems with Perl bindings.
83b9c6
83b9c6
* Mon Jul 23 2012 Aleš Kozumplík <akozumpl@redhat.com> - 0.0.0-15.git1617994
83b9c6
- Rebuilt after a failed mass rebuild.
83b9c6
83b9c6
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.0-14.git1617994
83b9c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
83b9c6
83b9c6
* Mon Jul 16 2012 Aleš Kozumplik <akozumpl@redhat.com> - 0.0.0-13.git1617994%{?dist}
83b9c6
- preliminary fix for JOB resons in solver_describe_decision().
83b9c6
83b9c6
* Sun Jul 1 2012 Aleš Kozumplik <akozumpl@redhat.com> - 0.0.0-12.git1617994%{?dist}
83b9c6
- Rebase to upstream 1617994.
83b9c6
- Support for RPM_ADD_WITH_HDRID.
83b9c6
83b9c6
* Thu Jun  7 2012 Aleš Kozumplik <akozumpl@redhat.com> - 0.0.0-11.gitd39a42b%{?dist}
83b9c6
- Rebase to upstream d39a42b.
83b9c6
- Fix the epochs.
83b9c6
- Move the ruby modules into vendorarch dir, where they are expected.
83b9c6
83b9c6
* Thu May  17 2012 Aleš Kozumplik <akozumpl@redhat.com> - 0.0.0-9.git8cf7650%{?dist}
83b9c6
- Rebase to upstream 8cf7650.
83b9c6
- ruby bindings: fix USE_VENDORDIRS for Fedora.
83b9c6
83b9c6
* Thu Apr  12 2012 Aleš Kozumplik <akozumpl@redhat.com> - 0.0.0-7.gitaf1465a2%{?dist}
83b9c6
- Rebase to the upstream.
83b9c6
- Make repo_add_solv() work without stub repodata.
83b9c6
83b9c6
* Thu Apr  5 2012 Karel Klíč <kklic@redhat.com> - 0.0.0-6.git80afaf7%{?dist}
83b9c6
- Rebuild for the new libdb package.
83b9c6
83b9c6
* Mon Apr  2 2012 Karel Klíč <kklic@redhat.com> - 0.0.0-5.git80afaf7%{?dist}
83b9c6
- Rebuild for the new rpm package.
83b9c6
83b9c6
* Wed Mar 21 2012 Aleš Kozumplík <akozumpl@redhat.com> - 0.0.0-4.git80afaf7%{?dist}
83b9c6
- New upstream version, fix the .rpm release number.
83b9c6
83b9c6
* Wed Mar 21 2012 Aleš Kozumplík <akozumpl@redhat.com> - 0.0.0-3.git80afaf7%{?dist}
83b9c6
- New upstream version.
83b9c6
83b9c6
* Tue Feb  7 2012 Karel Klíč <kklic@redhat.com> - 0.0.0-2.git857fe28%{?dist}
83b9c6
- Adapted to Ruby 1.9.3 (workaround for broken CMake in Fedora and
83b9c6
  ruby template correction in bindings)
83b9c6
83b9c6
* Thu Feb  2 2012 Karel Klíč <kklic@redhat.com> - 0.0.0-1.git857fe28
83b9c6
- Initial packaging
83b9c6
- Based on Jindra Novy's spec file
83b9c6
- Based on upstream spec file