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: b21539939f0b885b633914ba00c4e1af
17 Patch0: %{name}-rpm5.patch
18 Patch1: %{name}-link.patch
19 Patch2: %{name}-gpgme-pkgconfig.patch
20 URL: https://en.opensuse.org/Portal:Libzypp
21 BuildRequires: boost-devel
22 BuildRequires: cmake >= 3.1
23 BuildRequires: curl-devel
24 %{?with_apidocs:BuildRequires: doxygen}
25 BuildRequires: expat-devel >= 1.95
26 BuildRequires: gettext-tools
27 BuildRequires: glib2-devel >= 2.0
28 BuildRequires: gpgme-devel
29 BuildRequires: libproxy-devel
30 BuildRequires: libsigc++-devel >= 2.0
31 # with helixrepo enabled
32 BuildRequires: libsolv-devel >= 0.6.8
33 BuildRequires: libstdc++-devel >= 6:5
34 BuildRequires: libxml2-devel >= 2.0
35 BuildRequires: openssl-devel
36 BuildRequires: pkgconfig
37 BuildRequires: protobuf-devel >= 3.8.0
39 BuildRequires: rpm-devel >= 5
41 BuildRequires: rpm-devel >= 1:4.15
43 BuildRequires: udev-devel
44 BuildRequires: yaml-cpp-devel
45 %{?with_zchunk:BuildRequires: zchunk-devel}
46 BuildRequires: zlib-devel
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 libzypp is the package management library that powers applications
51 like YaST, zypper and the openSUSE/SLE implementation of PackageKit.
53 %description -l pl.UTF-8
54 libzypp to biblioteka do zarządzania pakietami wspomagająca aplikacje
55 takie jak YaST, zypper czy implementacja PackageKit wykorzystywana w
56 dystrybucjach openSUSE/SLE.
59 Summary: Header files for Zypp library
60 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Zypp
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
65 Requires: libsolv-devel >= 0.6.8
66 Requires: libstdc++-devel >= 6:5
67 Requires: libxml2-devel >= 2.0
69 Requires: rpm-devel >= 5
71 Requires: rpm-devel >= 1:4.15
75 Header files for Zypp library.
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe biblioteki Zypp.
81 Summary: Zypp API documentation
82 Summary(pl.UTF-8): Dokumentacja API biblioteki Zypp
86 API documentation for Zypp library.
88 %description apidocs -l pl.UTF-8
89 Dokumentacja API biblioteki Zypp.
102 # MEDIABACKEND_TESTS require nginx+fcgi+fcgi++
104 -DCMAKE_INSTALL_LIBDIR=%{_lib} \
105 %{?with_apidocs:-DENABLE_BUILD_DOCS=ON} \
106 -DENABLE_BUILD_TRANS=ON \
107 -DDISABLE_MEDIABACKEND_TESTS=ON \
108 %{?with_zchunk:-DENABLE_ZCHUNK_COMPRESSION=ON}
113 rm -rf $RPM_BUILD_ROOT
115 %{__make} -C build install \
116 DESTDIR=$RPM_BUILD_ROOT
118 %{__mv} $RPM_BUILD_ROOT%{_docdir}/packages/libzypp/libzypp/html $RPM_BUILD_ROOT%{_docdir}/libzypp-apidocs
119 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/packages/libzypp/libzypp/libzypp.doxytag
124 rm -rf $RPM_BUILD_ROOT
126 %post -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
130 %defattr(644,root,root,755)
132 %dir %{_sysconfdir}/zypp
133 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/zypp/needreboot
134 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/zypp/systemCheck
135 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/zypp/zypp.conf
136 %config(noreplace) %verify(not mtime md5 size) /etc/logrotate.d/zypp-history.lr
137 %attr(755,root,root) %{_bindir}/zypp-CheckAccessDeleted
138 %attr(755,root,root) %{_bindir}/zypp-NameReqPrv
139 %attr(755,root,root) %{_libdir}/libzypp.so.*.*.*
140 %attr(755,root,root) %ghost %{_libdir}/libzypp.so.1722
141 %dir %{_libexecdir}/zypp
142 %attr(755,root,root) %{_libexecdir}/zypp/zypp-rpm
144 %{_mandir}/man1/zypp-CheckAccessDeleted.1*
145 %{_mandir}/man1/zypp-NameReqPrv.1*
146 %{_mandir}/man5/locks.5*
149 %defattr(644,root,root,755)
150 %attr(755,root,root) %{_libdir}/libzypp.so
152 %{_includedir}/zypp-core
153 %{_includedir}/zypp-curl
154 %{_includedir}/zypp-media
155 %{_pkgconfigdir}/libzypp.pc
156 %{_datadir}/cmake/Modules/FindZypp.cmake
157 %{_datadir}/cmake/Modules/ZyppCommon.cmake
161 %defattr(644,root,root,755)
162 %{_docdir}/libzypp-apidocs