diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-09-11 16:50:08 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-09-11 16:50:08 +0900 |
commit | 7b3e702f4c0696984369248d95d6b59c374df9b6 (patch) | |
tree | 627a3356d73c938ea9bb03e0be0417ea4fef7939 | |
parent | 308ed24db702bd76267a5e347fe83144294ed4e0 (diff) | |
download | libsolv-7b3e702f4c0696984369248d95d6b59c374df9b6.tar.gz libsolv-7b3e702f4c0696984369248d95d6b59c374df9b6.tar.bz2 libsolv-7b3e702f4c0696984369248d95d6b59c374df9b6.zip |
Bump to libsolv 0.7.6tizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.115102submit/tizen_6.0_hotfix/20201102.192902submit/tizen_6.0/20201029.205502submit/tizen/20200310.064233submit/tizen/20200210.074002submit/tizen/20200203.040950submit/tizen/20191209.033639submit/tizen/20190917.073311accepted/tizen/unified/20200311.130857accepted/tizen/6.0/unified/hotfix/20201103.050517accepted/tizen/6.0/unified/hotfix/20201102.234901accepted/tizen/6.0/unified/20201030.110027tizen_6.0_hotfixtizen_6.0sandbox/dh0128.kwak/libsolv_0.7.6sandbox/backup/libsolv-0.7.6_20201127accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unified
Change-Id: I9e10c7d84280edcbf43076ff7a17dd11343a04ed
-rw-r--r-- | packaging/libsolv.changes | 12 | ||||
-rw-r--r-- | packaging/libsolv.manifest | 5 | ||||
-rw-r--r-- | packaging/libsolv.spec | 158 |
3 files changed, 175 insertions, 0 deletions
diff --git a/packaging/libsolv.changes b/packaging/libsolv.changes new file mode 100644 index 0000000..430afe9 --- /dev/null +++ b/packaging/libsolv.changes @@ -0,0 +1,12 @@ +* Mon Aug 11 2014 Chanho Park <chanho61.park@samsung.com> upstream/0.6.4-8-gdd78215 +- Update to 0.6.4 + +* Thu Apr 11 2013 Anas Nashif <anas.nashif@intel.com> BASE-SuSE-Code-12_1-Branch@e3eb541 +- Update to 0.3.0 + +* Thu Feb 07 2013 Anas Nashif <anas.nashif@intel.com> submit/trunk/20130208.042515@708ff66 +- Cleanup spec per rpmlint + +* Thu Feb 07 2013 Anas Nashif <anas.nashif@intel.com> BASE-SuSE-Code-12_1-Branch@c0fc4d6 +- Update to 0.2.4 + diff --git a/packaging/libsolv.manifest b/packaging/libsolv.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/libsolv.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/libsolv.spec b/packaging/libsolv.spec new file mode 100644 index 0000000..c147c7d --- /dev/null +++ b/packaging/libsolv.spec @@ -0,0 +1,158 @@ +Name: libsolv +Version: 0.7.6 +Release: 0 +Url: https://github.com/openSUSE/libsolv +Source: libsolv-%{version}.tar.bz2 +Source1001: libsolv.manifest + +%bcond_without enable_static +%bcond_without perl_binding +%bcond_without python_binding + +BuildRequires: db4-devel +BuildRequires: expat-devel +BuildRequires: fdupes +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: rpm-devel +BuildRequires: zlib-devel + +%if %{with perl_binding} +BuildRequires: perl +BuildRequires: swig +%endif +%if %{with python_binding} +%global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True);") +BuildRequires: python-devel +BuildRequires: swig +%endif + +Summary: A new approach to package dependency solving +License: BSD-3-Clause +Group: System/Package Management + +%description +A new approach to package dependency solving. + +%package devel +Summary: A new approach to package dependency solving +Group: Development/Libraries +Requires: libsolv-tools = %version +Requires: libsolv = %version +Requires: rpm-devel + +%description devel +Development files for libsolv, a new approach to package dependency solving + +%package tools +Summary: A new approach to package dependency solving +Group: Development/Libraries +Obsoletes: satsolver-tools < 0.18 +Provides: satsolver-tools = 0.18 +Requires: gzip bzip2 coreutils findutils + +%description tools +A new approach to package dependency solving. + +%package -n python-solv +Requires: python +Summary: Python bindings for the libsolv library +Group: Platfrom Development/Python + +%description -n python-solv +Python bindings for sat solver. + +%package -n perl-solv +Requires: perl = %{perl_version} +Summary: Perl bindings for the libsolv library +Group: Platfrom Development/Perl + +%description -n perl-solv +Perl bindings for sat solver. + +%prep +%setup -n libsolv-%{version} +cp %{SOURCE1001} . + +%build +export CFLAGS="$RPM_OPT_FLAGS" +export CXXFLAGS="$CFLAGS" + +CMAKE_FLAGS= +CMAKE_FLAGS="-DSUSE=1" + +cmake $CMAKE_FLAGS \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DLIB=%{_lib} \ + -DCMAKE_VERBOSE_MAKEFILE=TRUE \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + %{?with_enable_static:-DENABLE_STATIC=1} \ + %{?with_perl_binding:-DENABLE_PERL=1} \ + %{?with_python_binding:-DENABLE_PYTHON=1} \ + -DUSE_VENDORDIRS=1 \ + -DCMAKE_SKIP_RPATH=1 +make %{?jobs:-j %jobs} + +%install +make DESTDIR=$RPM_BUILD_ROOT install +%if %{with python_binding} +pushd $RPM_BUILD_ROOT/%{python_sitearch} +python %py_libdir/py_compile.py *.py +python -O %py_libdir/py_compile.py *.py +popd +%endif +install -D -m0755 examples/repo2solv.sh %{buildroot}%{_bindir} + +%remove_docs +# we want to leave the .a file untouched +export NO_BRP_STRIP_DEBUG=true + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%manifest %{name}.manifest +%defattr(-,root,root) +%license LICENSE* +%{_libdir}/libsolv.so.* +%{_libdir}/libsolvext.so.* + +%files tools +%manifest %{name}.manifest +%defattr(-,root,root) +%{_bindir}/solv +%{_bindir}/* + +%files devel +%manifest %{name}.manifest +%defattr(-,root,root) +%{_libdir}/pkgconfig/libsolv.pc +%{_libdir}/pkgconfig/libsolvext.pc +%if %{with enable_static} +%{_libdir}/libsolv.a +%{_libdir}/libsolvext.a +%endif +%if !%{with disable_shared} +%{_libdir}/libsolv.so +%{_libdir}/libsolvext.so +%endif +%{_includedir}/solv +%{_bindir}/helix2solv +%{_datadir}/cmake/Modules/* + +%if %{with perl_binding} +%files -n perl-solv +%manifest %{name}.manifest +%defattr(-,root,root) +%{perl_vendorarch}/* +%endif + +%if %{with python_binding} +%files -n python-solv +%manifest %{name}.manifest +%defattr(-,root,root) +%{python_sitearch}/* +%endif + +%changelog |