Jan Silhan 722189b
%global gitrev 78c8a55
Ales Kozumplik 06071f5
%{!?ruby_vendorarch: %global ruby_vendorarch %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorarchdir"] ')}
Karel Klic 732335e
%filter_provides_in %{perl_vendorarch}/.*\.so$
Jan Silhan 722189b
%filter_provides_in %{python3_sitearch}/.*\.so$
Ales Kozumplik 0abb4bd
%filter_provides_in %{ruby_vendorarch}/.*\.so$
Karel Klic 732335e
%filter_setup
Karel Klic 732335e
Karel Klic 732335e
Name:		libsolv
Richard Hughes ef41a38
Version:	0.6.8
Jan Silhan af6f9a1
Release:	3%{?dist}
Karel Klic 732335e
License:	BSD
Karel Klic 732335e
Url:		https://github.com/openSUSE/libsolv
Jan Silhan 722189b
# git clone https://github.com/openSUSE/libsolv.git
Jan Silhan 722189b
# git archive %{gitrev} --prefix=libsolv/ | xz > libsolv-%{gitrev}.tar.xz
Jan Silhan 722189b
Source:		libsolv-%{gitrev}.tar.xz
Karel Klic 5eb5e60
Patch0:		libsolv-rubyinclude.patch
a30f8a0
Patch1:		libsolv-ruby22-rbconfig.patch
Karel Klic 732335e
Group:		Development/Libraries
Karel Klic 732335e
Summary:	Package dependency solver
Karel Klic 732335e
BuildRequires:	cmake libdb-devel expat-devel rpm-devel zlib-devel
Jan Silhan 722189b
BuildRequires:	swig perl perl-devel ruby ruby-devel python3-devel
Ales Kozumplik 70d2bb3
BuildRequires:  xz-devel
Karel Klic 732335e
%description
Karel Klic 732335e
A free package dependency solver using a satisfiability algorithm. The
Karel Klic 732335e
library is based on two major, but independent, blocks:
Karel Klic 732335e
Karel Klic 732335e
- Using a dictionary approach to store and retrieve package
Karel Klic 732335e
  and dependency information.
Karel Klic 732335e
Karel Klic 732335e
- Using satisfiability, a well known and researched topic, for
Karel Klic 732335e
  resolving package dependencies.
Karel Klic 732335e
Karel Klic 732335e
%package devel
Karel Klic 732335e
Summary:	A new approach to package dependency solving
Karel Klic 732335e
Group:		Development/Libraries
Ales Kozumplik 0abb4bd
Requires:	libsolv-tools%{?_isa} = %{version}-%{release}
Ales Kozumplik 0abb4bd
Requires:	libsolv%{?_isa} = %{version}-%{release}
Karel Klic 732335e
Requires:	rpm-devel%{?_isa}
Karel Klic 732335e
Requires:	cmake
Karel Klic 732335e
Karel Klic 732335e
%description devel
Karel Klic 732335e
Development files for libsolv,
Karel Klic 732335e
Karel Klic 732335e
%package tools
Karel Klic 732335e
Summary:	A new approach to package dependency solving
Karel Klic 732335e
Group:		Development/Libraries
Karel Klic 732335e
Requires:	gzip bzip2 coreutils
Ales Kozumplik 0abb4bd
Requires:	libsolv%{?_isa} = %{version}-%{release}
Karel Klic 732335e
Karel Klic 732335e
%description tools
Karel Klic 732335e
Package dependency solver tools.
Karel Klic 732335e
Karel Klic 732335e
%package demo
Karel Klic 732335e
Summary:	Applications demoing the libsolv library
Karel Klic 732335e
Group:		Development/Libraries
Karel Klic 732335e
Requires:	curl gnupg2
Karel Klic 732335e
Karel Klic 732335e
%description demo
Karel Klic 732335e
Applications demoing the libsolv library.
Karel Klic 732335e
Karel Klic 732335e
%package -n ruby-solv
Karel Klic 732335e
Summary:	Ruby bindings for the libsolv library
Karel Klic 732335e
Group:		Development/Languages
Karel Klic 732335e
Karel Klic 732335e
%description -n ruby-solv
Karel Klic 732335e
Ruby bindings for sat solver.
Karel Klic 732335e
Jan Silhan 722189b
%package -n python3-solv
Karel Klic 732335e
Summary:	Python bindings for the libsolv library
Karel Klic 732335e
Group:		Development/Languages
Jan Silhan 722189b
Requires:	python3
Karel Klic 732335e
Jan Silhan 722189b
%description -n python3-solv
Karel Klic 732335e
Python bindings for sat solver.
Karel Klic 732335e
Karel Klic 732335e
%package -n perl-solv
Karel Klic 732335e
Summary:	Perl bindings for the libsolv library
Karel Klic 732335e
Group:		Development/Languages
Karel Klic 732335e
Requires:	perl
Karel Klic 732335e
Karel Klic 732335e
%description -n perl-solv
Karel Klic 732335e
Perl bindings for sat solver.
Karel Klic 732335e
Karel Klic 732335e
%prep
Jan Silhan 722189b
%setup -q -n libsolv
Karel Klic 5eb5e60
%patch0 -p1 -b .rubyinclude
a30f8a0
%patch1 -p1 -b .ruby-rbconfig
Karel Klic 732335e
Ales Kozumplik b532c3f
%check
Ales Kozumplik b532c3f
make ARGS="-V" test
Ales Kozumplik b532c3f
Karel Klic 732335e
%build
Karel Klic 732335e
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
Karel Klic 732335e
       -DENABLE_PERL=1 \
Karel Klic 732335e
       -DENABLE_PYTHON=1 \
Karel Klic 732335e
       -DENABLE_RUBY=1 \
Karel Klic 732335e
       -DUSE_VENDORDIRS=1 \
Ales Kozumplik 92261ed
       -DFEDORA=1 \
Ales Kozumplik 92261ed
       -DENABLE_DEBIAN=1 \
Ales Kozumplik 92261ed
       -DENABLE_ARCHREPO=1 \
Ales Kozumplik 92261ed
       -DENABLE_LZMA_COMPRESSION=1 \
Ales Kozumplik 92261ed
       -DMULTI_SEMANTICS=1
Karel Klic 732335e
Karel Klic 732335e
make %{?_smp_mflags}
Karel Klic 732335e
Karel Klic 732335e
%install
Karel Klic 732335e
make DESTDIR=$RPM_BUILD_ROOT install
Ales Kozumplik 714123c
rm $RPM_BUILD_ROOT/usr/bin/testsolv
Karel Klic 732335e
Karel Klic 732335e
%post -p /sbin/ldconfig
Karel Klic 732335e
Karel Klic 732335e
%postun -p /sbin/ldconfig
Karel Klic 732335e
Karel Klic 732335e
%files
Karel Klic 732335e
%doc LICENSE* README BUGS
Karel Klic 732335e
%_libdir/libsolv.so.*
Karel Klic 732335e
%_libdir/libsolvext.so.*
Karel Klic 732335e
Karel Klic 732335e
%files tools
Ales Kozumplik 92261ed
%_bindir/archpkgs2solv
Ales Kozumplik 92261ed
%_bindir/archrepo2solv
Ales Kozumplik 92261ed
%_bindir/deb2solv
Karel Klic 732335e
%_bindir/deltainfoxml2solv
Karel Klic 732335e
%_bindir/dumpsolv
Karel Klic 732335e
%_bindir/installcheck
Karel Klic 732335e
%_bindir/mergesolv
Karel Klic 732335e
%_bindir/repo2solv.sh
Karel Klic 732335e
%_bindir/repomdxml2solv
Karel Klic 732335e
%_bindir/rpmdb2solv
Karel Klic 732335e
%_bindir/rpmmd2solv
Karel Klic 732335e
%_bindir/rpms2solv
Karel Klic 732335e
%_bindir/updateinfoxml2solv
Karel Klic 732335e
Karel Klic 732335e
%files devel
Karel Klic 732335e
%doc examples/solv.c
Karel Klic 732335e
%_libdir/libsolv.so
Karel Klic 732335e
%_libdir/libsolvext.so
Karel Klic 732335e
%_includedir/solv
Karel Klic 732335e
%_datadir/cmake/Modules/FindLibSolv.cmake
Ales Kozumplik ccc9ddf
%{_mandir}/man?/*
Karel Klic 732335e
Karel Klic 732335e
%files demo
Karel Klic 732335e
%_bindir/solv
Karel Klic 732335e
Karel Klic 732335e
%files -n perl-solv
Karel Klic 732335e
%doc examples/p5solv
Karel Klic 732335e
%{perl_vendorarch}/*
Karel Klic 732335e
Karel Klic 732335e
%files -n ruby-solv
Karel Klic 732335e
%doc examples/rbsolv
Ales Kozumplik 0abb4bd
%{ruby_vendorarch}/*
Karel Klic 732335e
Jan Silhan 722189b
%files -n python3-solv
Karel Klic 732335e
%doc examples/pysolv
Jan Silhan 722189b
%{python3_sitearch}/*
Karel Klic 732335e
Karel Klic 732335e
%changelog
Jan Silhan af6f9a1
Jan Silhan af6f9a1
* Tue Feb 24 2015 Jan Silhan <jsilhan@redhat.com> - 0.6.8-3
Jan Silhan af6f9a1
- Rebuilt with new provides selection feature
Jan Silhan af6f9a1
a30f8a0
* Mon Jan 19 2015 Vít Ondruch <vondruch@redhat.com> - 0.6.8-2
a30f8a0
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2
a30f8a0
Richard Hughes ef41a38
* Fri Jan 16 2015 Richard Hughes <richard@hughsie.com> - 0.6.8-2
Richard Hughes ef41a38
- Update to latest upstream release to fix a crash in PackageKit.
Richard Hughes ef41a38
3eb8866
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.4-3
3eb8866
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3eb8866
Ales Kozumplik 10328b6
Jan Silhan 1b7c9c6
* Mon Aug 11 2014 Jan Silhan <jsilhan@redhat.com> - 0.6.4-2
Jan Silhan 1b7c9c6
- Rebase to upstream 12af31a
Jan Silhan 1b7c9c6
Ales Kozumplik 10328b6
* Mon Jul 28 2014 Aleš Kozumplík <akozumpl@redhat.com> - 0.6.4-1
Ales Kozumplik 10328b6
- Rebase to upstream 5bd9589
Ales Kozumplik 10328b6
Jan Silhan 88c71ef
* Mon Jul 14 2014 Jan Silhan <jsilhan@redhat.com> - 0.6.4-0.git2a5c1c4
Jan Silhan 88c71ef
- Rebase to upstream 2a5c1c4
Jan Silhan 88c71ef
- Filename selector can start with a star
Jan Silhan 88c71ef
93cf353
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2.git6d968f1
93cf353
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
93cf353
Ales Kozumplik a4f8735
* Tue May 27 2014 Aleš Kozumplík <ales@redhat.com> - 0.6.1-1.git6d968f1
Ales Kozumplik a4f8735
- Rebase to upstream 6d968f1
Ales Kozumplik a4f8735
- Fix RhBug:1049209
Ales Kozumplik a4f8735
Jan Silhan 8fc425e
* Fri Apr 25 2014 Jan Silhan <jsilhan@redhat.com> - 0.6.1-0.gitf78f5de
Jan Silhan 8fc425e
- Rebase to 0.6.0, upstream commit f78f5de.
Jan Silhan 8fc425e
09a63d8
* Thu Apr 24 2014 Vít Ondruch <vondruch@redhat.com> - 0.6.0-0.git05baf54.1
09a63d8
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
09a63d8
Jan Silhan f1d6af8
* Wed Apr 9 2014 Jan Silhan <jsilhan@redhat.com> - 0.6.0-0.git05baf54
Jan Silhan 3cda311
- Rebase to 0.6.0, upstream commit 05baf54.
Jan Silhan 3cda311
Ales Kozumplik d7e2afd
* Mon Dec 16 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.4.1-1.gitbcedc98
Ales Kozumplik d7e2afd
- Rebase upstream bcedc98
Ales Kozumplik d7e2afd
- Fix RhBug:1051917.
Ales Kozumplik d7e2afd
Ales Kozumplik 9fbcf4c
* Mon Dec 16 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.4.1-0.gita8e47f1
Ales Kozumplik 9fbcf4c
- Rebase to 0.4.1, upstream commit a8e47f1.
Ales Kozumplik 9fbcf4c
Zdenek Pavlas a0370de
* Fri Nov 22 2013 Zdenek Pavlas <zpavlas@redhat.com> - 0.4.0-2.git4442b7f
Zdenek Pavlas a0370de
- Rebase to 0.4.0, upstream commit 4442b7f.
Zdenek Pavlas a0370de
- support DELTA_LOCATION_BASE for completeness
Ales Kozumplik 2e5e671
Ales Kozumplik 9fbcf4c
* Tue Oct 29 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.4.0-1.gitd49d319
Ales Kozumplik 2e5e671
- Rebase to 0.4.0, upstream commit d49d319.
Ales Kozumplik 2e5e671
6ef68f0
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 0.3.0-9.gita59d11d
6ef68f0
- Perl 5.18 rebuild
6ef68f0
Ales Kozumplik ab2d2a1
* Wed Jul 31 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-8.gita59d11d
Ales Kozumplik ab2d2a1
- Rebase to upstream a59d11d.
Ales Kozumplik ab2d2a1
Ales Kozumplik 64575c9
* Fri Jul 19 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-7.git228d412
Ales Kozumplik 92261ed
- Add build flags, including Deb, Arch, LZMA and MULTI_SEMANTICS. (RhBug:985905)
Ales Kozumplik 92261ed
784bf64
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.3.0-6.git228d412
784bf64
- Perl 5.18 rebuild
784bf64
Ales Kozumplik 92261ed
* Mon Jun 24 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-5.git228d412
Ales Kozumplik a4b5dac
- Rebase to upstream 228d412.
Ales Kozumplik a4b5dac
- Fixes hawkey github issue https://github.com/akozumpl/hawkey/issues/13
Ales Kozumplik a4b5dac
Ales Kozumplik ccc9ddf
* Thu Jun 20 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-4.git209e9cb
Ales Kozumplik ccc9ddf
- Rebase to upstream 209e9cb.
Ales Kozumplik ccc9ddf
- Package the new man pages.
Ales Kozumplik ccc9ddf
Ales Kozumplik 1744b25
* Thu May 16 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-3.git7399ad1
Ales Kozumplik b532c3f
- Run 'make test' with libsolv build.
Ales Kozumplik b532c3f
Ales Kozumplik 3f49e68
* Mon Apr 8 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-2.git7399ad1
Ales Kozumplik 3f49e68
- Rebase to upstream 7399ad1.
Ales Kozumplik 3f49e68
- Fixes RhBug:905209
Ales Kozumplik 3f49e68
Ales Kozumplik 524ed2f
* Mon Apr 8 2013 Aleš Kozumplík <akozumpl@redhat.com> - 0.3.0-1.gite372b78
Ales Kozumplik 524ed2f
- Rebase to upstream e372b78.
Ales Kozumplik 524ed2f
- Fixes RhBug:e372b78
Ales Kozumplik 524ed2f
5fc4f5d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-2.gitf663ca2
5fc4f5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5fc4f5d
Ales Kozumplik 3dde16b
* Thu Aug 23 2012 Aleš Kozumplík <akozumpl@redhat.com> - 0.0.0-17.git6c9d3eb
Ales Kozumplik 3dde16b
- Rebase to upstream 6c9d3eb.
Ales Kozumplik 3dde16b
- Drop the solv.i stdbool.h fix integrated upstream.
Ales Kozumplik 3dde16b
- Dropped the job reasons fix.
Ales Kozumplik 3dde16b
Ales Kozumplik 739fa31
* Mon Jul 23 2012 Aleš Kozumplík <akozumpl@redhat.com> - 0.0.0-16.git1617994
Ales Kozumplik 739fa31
- Fix build problems with Perl bindings.
Ales Kozumplik 739fa31
Ales Kozumplik 5d7faeb
* Mon Jul 23 2012 Aleš Kozumplík <akozumpl@redhat.com> - 0.0.0-15.git1617994
Ales Kozumplik 5d7faeb
- Rebuilt after a failed mass rebuild.
Ales Kozumplik 5d7faeb
951adf1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.0-14.git1617994
951adf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
951adf1
Ales Kozumplik 4e8aed5
* Mon Jul 16 2012 Aleš Kozumplik <akozumpl@redhat.com> - 0.0.0-13.git1617994%{?dist}
Ales Kozumplik 4e8aed5
- preliminary fix for JOB resons in solver_describe_decision().
Ales Kozumplik 4e8aed5
Ales Kozumplik b06f772
* Sun Jul 1 2012 Aleš Kozumplik <akozumpl@redhat.com> - 0.0.0-12.git1617994%{?dist}
Ales Kozumplik b06f772
- Rebase to upstream 1617994.
Ales Kozumplik b06f772
- Support for RPM_ADD_WITH_HDRID.
Ales Kozumplik b06f772
Ales Kozumplik 0abb4bd
* Thu Jun  7 2012 Aleš Kozumplik <akozumpl@redhat.com> - 0.0.0-11.gitd39a42b%{?dist}
Ales Kozumplik 0abb4bd
- Rebase to upstream d39a42b.
Ales Kozumplik 0abb4bd
- Fix the epochs.
Ales Kozumplik 0abb4bd
- Move the ruby modules into vendorarch dir, where they are expected.
Ales Kozumplik 0abb4bd
Ales Kozumplik a22d1f6
* Thu May  17 2012 Aleš Kozumplik <akozumpl@redhat.com> - 0.0.0-9.git8cf7650%{?dist}
Ales Kozumplik a22d1f6
- Rebase to upstream 8cf7650.
Ales Kozumplik a22d1f6
- ruby bindings: fix USE_VENDORDIRS for Fedora.
Ales Kozumplik a22d1f6
Ales Kozumplik f4c7379
* Thu Apr  12 2012 Aleš Kozumplik <akozumpl@redhat.com> - 0.0.0-7.gitaf1465a2%{?dist}
Ales Kozumplik f4c7379
- Rebase to the upstream.
Ales Kozumplik f4c7379
- Make repo_add_solv() work without stub repodata.
Ales Kozumplik f4c7379
Karel Klic fe1dd0f
* Thu Apr  5 2012 Karel Klíč <kklic@redhat.com> - 0.0.0-6.git80afaf7%{?dist}
Karel Klic fe1dd0f
- Rebuild for the new libdb package.
Karel Klic fe1dd0f
Karel Klic 29b45a1
* Mon Apr  2 2012 Karel Klíč <kklic@redhat.com> - 0.0.0-5.git80afaf7%{?dist}
Karel Klic 29b45a1
- Rebuild for the new rpm package.
Karel Klic 29b45a1
Ales Kozumplik f4c7379
* Wed Mar 21 2012 Aleš Kozumplík <akozumpl@redhat.com> - 0.0.0-4.git80afaf7%{?dist}
Ales Kozumplik a6a126d
- New upstream version, fix the .rpm release number.
Ales Kozumplik a6a126d
Ales Kozumplik f4c7379
* Wed Mar 21 2012 Aleš Kozumplík <akozumpl@redhat.com> - 0.0.0-3.git80afaf7%{?dist}
Ales Kozumplik 714123c
- New upstream version.
Ales Kozumplik 714123c
Karel Klic 5eb5e60
* Tue Feb  7 2012 Karel Klíč <kklic@redhat.com> - 0.0.0-2.git857fe28%{?dist}
Karel Klic 5eb5e60
- Adapted to Ruby 1.9.3 (workaround for broken CMake in Fedora and
Karel Klic 5eb5e60
  ruby template correction in bindings)
Karel Klic 5eb5e60
Karel Klic 732335e
* Thu Feb  2 2012 Karel Klíč <kklic@redhat.com> - 0.0.0-1.git857fe28
Karel Klic 732335e
- Initial packaging
Karel Klic 732335e
- Based on Jindra Novy's spec file
Karel Klic 732335e
- Based on upstream spec file