selection data access (YUM does not compile yet)
[platform/upstream/libzypp.git] / libzypp.spec
1 #
2 # spec file for package libzypp (Version 1.9.1)
3 #
4 # Copyright (c) 2006 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.
7 #
8 # Please submit bugfixes or comments via http://bugs.opensuse.org
9 #
10
11 # norootforbuild
12 # neededforbuild  gpp libgpp boost boost-devel doxygen graphviz gettext-devel tcl expect dejagnu pkgconfig expat zlib zlib-devel libxml2 libxml2-devel curl curl-devel dbus-1 dbus-1-glib dbus-1-devel hal hal-devel fontconfig freetype2 libjpeg libpng  glib2 glib2-devel rpm-devel popt popt-devel openssl openssl-devel libicu
13
14 BuildRequires: binutils gcc gcc-c++ glibc-devel libstdc++ libstdc++-devel boost-devel doxygen graphviz gettext-devel dejagnu pkgconfig expat zlib-devel libxml2-devel curl-devel dbus-1-devel hal-devel glib2 glib2-devel rpm-devel
15
16 Name:         libzypp
17 License:      GNUv2
18 Group:        System/Libraries
19 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
20 Autoreqprov:  on
21 Obsoletes:    yast2-packagemanager
22 Summary:      Package, Patch, Pattern, Product Management
23 Version:      0.0.0
24 Release:      0
25 Source:       zypp-0.0.0.tar.bz2
26 prefix:       /usr
27
28 %description
29 We are ZYPP, you will be assimilated.
30
31 %package devel
32 Requires:     libzypp = %{version}
33 Summary:      Package, Patch, Pattern, Product Management - development files
34 Group:        Development/Libraries/C and C++
35
36 %description -n libzypp-devel
37 We are ZYPP, you will be assimilated.
38
39 %prep
40 %setup -q -n zypp-0.0.0
41
42 %build
43 mv configure.ac x
44 grep -v devel/ x > configure.ac
45 autoreconf --force --install --symlink --verbose
46 %{?suse_update_config:%{suse_update_config -f}}
47 ./configure --prefix=%{prefix} --libdir=%{_libdir} --mandir=%{_mandir} --disable-static
48 make %{?jobs:-j %jobs}
49 make check
50
51 %install
52 make install DESTDIR=$RPM_BUILD_ROOT
53
54 %post
55 %run_ldconfig
56
57 %postun
58 %run_ldconfig
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(-,root,root)
65 %dir %{_libdir}/libzypp*so.*
66
67 %files devel
68 %defattr(-,root,root)
69 %dir %{_libdir}/libzypp.so
70 %dir %{_libdir}/libzypp.la
71 %dir %{_docdir}/zypp
72 %{_docdir}/zypp/*
73 %dir %{prefix}/include/zypp
74 %{prefix}/include/zypp/*
75 %dir %{prefix}/share/zypp
76 %{prefix}/share/zypp/*