]>
Commit | Line | Data |
---|---|---|
c2386f48 | 1 | Summary: Simple wrapper for rpm and the Fedora package metadata |
8a9884f2 | 2 | Summary(pl.UTF-8): Proste opakowanie dla rpm-a i metadanych pakietów Fedory |
c2386f48 | 3 | Name: zif |
8a9884f2 | 4 | Version: 0.2.3 |
c2386f48 ER |
5 | Release: 0.1 |
6 | License: GPL v2+ | |
7 | Group: Libraries | |
8a9884f2 JB |
8 | Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 67822a86a12fd90961c02b80616fa909 | |
10 | Patch0: %{name}-rpm5.patch | |
11 | Patch1: %{name}-link.patch | |
c2386f48 | 12 | URL: http://github.com/hughsie/zif |
8a9884f2 JB |
13 | BuildRequires: autoconf >= 2.63 |
14 | BuildRequires: automake >= 1:1.9 | |
c2386f48 ER |
15 | BuildRequires: bzip2-devel |
16 | BuildRequires: docbook-utils | |
8a9884f2 | 17 | BuildRequires: gettext-devel |
c2386f48 ER |
18 | BuildRequires: glib2-devel >= 1:2.16.1 |
19 | BuildRequires: gnome-doc-utils | |
20 | BuildRequires: gpgme-devel | |
8a9884f2 JB |
21 | BuildRequires: gtk-doc >= 1.9 |
22 | BuildRequires: intltool >= 0.35.0 | |
c2386f48 | 23 | BuildRequires: libarchive-devel |
8a9884f2 JB |
24 | BuildRequires: libsoup-devel >= 2.4 |
25 | BuildRequires: libtool >= 2:2 | |
26 | BuildRequires: rpm-devel >= 5 | |
27 | BuildRequires: sqlite3-devel >= 3 | |
28 | BuildRequires: tar >= 1:1.22 | |
29 | BuildRequires: xz | |
c2386f48 | 30 | BuildRequires: zlib-devel |
8a9884f2 | 31 | Requires: glib2 >= 1:2.16.1 |
c2386f48 ER |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | Zif is a simple yum-compatible library that provides read-write access | |
36 | to the rpm database and the Fedora metadata for PackageKit. | |
37 | ||
38 | Zif is not designed as a replacement to yum, nor to be used by end | |
39 | users. | |
40 | ||
8a9884f2 JB |
41 | %description -l pl.UTF-8 |
42 | Zif to prosta biblioteka kompatybilna z yumem, dająca dostęp w trybie | |
43 | odczytu i zapisu do bazy danych rpm-a oraz metadanych Fedory dla | |
44 | PackageKita. | |
45 | ||
46 | Zif nie jest projektowany jako zamiennik yuma, ani nie jest | |
47 | przeznaczony dla użytkowników końcowych. | |
48 | ||
c2386f48 | 49 | %package devel |
8a9884f2 JB |
50 | Summary: Header files for Zif library |
51 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Zif | |
c2386f48 ER |
52 | Group: Development/Libraries |
53 | Requires: %{name} = %{version}-%{release} | |
54 | Requires: bzip2-devel | |
8a9884f2 | 55 | Requires: glib2-devel >= 1:2.16.1 |
c2386f48 ER |
56 | Requires: gpgme-devel |
57 | Requires: zlib-devel | |
58 | ||
59 | %description devel | |
8a9884f2 JB |
60 | Header files for Zif library. |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe biblioteki Zif. | |
64 | ||
65 | %package static | |
66 | Summary: Static Zif library | |
67 | Summary(pl.UTF-8): Statyczna biblioteka Zif | |
68 | Group: Development/Libraries | |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
72 | Static Zif library. | |
73 | ||
74 | %description static -l pl.UTF-8 | |
75 | Statyczna biblioteka Zif. | |
76 | ||
77 | %package apidocs | |
78 | Summary: Zif API documentation | |
79 | Summary(pl.UTF-8): Dokumentacja API biblioteki Zif | |
80 | Group: Documentation | |
81 | ||
82 | %description apidocs | |
83 | Zif API documentation. | |
84 | ||
85 | %description apidocs -l pl.UTF-8 | |
86 | Dokumentacja API biblioteki Zif. | |
87 | ||
88 | %package -n bash-completion-zif | |
89 | Summary: Bash completion for zif command | |
90 | Summary(pl.UTF-8): Bashowe dopełnianie parametrów dla polecenia zif | |
91 | Group: Applications/Shells | |
92 | Requires: %{name} = %{version}-%{release} | |
93 | Requires: bash-completion | |
94 | ||
95 | %description -n bash-completion-zif | |
96 | Bash completion for zif command. | |
97 | ||
98 | %description -n bash-completion-zif -l pl.UTF-8 | |
99 | Bashowe dopełnianie parametrów dla polecenia zif. | |
c2386f48 ER |
100 | |
101 | %prep | |
102 | %setup -q | |
8a9884f2 JB |
103 | %patch0 -p1 |
104 | %patch1 -p1 | |
c2386f48 ER |
105 | |
106 | %build | |
8a9884f2 JB |
107 | %{__libtoolize} |
108 | %{__aclocal} -I m4 | |
109 | %{__autoconf} | |
110 | %{__autoheader} | |
111 | %{__automake} | |
c2386f48 | 112 | %configure \ |
f16649de JB |
113 | --disable-silent-rules \ |
114 | --with-html-dir=%{_gtkdocdir} | |
8a9884f2 JB |
115 | # --enable-gtk-doc is broken (as of 0.2.3) |
116 | ||
c2386f48 ER |
117 | %{__make} |
118 | ||
119 | %install | |
120 | rm -rf $RPM_BUILD_ROOT | |
8a9884f2 | 121 | |
c2386f48 ER |
122 | %{__make} install \ |
123 | DESTDIR=$RPM_BUILD_ROOT | |
124 | ||
8a9884f2 JB |
125 | # obsoleted by pkg-config |
126 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libzif.la | |
c2386f48 ER |
127 | |
128 | %find_lang Zif | |
129 | ||
130 | %post -p /sbin/ldconfig | |
131 | %postun -p /sbin/ldconfig | |
132 | ||
133 | %clean | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %files -f Zif.lang | |
137 | %defattr(644,root,root,755) | |
f16649de | 138 | %doc AUTHORS NEWS README |
c2386f48 | 139 | %attr(755,root,root) %{_bindir}/zif |
8a9884f2 JB |
140 | %attr(755,root,root) %{_libdir}/libzif.so.*.*.* |
141 | %attr(755,root,root) %ghost %{_libdir}/libzif.so.3 | |
c2386f48 | 142 | %dir %{_sysconfdir}/zif |
8a9884f2 JB |
143 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zif/zif.conf |
144 | %{_mandir}/man1/zif.1* | |
c2386f48 ER |
145 | |
146 | %files devel | |
147 | %defattr(644,root,root,755) | |
8a9884f2 JB |
148 | %attr(755,root,root) %{_libdir}/libzif.so |
149 | %{_includedir}/libzif | |
c2386f48 | 150 | %{_pkgconfigdir}/zif.pc |
8a9884f2 JB |
151 | |
152 | %files static | |
153 | %defattr(644,root,root,755) | |
154 | %{_libdir}/libzif.a | |
155 | ||
156 | %files apidocs | |
157 | %defattr(644,root,root,755) | |
158 | %{_gtkdocdir}/zif | |
159 | ||
160 | %files -n bash-completion-zif | |
161 | %defattr(644,root,root,755) | |
162 | /etc/bash_completion.d/zif-completion.bash |