Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.8
libsolv
libsolv.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libsolv.spec of Package libsolv
%global libname solv %bcond_without python2_bindings %if 0%{?rhel} && 0%{?rhel} <= 7 %bcond_with perl_bindings %bcond_with ruby_bindings %bcond_with python3_bindings %else %bcond_without perl_bindings %bcond_without ruby_bindings %bcond_without python3_bindings %endif # Creates special prefixed pseudo-packages from appdata metadata %bcond_without appdata # Creates special prefixed "group:", "category:" pseudo-packages %bcond_without comps # For rich dependencies %bcond_without complex_deps %if 0%{?rhel} %bcond_with helix_repo %bcond_with suse_repo %bcond_with debian_repo %bcond_with arch_repo # For handling deb + rpm at the same time %bcond_with multi_semantics %else %bcond_without helix_repo %bcond_without suse_repo %bcond_without debian_repo %bcond_without arch_repo # For handling deb + rpm at the same time %bcond_without multi_semantics %endif #global commitnum 2901 #global commit 47fbaa2a0892866d30ec0e1b4c885532d0aca7b8 #global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: lib%{libname} Version: 0.6.32 Release: 1%{?commit:.git.%{commitnum}.%{?shortcommit}}%{?dist} Summary: Package dependency solver License: BSD URL: https://github.com/openSUSE/libsolv %if %{defined commit} Source: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz %endif Patch0: libsolv-fix-pkgid.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: ninja-build BuildRequires: pkgconfig(rpm) BuildRequires: zlib-devel # -DWITH_LIBXML2=ON BuildRequires: libxml2-devel # -DENABLE_LZMA_COMPRESSION=ON BuildRequires: xz-devel # -DENABLE_BZIP2_COMPRESSION=ON BuildRequires: bzip2-devel %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 devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: rpm-devel%{?_isa} %description devel Development files for %{name}. %package tools Summary: Package dependency solver tools Requires: %{name}%{?_isa} = %{version}-%{release} # repo2solv dependencies. All of those are used in shell-script. Requires: %{_bindir}/gzip Requires: %{_bindir}/bzip2 Requires: %{_bindir}/lzma Requires: %{_bindir}/xz Requires: %{_bindir}/cat Requires: %{_bindir}/find %description tools Package dependency solver tools. %package demo Summary: Applications demoing the %{name} library Requires: %{name}%{?_isa} = %{version}-%{release} # solv dependencies. Used as execlp() and system() Requires: %{_bindir}/curl Requires: %{_bindir}/gpg2 %description demo Applications demoing the %{name} library. %if %{with perl_bindings} %package -n perl-%{libname} Summary: Perl bindings for the %{name} library BuildRequires: swig BuildRequires: perl-devel BuildRequires: perl-generators Requires: %{name}%{?_isa} = %{version}-%{release} %description -n perl-%{libname} Perl bindings for the %{name} library. %endif %if %{with ruby_bindings} %package -n ruby-%{libname} Summary: Ruby bindings for the %{name} library BuildRequires: swig BuildRequires: ruby-devel Requires: %{name}%{?_isa} = %{version}-%{release} %description -n ruby-%{libname} Ruby bindings for the %{name} library. %endif %if %{with python2_bindings} %package -n python2-%{libname} Summary: Python bindings for the %{name} library %{?python_provide:%python_provide python2-%{libname}} BuildRequires: swig BuildRequires: python2-devel Requires: %{name}%{?_isa} = %{version}-%{release} %description -n python2-%{libname} Python bindings for the %{name} library. Python 2 version. %endif %if %{with python3_bindings} %package -n python3-%{libname} Summary: Python bindings for the %{name} library %{?python_provide:%python_provide python3-%{libname}} BuildRequires: swig BuildRequires: python3-devel Requires: %{name}%{?_isa} = %{version}-%{release} %description -n python3-%{libname} Python bindings for the %{name} library. Python 3 version. %endif %prep %autosetup -p1 %{?commit:-n %{name}-%{commit}} %build %cmake . -B"%{_vpath_builddir}" -GNinja \ -DFEDORA=1 \ -DENABLE_RPMDB=ON \ -DENABLE_RPMDB_BYRPMHEADER=ON \ -DENABLE_RPMDB_LIBRPM=ON \ -DENABLE_RPMPKG_LIBRPM=ON \ -DENABLE_RPMMD=ON \ %{?with_comps:-DENABLE_COMPS=ON} \ %{?with_appdata:-DENABLE_APPDATA=ON} \ -DUSE_VENDORDIRS=ON \ -DWITH_LIBXML2=ON \ -DENABLE_LZMA_COMPRESSION=ON \ -DENABLE_BZIP2_COMPRESSION=ON \ %{?with_helix_repo:-DENABLE_HELIXREPO=ON} \ %{?with_suse_repo:-DENABLE_SUSEREPO=ON} \ %{?with_debian_repo:-DENABLE_DEBIAN=ON} \ %{?with_arch_repo:-DENABLE_ARCHREPO=ON} \ %{?with_multi_semantics:-DMULTI_SEMANTICS=ON} \ %{?with_complex_deps:-DENABLE_COMPLEX_DEPS=1} \ %{?with_perl_bindings:-DENABLE_PERL=ON} \ %{?with_ruby_bindings:-DENABLE_RUBY=ON} \ %{?with_python2_bindings:-DENABLE_PYTHON=ON} \ %{?with_python3_bindings:-DENABLE_PYTHON3=ON} \ %{nil} %ninja_build -C "%{_vpath_builddir}" %install %ninja_install -C "%{_vpath_builddir}" mv %{buildroot}%{_bindir}/repo2solv{.sh,} %check %ninja_test -C "%{_vpath_builddir}" %ldconfig_scriptlets %files %license LICENSE* %doc README %{_libdir}/%{name}.so.* %{_libdir}/%{name}ext.so.* %files devel %{_libdir}/%{name}.so %{_libdir}/%{name}ext.so %{_includedir}/%{libname}/ %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}ext.pc # Own directory because we don't want to depend on cmake %dir %{_datadir}/cmake/Modules/ %{_datadir}/cmake/Modules/FindLibSolv.cmake %{_mandir}/man3/%{name}*.3* # Some small macro to list tools with mans %global solv_tool() \ %{_bindir}/%{1}\ %{_mandir}/man1/%{1}.1* %files tools %solv_tool deltainfoxml2solv %solv_tool dumpsolv %solv_tool installcheck %solv_tool mergesolv %solv_tool repomdxml2solv %solv_tool rpmdb2solv %solv_tool rpmmd2solv %solv_tool rpms2solv %solv_tool testsolv %solv_tool updateinfoxml2solv %if %{with comps} %solv_tool comps2solv %endif %if %{with appdata} %solv_tool appdata2solv %endif %if %{with debian_repo} %solv_tool deb2solv %endif %if %{with arch_repo} %solv_tool archpkgs2solv %solv_tool archrepo2solv %endif %if %{with helix_repo} %solv_tool helix2solv %endif %if %{with suse_repo} %solv_tool susetags2solv %endif %{_bindir}/repo2solv %files demo %{_bindir}/solv %if %{with perl_bindings} %files -n perl-%{libname} %{perl_vendorarch}/%{libname}.pm %{perl_vendorarch}/%{libname}.so %endif %if %{with ruby_bindings} %files -n ruby-%{libname} %{ruby_vendorarchdir}/%{libname}.so %endif %if %{with python2_bindings} %files -n python2-%{libname} %{python2_sitearch}/_%{libname}.so %{python2_sitearch}/%{libname}.py* %endif %if %{with python3_bindings} %files -n python3-%{libname} %{python3_sitearch}/_%{libname}.so %{python3_sitearch}/%{libname}.py %{python3_sitearch}/__pycache__/%{libname}.* %endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor