2 # spec file for package libzypp
4 # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
5 # This file and all modifications and additions to the pristine
6 # package are under the same license as the package itself.
8 # Please submit bugfixes or comments via http://bugs.opensuse.org/
14 License: GPL v2 or later
15 Group: System/Packages
16 BuildRoot: %{_tmppath}/%{name}-%{version}-build
18 Summary: Package, Patch, Pattern, and Product Management
21 Source: @PACKAGE@-@VERSION@.tar.bz2
22 Source1: @PACKAGE@-rpmlintrc
24 Provides: yast2-packagemanager
25 Obsoletes: yast2-packagemanager
27 BuildRequires: libsatsolver-devel openssl-devel
28 BuildRequires: boost-devel curl-devel dejagnu doxygen gcc-c++ gettext-devel graphviz hal-devel libxml2-devel rpm-devel
31 BuildRequires: hicolor-icon-theme update-desktop-files
34 %if 0%{?mandriva_version}
35 BuildRequires: sqlite3-devel
37 BuildRequires: sqlite-devel
48 Requires: satsolver-tools == %( echo `rpm -q --queryformat '%{VERSION}' satsolver-tools`)
51 Package, Patch, Pattern, and Product Management
55 Michael Andres <ma@suse.de>
56 Jiri Srain <jsrain@suse.cz>
57 Stefan Schubert <schubi@suse.de>
58 Duncan Mac-Vicar <dmacvicar@suse.de>
59 Klaus Kaempf <kkaempf@suse.de>
60 Marius Tomaschewski <mt@suse.de>
61 Stanislav Visnovsky <visnov@suse.cz>
62 Ladislav Slezak <lslezak@suse.cz>
65 Requires: libzypp == @VERSION@
66 Requires: libxml2-devel curl-devel openssl-devel rpm-devel glibc-devel zlib-devel
67 Requires: bzip2 popt-devel dbus-1-devel glib2-devel hal-devel boost-devel libstdc++-devel
68 Requires: cmake libsatsolver-devel
69 Summary: Package, Patch, Pattern, and Product Management - developers files
70 Group: System/Packages
71 Provides: yast2-packagemanager-devel
72 Obsoletes: yast2-packagemanager-devel
74 %description -n libzypp-devel
75 Package, Patch, Pattern, and Product Management - developers files
79 Michael Andres <ma@suse.de>
80 Jiri Srain <jsrain@suse.cz>
81 Stefan Schubert <schubi@suse.de>
82 Duncan Mac-Vicar <dmacvicar@suse.de>
83 Klaus Kaempf <kkaempf@suse.de>
84 Marius Tomaschewski <mt@suse.de>
85 Stanislav Visnovsky <visnov@suse.cz>
86 Ladislav Slezak <lslezak@suse.cz>
94 cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
96 -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
97 -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
98 -DCMAKE_BUILD_TYPE=Release \
99 -DCMAKE_SKIP_RPATH=1 \
101 make %{?jobs:-j %jobs} VERBOSE=1
102 make -C doc/autodoc %{?jobs:-j %jobs}
103 make -C po %{?jobs:-j %jobs} translations
109 make install DESTDIR=$RPM_BUILD_ROOT
110 make -C doc/autodoc install DESTDIR=$RPM_BUILD_ROOT
111 mkdir -p $RPM_BUILD_ROOT/etc/zypp/repos.d
112 %suse_update_desktop_file -G "" -C "" package-manager
113 make -C po install DESTDIR=$RPM_BUILD_ROOT
114 # Create filelist with translations
121 if [ -f /var/cache/zypp/zypp.db ]; then rm /var/cache/zypp/zypp.db; fi
122 #%{prefix}/lib/zypp/zypp-migrate-sources
130 %defattr(-,root,root)
132 %dir /etc/zypp/repos.d
133 %config(noreplace) /etc/zypp/zypp.conf
136 %{prefix}/share/applications/package-manager.desktop
137 %{prefix}/share/icons/hicolor/scalable/apps/package-manager-icon.svg
138 %{prefix}/share/icons/hicolor/16x16/apps/package-manager-icon.png
139 %{prefix}/share/icons/hicolor/32x32/apps/package-manager-icon.png
140 %{prefix}/share/icons/hicolor/48x48/apps/package-manager-icon.png
141 %{prefix}/bin/package-manager
142 %{prefix}/bin/package-manager-su
143 %{_libdir}/libzypp*so.*
146 %defattr(-,root,root)
147 %{_libdir}/libzypp.so
148 #%dir %{_libdir}/libzypp.la
150 %dir %{prefix}/include/zypp
151 %{prefix}/include/zypp/*
152 %{prefix}/share/cmake/Modules/*
153 %{_libdir}/pkgconfig/libzypp.pc