From 15ec47b0cded2d657a7045b638961189395a5ec1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:48:46 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.6.34-1mamba;Thu May 17 2018] --- README.md | 2 ++ libsolv.spec | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 libsolv.spec diff --git a/README.md b/README.md index c24b2da..4c88412 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libsolv +Library for solving packages and reading repositories. + diff --git a/libsolv.spec b/libsolv.spec new file mode 100644 index 0000000..91bc347 --- /dev/null +++ b/libsolv.spec @@ -0,0 +1,96 @@ +Name: libsolv +Version: 0.6.34 +Release: 1mamba +Summary: Library for solving packages and reading repositories +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://en.opensuse.org/openSUSE:Libzypp_satsolver +Source: https://github.com/openSUSE/libsolv.git/%{version}/libsolv-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Library for solving packages and reading repositories. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: Applications/Development +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +cp ext/*.h %{buildroot}%{_includedir}/solv/ + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libsolv.so.* +%{_libdir}/libsolvext.so.* +%doc CREDITS + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/solv +%{_includedir}/solv/* +%{_libdir}/libsolv.so +%{_libdir}/libsolvext.so +%{_libdir}/pkgconfig/libsolv.pc +%{_libdir}/pkgconfig/libsolvext.pc +%{_datadir}/cmake/Modules/FindLibSolv.cmake +%{_mandir}/man3/libsolv-bindings.3* +%{_mandir}/man3/libsolv-constantids.3* +%{_mandir}/man3/libsolv-history.3* +%{_mandir}/man3/libsolv-pool.3* +%{_mandir}/man3/libsolv.3* +%doc BUGS NEWS README + +%files tools +%defattr(-,root,root) +%{_bindir}/dumpsolv +%{_bindir}/installcheck +%{_bindir}/mergesolv +%{_bindir}/repo2solv.sh +%{_bindir}/testsolv +%{_mandir}/man1/dumpsolv.1* +%{_mandir}/man1/installcheck.1* +%{_mandir}/man1/mergesolv.1* +%{_mandir}/man1/testsolv.1* + +%changelog +* Thu May 17 2018 Silvan Calarco 0.6.34-1mamba +- package created using the webbuild interface