3 %bcond_without apidocs # API documentation
4 %bcond_with rpm5 # rpm5 fork instead of rpm.org
5 %bcond_with zchunk # zchunk compression
7 Summary: Package management library
8 Summary(pl.UTF-8): Biblioteka do zarządzania pakietami
14 #Source0Download: https://github.com/openSUSE/libzypp/tags
15 Source0: https://github.com/openSUSE/libzypp/archive/%{version}/%{name}-%{version}.tar.gz
16 # Source0-md5: 018db968d114db936c79655f632f2bef
17 Patch0: %{name}-rpm5.patch
18 Patch1: %{name}-link.patch
19 URL: https://en.opensuse.org/Portal:Libzypp
20 BuildRequires: boost-devel
21 BuildRequires: cmake >= 3.1
22 BuildRequires: curl-devel
23 %{?with_apidocs:BuildRequires: doxygen}
24 BuildRequires: expat-devel >= 1.95
25 BuildRequires: gettext-tools
26 BuildRequires: glib2-devel >= 2.0
27 BuildRequires: gpgme-devel
28 BuildRequires: libproxy-devel
29 BuildRequires: libsigc++-devel >= 2.0
30 # with helixrepo enabled
31 BuildRequires: libsolv-devel >= 0.6.8
32 BuildRequires: libstdc++-devel >= 6:5
33 BuildRequires: libxml2-devel >= 2.0
34 BuildRequires: openssl-devel
35 BuildRequires: pkgconfig
36 BuildRequires: protobuf-devel >= 3.8.0
38 BuildRequires: rpm-devel >= 5
40 BuildRequires: rpm-devel >= 1:4.15
42 BuildRequires: udev-devel
43 BuildRequires: yaml-cpp-devel
44 %{?with_zchunk:BuildRequires: zchunk-devel}
45 BuildRequires: zlib-devel
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 libzypp is the package management library that powers applications
50 like YaST, zypper and the openSUSE/SLE implementation of PackageKit.
52 %description -l pl.UTF-8
53 libzypp to biblioteka do zarządzania pakietami wspomagająca aplikacje
54 takie jak YaST, zypper czy implementacja PackageKit wykorzystywana w
55 dystrybucjach openSUSE/SLE.
58 Summary: Header files for Zypp library
59 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Zypp
60 Group: Development/Libraries
61 Requires: %{name} = %{version}-%{release}
64 Requires: libsolv-devel >= 0.6.8
65 Requires: libstdc++-devel >= 6:5
66 Requires: libxml2-devel >= 2.0
68 Requires: rpm-devel >= 5
70 Requires: rpm-devel >= 1:4.15
74 Header files for Zypp library.
76 %description devel -l pl.UTF-8
77 Pliki nagłówkowe biblioteki Zypp.
80 Summary: Zypp API documentation
81 Summary(pl.UTF-8): Dokumentacja API biblioteki Zypp
85 API documentation for Zypp library.
87 %description apidocs -l pl.UTF-8
88 Dokumentacja API biblioteki Zypp.
100 # MEDIABACKEND_TESTS require nginx+fcgi+fcgi++
102 -DCMAKE_INSTALL_LIBDIR=%{_lib} \
103 %{?with_apidocs:-DENABLE_BUILD_DOCS=ON} \
104 -DENABLE_BUILD_TRANS=ON \
105 -DDISABLE_MEDIABACKEND_TESTS=ON \
106 %{?with_zchunk:-DENABLE_ZCHUNK_COMPRESSION=ON}
111 rm -rf $RPM_BUILD_ROOT
113 %{__make} -C build install \
114 DESTDIR=$RPM_BUILD_ROOT
116 %{__mv} $RPM_BUILD_ROOT%{_docdir}/packages/libzypp/libzypp/html $RPM_BUILD_ROOT%{_docdir}/libzypp-apidocs
117 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/packages/libzypp/libzypp/libzypp.doxytag
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
128 %defattr(644,root,root,755)
130 %dir %{_sysconfdir}/zypp
131 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/zypp/needreboot
132 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/zypp/systemCheck
133 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/zypp/zypp.conf
134 %config(noreplace) %verify(not mtime md5 size) /etc/logrotate.d/zypp-history.lr
135 %attr(755,root,root) %{_bindir}/zypp-CheckAccessDeleted
136 %attr(755,root,root) %{_bindir}/zypp-NameReqPrv
137 %attr(755,root,root) %{_libdir}/libzypp.so.*.*.*
138 %attr(755,root,root) %ghost %{_libdir}/libzypp.so.1722
139 %dir %{_libexecdir}/zypp
140 %attr(755,root,root) %{_libexecdir}/zypp/zypp-rpm
142 %{_mandir}/man1/zypp-CheckAccessDeleted.1*
143 %{_mandir}/man1/zypp-NameReqPrv.1*
144 %{_mandir}/man5/locks.5*
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_libdir}/libzypp.so
150 %{_includedir}/zypp-core
151 %{_includedir}/zypp-curl
152 %{_includedir}/zypp-media
153 %{_pkgconfigdir}/libzypp.pc
154 %{_datadir}/cmake/Modules/FindZypp.cmake
155 %{_datadir}/cmake/Modules/ZyppCommon.cmake
159 %defattr(644,root,root,755)
160 %{_docdir}/libzypp-apidocs