]>
Commit | Line | Data |
---|---|---|
c2386f48 ER |
1 | # TODO |
2 | # - "port" to jbj rpm, sigh | |
3 | #/usr/include/rpm/hdrinline.h:615:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'headerGetStartOff' | |
4 | #/usr/include/rpm/hdrinline.h:624:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'headerSetStartOff' | |
5 | #/usr/include/rpm/hdrinline.h:632:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'headerGetEndOff' | |
6 | #/usr/include/rpm/hdrinline.h:641:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'headerSetEndOff' | |
7 | Summary: Simple wrapper for rpm and the Fedora package metadata | |
8 | Name: zif | |
9 | Version: 0.1.5 | |
10 | Release: 0.1 | |
11 | License: GPL v2+ | |
12 | Group: Libraries | |
13 | URL: http://github.com/hughsie/zif | |
14 | Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.gz | |
15 | # Source0-md5: 7811aae553cb4d1f21648096a7e9a8d0 | |
16 | BuildRequires: bzip2-devel | |
17 | BuildRequires: docbook-utils | |
18 | BuildRequires: gettext | |
19 | BuildRequires: glib2-devel >= 1:2.16.1 | |
20 | BuildRequires: gnome-doc-utils | |
21 | BuildRequires: gpgme-devel | |
22 | BuildRequires: gtk-doc | |
23 | BuildRequires: intltool | |
24 | BuildRequires: libarchive-devel | |
25 | BuildRequires: libsoup-devel | |
26 | BuildRequires: libtool | |
27 | BuildRequires: rpm-devel | |
28 | BuildRequires: sqlite-devel | |
29 | BuildRequires: zlib-devel | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | Zif is a simple yum-compatible library that provides read-write access | |
34 | to the rpm database and the Fedora metadata for PackageKit. | |
35 | ||
36 | Zif is not designed as a replacement to yum, nor to be used by end | |
37 | users. | |
38 | ||
39 | %package devel | |
40 | Summary: GLib Libraries and headers for zif | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | Requires: bzip2-devel | |
44 | Requires: gpgme-devel | |
45 | Requires: zlib-devel | |
46 | ||
47 | %description devel | |
48 | GLib headers and libraries for zif. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | ||
53 | %build | |
54 | %configure \ | |
55 | --enable-gtk-doc \ | |
56 | --disable-static \ | |
57 | --disable-dependency-tracking | |
58 | %{__make} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | %{__make} install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
65 | rm -f $RPM_BUILD_ROOT%{_libdir}/libzif*.la | |
66 | ||
67 | %find_lang Zif | |
68 | ||
69 | %post -p /sbin/ldconfig | |
70 | %postun -p /sbin/ldconfig | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files -f Zif.lang | |
76 | %defattr(644,root,root,755) | |
77 | %doc README AUTHORS NEWS | |
78 | %{_sysconfdir}/bash_completion.d/*-completion.bash | |
79 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zif/zif.conf | |
80 | %attr(755,root,root) %{_bindir}/zif | |
81 | %{_libdir}/*libzif*.so.* | |
82 | %{_mandir}/man1/*.1* | |
83 | %dir %{_sysconfdir}/zif | |
84 | ||
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %{_libdir}/libzif*.so | |
88 | %{_pkgconfigdir}/zif.pc | |
89 | %dir %{_includedir}/libzif | |
90 | %{_includedir}/libzif/*.h | |
91 | %{_datadir}/gtk-doc |