Blame SPECS/libsolv.spec

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