%if %{?mkrel:0}%{?!mkrel:1} %define mkrel(c:) %{-c: 0.%{-c*}.}%{1}%{?subrel:.%subrel}%{?dist:%dist} %endif %if %{?mklibname:0}%{?!mklibname:1} %define mklibname(ds) %{_lib}%{1}%{?2:%{2}}%{?3:_%{3}}%{-s:-static}%{-d:-devel} %endif %define shortname solv %define major 1 %define libname %mklibname %{shortname} %{major} %define devname %mklibname %{shortname} -d Name: libsolv Version: 0.7.27 Release: %mkrel 1 Summary: Package dependency solver License: BSD Group: System/Libraries Url: https://github.com/openSUSE/libsolv Source0: https://github.com/openSUSE/libsolv/archive/%{version}/%{name}-%{version}.tar.gz # Backports from upstream BuildRequires: cmake BuildRequires: libxml2-devel BuildRequires: zchunk-devel BuildRequires: rpm-devel BuildRequires: zlib-devel BuildRequires: bzip2-devel BuildRequires: zstd-devel BuildRequires: swig BuildRequires: perl # (ngompa) fix build to avoid broken generated perl-base dependency BuildRequires: perl-base BuildRequires: perl-devel BuildRequires: ruby BuildRequires: ruby-devel BuildRequires: python3-devel # (tv) fix build: BuildRequires: ruby-psych # For doc: BuildRequires: asciidoc %description A free package dependency solver using a satisfiability algorithm. The library is based on two major, but independent, blocks: - Using a dictionary approach to store and retrieve package and dependency information. - Using satisfiability, a well known and researched topic, for resolving package dependencies. %package -n %{libname} Summary: Libraries for %{name} Group: System/Libraries Provides: %{name} = %{version}-%{release} Provides: %{name}%{?_isa} = %{version}-%{release} %description -n %{libname} Libraries for %{name}. %package -n %{devname} Summary: Development files for %{name} Group: Development/C Provides: %{name}-devel = %{version}-%{release} Requires: %{libname} = %{version}-%{release} Requires: cmake %description -n %{devname} Development files for %{name}. %package doc Summary: Documentation for %{name} Group: Documentation %description doc Documentation for %{name}. %package tools Summary: A new approach to package dependency solving Group: System/Packaging Requires: gzip Requires: bzip2 Requires: zchunk Requires: zstd %description tools Package dependency solver tools. %package demo Summary: Application demoing the libsolv library Group: System/Packaging Requires: %{libname} = %{version}-%{release} Requires: %{name}-tools = %{version}-%{release} Requires: curl Requires: gnupg2 %description demo Applications demoing the libsolv library. %package -n ruby-solv Summary: Ruby bindings for the libsolv library Group: Development/Ruby %description -n ruby-solv Ruby bindings for libsolv. %package -n python3-solv Summary: Python 3 bindings for the libsolv library Group: Development/Python %{?python_provide: %python_provide python3-solv} %description -n python3-solv Python 3 bindings for libsolv. %package -n perl-solv Summary: Perl bindings for the libsolv library Group: Development/Perl %description -n perl-solv Perl bindings for libsolv. %prep %autosetup -p1 %build %cmake \ -DMAGEIA=1 \ -DWITH_LIBXML2=1 \ -DWITH_SYSTEM_ZCHUNK=1 \ -DENABLE_PERL=1 \ -DENABLE_PYTHON=1 \ -DENABLE_RUBY=1 \ -DUSE_VENDORDIRS=1 \ -DENABLE_APPDATA=1 \ -DENABLE_COMPS=1 \ -DENABLE_RPMDB_BYRPMHEADER=1 \ -DENABLE_RPMDB_LIBRPM=1 \ -DENABLE_RPMPKG_LIBRPM=1 \ -DENABLE_LZMA_COMPRESSION=1 \ -DENABLE_BZIP2_COMPRESSION=1 \ -DENABLE_ZSTD_COMPRESSION=1 \ -DENABLE_SUSEREPO=1 \ -DENABLE_HELIXREPO=1 \ -DENABLE_DEBIAN=1 \ -DENABLE_ARCHREPO=1 \ -DENABLE_COMPLEX_DEPS=1 \ -DMULTI_SEMANTICS=1 %cmake_build pushd %{_vpath_builddir}/doc cp -a ../../doc/*.txt . cp -a ../../doc/gen gen cp ../../doc/Makefile.gen . make -f Makefile.gen html popd %install %cmake_install %files -n %{libname} %license LICENSE* %doc README %{_libdir}/libsolv.so.%{major} %{_libdir}/libsolvext.so.%{major} %files doc %doc build/doc/gen/*.html %files tools %{_bindir}/installcheck %{_bindir}/a*solv %{_bindir}/comps2solv %{_bindir}/d*solv %{_bindir}/helix2solv %{_bindir}/m*solv %{_bindir}/repo*2solv %{_bindir}/rpm*solv %{_bindir}/susetags2solv %{_bindir}/testsolv %{_bindir}/updateinfoxml2solv %{_mandir}/man1/installcheck.1* %{_mandir}/man1/a*solv.1* %{_mandir}/man1/comps2solv.1* %{_mandir}/man1/d*solv.1* %{_mandir}/man1/helix2solv.1* %{_mandir}/man1/m*solv.1* %{_mandir}/man1/repo*2solv.1* %{_mandir}/man1/rpm*solv.1* %{_mandir}/man1/susetags2solv.1* %{_mandir}/man1/testsolv.1* %{_mandir}/man1/updateinfoxml2solv.1* %files -n %{devname} %doc examples/solv %{_libdir}/libsolv*.so %{_includedir}/solv %{_datadir}/cmake/Modules/FindLibSolv.cmake %{_mandir}/man3/* %{_libdir}/pkgconfig/libsolv*.pc %files demo %{_bindir}/solv %{_mandir}/man1/solv.1* %files -n perl-solv %doc examples/p5solv %{perl_vendorarch}/* %files -n ruby-solv %doc examples/rbsolv %{ruby_vendorarchdir}/* %files -n python3-solv %doc examples/pysolv %{python3_sitearch}/* %changelog * Wed Jan 03 2024 Neal Gompa 0.7.27-1.mga10 + Revision: 2026897 - Update to version 0.7.27 - Add BR for perl-base to fix perl-base depgenerator * Wed Nov 22 2023 Jani Välimaa 0.7.25-2.mga10 + Revision: 2009195 - add libsolv provides to lib pkg * Wed Nov 22 2023 Jani Välimaa 0.7.25-1.mga10 + Revision: 2009172 - new version 0.7.25 * Sun Nov 12 2023 David GEIGER 0.7.22-3.mga10 + Revision: 2006234 - rebuild for new rpm 4.19.0 * Thu Aug 04 2022 Thierry Vignaud 0.7.22-2.mga9 + Revision: 1875070 - Rebuild for perl-5.36 * Mon Apr 18 2022 David Walser 0.7.22-1.mga9 + Revision: 1851482 - 0.7.22 * Mon Mar 28 2022 Sysadmin Bot 0.7.21-2.mga9 + Revision: 1829702 - Mageia 9 Mass Rebuild * Sat Mar 26 2022 David Walser 0.7.21-1.mga9 + Revision: 1828113 - 0.7.21 * Tue Nov 23 2021 Neal Gompa 0.7.20-1.mga9 + Revision: 1758694 - Update to 0.7.20 * Fri Jun 18 2021 Joseph Wang 0.7.19-1.mga9 + Revision: 1731169 - update to 0.7.19 * Wed Apr 21 2021 David GEIGER 0.7.16-2.mga9 + Revision: 1717707 - rebuild for python 3.9 * Wed Nov 18 2020 David Walser 0.7.16-1.mga8 + Revision: 1647143 - 0.7.16 * Sat Jul 18 2020 Thierry Vignaud 0.7.14-2.mga8 + Revision: 1606959 - rebuild for perl-5.32 (binary package w/o a dep on libperl.so * Tue Jun 02 2020 Thierry Vignaud 0.7.14-1.mga8 + Revision: 1589735 - 0.7.14 * Sun Feb 23 2020 Neal Gompa 0.7.11-1.mga8 + Revision: 1549623 - Update to 0.7.11 * Wed Feb 19 2020 Sysadmin Bot 0.7.10-2.mga8 + Revision: 1543246 - Mageia 8 Mass Rebuild * Sun Jan 19 2020 Neal Gompa 0.7.10-1.mga8 + Revision: 1481558 - Update to 0.7.10 + Jani Välimaa - build with new cmake macros * Sun Dec 08 2019 Neal Gompa 0.7.9-1.mga8 + Revision: 1465101 - Update to 0.7.9 * Tue Sep 10 2019 Thierry Vignaud 0.7.6-1.mga8 + Revision: 1439339 - new release * Sun Mar 31 2019 Neal Gompa 0.7.4-1.mga7 + Revision: 1383673 - Update to 0.7.4 * Sun Mar 24 2019 David GEIGER 0.7.3-2.mga7 + Revision: 1379879 - fix dangling link (mga#23514) * Wed Jan 30 2019 Neal Gompa 0.7.3-1.mga7 + Revision: 1361998 - Update to 0.7.3 * Wed Jan 09 2019 David GEIGER 0.7.2-2.mga7 + Revision: 1353096 - rebuild for new Python 3.7 * Sat Jan 05 2019 Neal Gompa 0.7.2-1.mga7 + Revision: 1349712 - Update to 0.7.2 * Wed Oct 31 2018 Neal Gompa 0.7.1-1.mga7 + Revision: 1326938 - Update to 0.7.1 * Sun Oct 28 2018 Neal Gompa 0.7.0-1.mga7 + Revision: 1326320 - Update to 0.7.0 - Remove unnecessary dependency on tools by the lib and devel subpackages - Add missing dependency on tools by the demo subpackage - Small cleanups to the spec * Sun Sep 23 2018 Sysadmin Bot 0.6.35-2.mga7 + Revision: 1299158 - Mageia 7 Mass Rebuild * Thu Aug 09 2018 Neal Gompa 0.6.35-1.mga7 + Revision: 1250809 - Update to 0.6.35 - Enable zstd compression support * Sat Jun 30 2018 Neal Gompa 0.6.34-1.mga7 + Revision: 1240893 - Upgrade to 0.6.34 * Sat Mar 03 2018 Neal Gompa 0.6.33-1.mga7 + Revision: 1206258 - Update to 0.6.33 * Tue Feb 20 2018 Neal Gompa 0.6.32-1.mga7 + Revision: 1203550 - Update to 0.6.32 * Thu Feb 01 2018 Neal Gompa 0.6.31-1.mga7 + Revision: 1198408 - Upgrade to 0.6.31 - Switch to reading rpmdb through librpm - Drop backport patches - Drop old Obsoletes in python3-solv * Wed Oct 25 2017 Neal Gompa 0.6.30-1.mga7 + Revision: 1173640 - Upgrade to 0.6.30 - Backport patch from upstream to have obsoletes account for arch colors (mga#21827) - Backport patches for adding stats to obsoletes logic and fixing droporphaned logic * Fri Sep 08 2017 Neal Gompa 0.6.29-1.mga7 + Revision: 1151898 - Upgrade to 0.6.29 - Drop merged patches * Fri Sep 01 2017 Thierry Vignaud 0.6.28-6.mga7 + Revision: 1150541 - BR ruby-psych thus fixing build - rebuild for new rpm - rebuild for rpm-4.14 * Sun Aug 06 2017 Neal Gompa 0.6.28-4.mga7 + Revision: 1137542 - Backport from upstream support for REL_WITH and REL_WITHOUT rich dependency operands - Add missing compilation definitions to libsolv for Mageia * Sat Aug 05 2017 Pascal Terjan 0.6.28-3.mga7 + Revision: 1135261 - Rebuild for python 3.6 * Fri Jul 21 2017 Neal Gompa 0.6.28-2.mga7 + Revision: 1125828 - Backport fix from upstream to properly process multiple Obsoletes in a single transaction (rhbz#1470922) * Sun Jul 02 2017 Neal Gompa 0.6.28-1.mga6 + Revision: 1108981 - Upgrade to 0.6.28 * Sun May 14 2017 Neal Gompa 0.6.27-2.mga6 + Revision: 1101053 - Backport patch to fix installed size readings (rhbz#1300801) * Sat May 06 2017 Neal Gompa 0.6.27-1.mga6 + Revision: 1099280 - Upgrade to 0.6.27 - Switch to libxml2 for xml parsing - Add patch to add armv5tl to armsfp arch list * Sun Apr 02 2017 Neal Gompa 0.6.26-1.mga6 + Revision: 1095672 - Backport patches to properly replace multiarch packages (rhbz#1436110) - Stop deleting testsolv from libsolv-tools and add libsolv-demo subpackage - Upgrade to 0.6.26 * Fri Nov 11 2016 Neal Gompa 0.6.24-1.mga6 + Revision: 1066321 - Update to 0.6.24 * Sat Sep 03 2016 Neal Gompa 0.6.23-3.mga6 + Revision: 1049958 - Add patch to enable deep searching for packages for testcases (rhbz#1263888) - Add patch to fix gcc6 warnings - Add patch to guard better against corrupt RPMs * Sat Aug 20 2016 Neal Gompa 0.6.23-2.mga6 + Revision: 1047201 - Backport patch to fix dnf --debugsolver crash (rhbz#1361831) - Drop redundant CMake parameters * Fri Jul 22 2016 Neal Gompa 0.6.23-1.mga6 + Revision: 1043139 - Update to 0.6.23, drop unnecessary obsoletes * Tue Jun 14 2016 Neal Gompa 0.6.22-3.mga6 + Revision: 1021498 - More improvements to cleandeps logic * Tue Jun 14 2016 Neal Gompa 0.6.22-2.mga6 + Revision: 1021461 - Backport patch to improve cleandeps logic (rhbz#1227066; rhbz#1284349) * Wed Jun 08 2016 Neal Gompa 0.6.22-1.mga6 + Revision: 1020869 - Upgrade to 0.6.22 * Sun May 22 2016 Neal Gompa 0.6.21-1.mga6 + Revision: 1017443 - Update to 0.6.21, drop patches * Fri May 13 2016 Neal Gompa 0.6.20-2.mga6 + Revision: 1014972 - Add patches for multilib and urpm-style solution ordering * Mon Apr 11 2016 Neal Gompa 0.6.20-1.mga6 + Revision: 1000183 - Update to 0.6.20 ◦ Enable AppData and comps parsing ◦ Enable BZip2 compression support * Fri Mar 25 2016 Thierry Vignaud 0.6.19-2.mga6 + Revision: 995338 - make it mass rebuild compatible - add doc package * Mon Feb 15 2016 Thierry Vignaud 0.6.19-1.mga6 + Revision: 961399 - 0.6.19 * Sun Jan 31 2016 Neal Gompa 0.6.18-1.mga6 + Revision: 929258 - Update to 0.6.18 * Wed Dec 16 2015 Neal Gompa 0.6.15-1.mga6 + Revision: 910846 - Update to 0.6.15 * Fri Oct 09 2015 Thierry Vignaud 0.6.14-0.20151005.1.mga6 + Revision: 888386 - rename python-solv as python3-solv as it's really what it's - rebuild for python 3.5 - drop patch 0 (no more needed) - new release - drop merged patch 1 * Fri Oct 02 2015 Thierry Vignaud 0.6.13-0.20151002.3.mga6 + Revision: 885739 - patch 3: enable more stuff for DNF (mga#16878) - patch 2: auto enable RPMMD for mga (mga#16878) - new release * Tue Sep 29 2015 Thierry Vignaud 0.6.13-0.20150925.3.mga6 + Revision: 885121 - build with rich dependency support (mga#16852) * Sat Sep 26 2015 Thierry Vignaud 0.6.13-0.20150925.2.mga6 + Revision: 883791 - build with -DENABLE_RPMMD=1 (mga#16821) * Fri Sep 25 2015 Thierry Vignaud 0.6.13-0.20150925.1.mga6 + Revision: 883579 - new release * Thu Sep 17 2015 Thierry Vignaud 0.6.12-0.20150916.1.mga6 + Revision: 880170 - new snapshot - Mageia is now officially recognized - patch 1: fix build * Wed Sep 02 2015 Thierry Vignaud 0.6.12-0.20150901.1.mga6 + Revision: 872141 - BR python3-devel - new release * Sat Jun 27 2015 Thierry Vignaud 0.6.11-1.20150622.1.mga6 + Revision: 846065 - rebuild for soname-ifed perl * Tue Jun 23 2015 Thierry Vignaud 0.6.11-0.20150622.1.mga6 + Revision: 841266 - adjust file list - new release - new release - rebuild for perl-5.22 * Wed Oct 15 2014 Sysadmin Bot 0.6.4-1.20140925.2.mga5 + Revision: 745445 - Second Mageia 5 Mass Rebuild * Sat Sep 27 2014 Thierry Vignaud 0.6.4-1.20140925.1.mga5 + Revision: 726895 - rebuild for missing pythoneggs deps * Fri Sep 26 2014 Thierry Vignaud 0.6.4-0.20140925.1.mga5 + Revision: 724822 - even more doc * Wed Sep 24 2014 Thierry Vignaud 0.6.4-0.20140924.1.mga5 + Revision: 724386 - new snapshot (doc++) * Tue Sep 16 2014 Sysadmin Bot 0.6.4-0.20140731.2.mga5 + Revision: 681790 - Mageia 5 Mass Rebuild * Sat Aug 09 2014 Thierry Vignaud 0.6.4-0.20140731.1.mga5 + Revision: 661268 - new release * Sat Aug 09 2014 Thierry Vignaud 0.6.1-0.20140418.4.mga5 + Revision: 661262 - adjust file list - enable support for debian & other metadata + Pascal Terjan - Rebuild for perl 5.20 - Rebuild for new Python * Fri Apr 18 2014 Thierry Vignaud 0.6.1-0.20140418.1.mga5 + Revision: 616854 - new release * Wed Mar 26 2014 Thierry Vignaud 0.5.1-0.20140326.1.mga5 + Revision: 608848 - new release * Wed Feb 26 2014 Thierry Vignaud 0.5.0-0.20140226.1.mga5 + Revision: 597375 - new release * Fri Feb 14 2014 Thierry Vignaud 0.4.4-0.20140214.1.mga5 + Revision: 591273 - new release * Fri Feb 07 2014 Thierry Vignaud 0.4.0-0.20140207.1.mga5 + Revision: 584946 - new release * Wed Dec 18 2013 Thierry Vignaud 0.4.0-0.20131218.1.mga4 + Revision: 558387 - new snapshot * Mon Oct 21 2013 Sysadmin Bot 0.4.0-0.20130928.2.mga4 + Revision: 538128 - Mageia 4 Mass Rebuild * Sat Sep 28 2013 Thierry Vignaud 0.4.0-0.20130928.1.mga4 + Revision: 488572 - new release - library version is now 0.4.0 * Sat Sep 21 2013 Thierry Vignaud 0.0.0-0.20130921.1.mga4 + Revision: 483057 - new release * Sat Sep 21 2013 Funda Wang 0.0.0-0.20130611.2.mga4 + Revision: 482941 - rebuild for ruby 2.0 * Tue Jun 11 2013 Thierry Vignaud 0.0.0-0.20130611.1.mga4 + Revision: 442002 - new snapshot * Sat Jun 08 2013 Thierry Vignaud 0.0.0-0.20130608.1.mga4 + Revision: 440722 - new snapshot - install new doc * Tue May 28 2013 Thierry Vignaud 0.0.0-0.20130523.1.mga4 + Revision: 430007 - rebuild for new perl * Tue Jan 22 2013 Funda Wang 0.0.0-0.20130114.2.mga4 + Revision: 390773 - update rpm group * Sat Jan 19 2013 Funda Wang 0.0.0-0.20130114.1.mga3 + Revision: 389691 - more linkage fix - link against pthread - fix linkage - new snapshot + Sysadmin Bot - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Jul 31 2012 Funda Wang 0.0.0-0.20120701.2.mga3 + Revision: 276444 - update file list - specify correct libsolv switch - obsolete old tools * Sun Jul 01 2012 Colin Guthrie 0.0.0-0.20120701.1.mga3 + Revision: 266215 - Fix more groups - Fix groups - Enable Helix support (needed for libzypp compilation) - Import libsolv (based on Fedora package) * Sun Jul 1 2012 AleÅ¡ Kozumplik - 0.0.0-12.git1617994%%{?dist} - Rebase to upstream 1617994. - Support for RPM_ADD_WITH_HDRID. * Thu Jun 7 2012 AleÅ¡ Kozumplik - 0.0.0-11.gitd39a42b%%{?dist} - Rebase to upstream d39a42b. - Fix the epochs. - Move the ruby modules into vendorarch dir, where they are expected. * Thu May 17 2012 AleÅ¡ Kozumplik - 0.0.0-9.git8cf7650%%{?dist} - Rebase to upstream 8cf7650. - ruby bindings: fix USE_VENDORDIRS for Fedora. * Thu Apr 12 2012 AleÅ¡ Kozumplik - 0.0.0-7.gitaf1465a2%%{?dist} - Rebase to the upstream. - Make repo_add_solv() work without stub repodata. * Thu Apr 5 2012 Karel Klíč - 0.0.0-6.git80afaf7%%{?dist} - Rebuild for the new libdb package. * Mon Apr 2 2012 Karel Klíč - 0.0.0-5.git80afaf7%%{?dist} - Rebuild for the new rpm package. * Wed Mar 21 2012 AleÅ¡ Kozumplík - 0.0.0-4.git80afaf7%%{?dist} - New upstream version, fix the .rpm release number. * Wed Mar 21 2012 AleÅ¡ Kozumplík - 0.0.0-3.git80afaf7%%{?dist} - New upstream version. * Tue Feb 7 2012 Karel Klíč - 0.0.0-2.git857fe28%%{?dist} - Adapted to Ruby 1.9.3 (workaround for broken CMake in Fedora and ruby template correction in bindings) * Thu Feb 2 2012 Karel Klíč - 0.0.0-1.git857fe28 - Initial packaging - Based on Jindra Novy's spec file - Based on upstream spec file