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