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