]>
Commit | Line | Data |
---|---|---|
08ba24e9 JB |
1 | Summary: GLib Objects and helper methods for reading and writing AppStream metadata |
2 | Summary(pl.UTF-8): Obiekty GLiba i metody pomocnicze do odczytu i zapisu metadanych AppStream | |
3 | Name: appstream-glib | |
b715399e | 4 | Version: 0.2.6 |
08ba24e9 JB |
5 | Release: 1 |
6 | License: LGPL v2.1+ | |
7 | Group: Libraries | |
8 | Source0: http://people.freedesktop.org/~hughsient/appstream-glib/releases/%{name}-%{version}.tar.xz | |
b715399e | 9 | # Source0-md5: 2a86155462ef49747ca6f27f857aa1a9 |
77502258 JB |
10 | Patch0: %{name}-rpm5.patch |
11 | Patch1: %{name}-pc.patch | |
08ba24e9 | 12 | URL: http://people.freedesktop.org/~hughsient/appstream-glib/ |
77502258 JB |
13 | BuildRequires: autoconf >= 2.63 |
14 | BuildRequires: automake >= 1:1.9 | |
15 | BuildRequires: docbook-dtd43-xml | |
16 | BuildRequires: docbook-style-xsl | |
a4e4c62e | 17 | BuildRequires: fontconfig-devel |
ddc36cbe JB |
18 | # pkgconfig(freetype2) >= 9.10.0 |
19 | BuildRequires: freetype-devel >= 1:2.2.1 | |
08ba24e9 | 20 | BuildRequires: gdk-pixbuf2-devel >= 2.14 |
77502258 | 21 | BuildRequires: gettext-devel >= 0.17 |
08ba24e9 JB |
22 | BuildRequires: glib2-devel >= 1:2.16.1 |
23 | BuildRequires: gobject-introspection-devel >= 0.9.8 | |
24 | BuildRequires: gperf | |
25 | BuildRequires: gtk-doc >= 1.9 | |
77502258 | 26 | BuildRequires: gtk+3-devel >= 3.0 |
a4e4c62e | 27 | BuildRequires: intltool >= 0.40.0 |
08ba24e9 JB |
28 | BuildRequires: libarchive-devel |
29 | BuildRequires: libsoup-devel >= 2.24 | |
30 | BuildRequires: libstdc++-devel | |
77502258 JB |
31 | BuildRequires: libtool >= 2:2 |
32 | BuildRequires: libxslt-progs | |
a4e4c62e | 33 | BuildRequires: pango-devel |
08ba24e9 | 34 | BuildRequires: pkgconfig |
77502258 JB |
35 | BuildRequires: rpm-devel >= 4.5 |
36 | BuildRequires: sqlite3-devel | |
08ba24e9 JB |
37 | BuildRequires: tar >= 1:1.22 |
38 | BuildRequires: xz | |
39 | Requires: glib2 >= 1:2.16.1 | |
40 | Requires: gdk-pixbuf2 >= 2.14 | |
41 | Requires: libsoup >= 2.24 | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | AppStream-Glib library provides GObjects and helper methods to make it | |
46 | easy to read and write AppStream metadata. It also provides a simple | |
47 | DOM implementation that makes it easy to edit nodes and convert to and | |
48 | from the standardized XML representation. | |
49 | ||
50 | %description -l pl.UTF-8 | |
51 | Biblioteka AppStream-Glib dostarcza obiekty GLiba (GObject) oraz | |
52 | metody pomocnicze ułatwiające odczyt i zapis metadanych AppStream. | |
53 | Zapewnia także prostą implementację DOM ułatwiającą modyfikowanie | |
54 | węzłów i konwersję do i ze standardowej reprezentacji XML. | |
55 | ||
56 | %package devel | |
57 | Summary: Header files for appstream-glib library | |
58 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki appstream-glib | |
59 | Group: Development/Libraries | |
60 | Requires: %{name} = %{version}-%{release} | |
61 | Requires: gdk-pixbuf2-devel >= 2.14 | |
62 | Requires: glib2-devel >= 1:2.16.1 | |
63 | ||
64 | %description devel | |
65 | Header files for appstream-glib library. | |
66 | ||
67 | %description devel -l pl.UTF-8 | |
68 | Pliki nagłówkowe biblioteki appstream-glib. | |
69 | ||
70 | %package static | |
71 | Summary: Static appstream-glib library | |
72 | Summary(pl.UTF-8): Statyczna biblioteka appstream-glib | |
73 | Group: Development/Libraries | |
74 | Requires: %{name}-devel = %{version}-%{release} | |
75 | ||
76 | %description static | |
77 | Static appstream-glib library. | |
78 | ||
79 | %description static -l pl.UTF-8 | |
80 | Statyczna biblioteka appstream-glib. | |
81 | ||
82 | %package apidocs | |
83 | Summary: appstream-glib API documentation | |
84 | Summary(pl.UTF-8): Dokumentacja API biblioteki appstream-glib | |
85 | Group: Documentation | |
86 | ||
87 | %description apidocs | |
88 | API documentation for appstream-glib library. | |
89 | ||
90 | %description apidocs -l pl.UTF-8 | |
91 | Dokumentacja API biblioteki appstream-glib. | |
92 | ||
77502258 JB |
93 | %package -n bash-completion-appstream-glib |
94 | Summary: Bash completion for appstream-glib package | |
95 | Summary(pl.UTF-8): Bashowe dopełnianie składni dla pakietu appstream-glib | |
96 | Group: Applications/Shells | |
97 | Requires: %{name} = %{version}-%{release} | |
98 | Requires: bash-completion >= 2.0 | |
99 | ||
100 | %description -n bash-completion-appstream-glib | |
101 | Bash completion for appstream-util command. | |
102 | ||
103 | %description -n bash-completion-appstream-glib -l pl.UTF-8 | |
104 | Bashowe dopełnianie składni polecenia appstream-util. | |
105 | ||
106 | %package -n appstream-builder | |
107 | Summary: AppStreamBuilder library to create AppStream metadata from packages | |
108 | Summary(pl.UTF-8): Biblioteka AppStreamBuilder tworząca metadane AppStream z pakietów | |
109 | Group: Libraries | |
110 | Requires: %{name} = %{version}-%{release} | |
ddc36cbe | 111 | Requires: freetype >= 1:2.2.1 |
77502258 JB |
112 | |
113 | %description -n appstream-builder | |
114 | AppStreamBuilder library to create AppStream metadata from packages. | |
115 | ||
116 | %description -n appstream-builder -l pl.UTF-8 | |
117 | Biblioteka AppStreamBuilder tworząca metadane AppStream z pakietów. | |
118 | ||
119 | %package -n appstream-builder-devel | |
120 | Summary: Header files for AppStreamBuilder library | |
121 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AppStreamBuilder | |
122 | Group: Development/Libraries | |
123 | Requires: %{name}-devel = %{version}-%{release} | |
124 | Requires: appstream-builder = %{version}-%{release} | |
125 | ||
126 | %description -n appstream-builder-devel | |
127 | Header files for AppStreamBuilder library. | |
128 | ||
129 | %description -n appstream-builder-devel -l pl.UTF-8 | |
130 | Pliki nagłówkowe biblioteki AppStreamBuilder. | |
131 | ||
132 | %package -n appstream-builder-static | |
133 | Summary: Static AppStreamBuilder library | |
134 | Summary(pl.UTF-8): Statyczna biblioteka AppStreamBuilder | |
135 | Group: Development/Libraries | |
136 | Requires: appstream-builder-devel = %{version}-%{release} | |
137 | ||
138 | %description -n appstream-builder-static | |
139 | Static AppStreamBuilder library. | |
140 | ||
141 | %description -n appstream-builder-static -l pl.UTF-8 | |
142 | Statyczna biblioteka AppStreamBuilder. | |
143 | ||
144 | %package -n bash-completion-appstream-builder | |
145 | Summary: Bash completion for appstream-builder package | |
146 | Summary(pl.UTF-8): Bashowe dopełnianie składni dla pakietu appstream-builder | |
147 | Group: Applications/Shells | |
148 | Requires: appstream-builder = %{version}-%{release} | |
149 | Requires: bash-completion >= 2.0 | |
150 | ||
151 | %description -n bash-completion-appstream-builder | |
152 | Bash completion for appstream-builder command. | |
153 | ||
154 | %description -n bash-completion-appstream-builder -l pl.UTF-8 | |
155 | Bashowe dopełnianie składni polecenia appstream-builder. | |
156 | ||
08ba24e9 JB |
157 | %prep |
158 | %setup -q | |
77502258 JB |
159 | %patch0 -p1 |
160 | %patch1 -p1 | |
08ba24e9 JB |
161 | |
162 | %build | |
77502258 JB |
163 | %{__libtoolize} |
164 | %{__aclocal} -I m4 | |
165 | %{__autoconf} | |
166 | %{__autoheader} | |
167 | %{__automake} | |
08ba24e9 JB |
168 | %configure \ |
169 | --disable-silent-rules \ | |
170 | --with-html-dir=%{_gtkdocdir} | |
171 | %{__make} | |
172 | ||
173 | %install | |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
176 | %{__make} install \ | |
177 | DESTDIR=$RPM_BUILD_ROOT | |
178 | ||
77502258 JB |
179 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/asb-plugins/lib*.{la,a} |
180 | ||
08ba24e9 | 181 | # obsoleted by pkg-config |
77502258 | 182 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libappstream-*.la |
08ba24e9 | 183 | |
a4e4c62e JB |
184 | %find_lang %{name} |
185 | ||
08ba24e9 JB |
186 | %clean |
187 | rm -rf $RPM_BUILD_ROOT | |
188 | ||
189 | %post -p /sbin/ldconfig | |
190 | %postun -p /sbin/ldconfig | |
191 | ||
77502258 JB |
192 | %post -n appstream-builder -p /sbin/ldconfig |
193 | %postun -n appstream-builder -p /sbin/ldconfig | |
194 | ||
a4e4c62e | 195 | %files -f %{name}.lang |
08ba24e9 JB |
196 | %defattr(644,root,root,755) |
197 | %doc AUTHORS MAINTAINERS NEWS README.md | |
198 | %attr(755,root,root) %{_bindir}/appstream-util | |
199 | %attr(755,root,root) %{_libdir}/libappstream-glib.so.*.*.* | |
200 | %attr(755,root,root) %ghost %{_libdir}/libappstream-glib.so.1 | |
201 | %{_libdir}/girepository-1.0/AppStreamGlib-1.0.typelib | |
77502258 | 202 | %{_mandir}/man1/appstream-util.1* |
08ba24e9 JB |
203 | |
204 | %files devel | |
205 | %defattr(644,root,root,755) | |
206 | %attr(755,root,root) %{_libdir}/libappstream-glib.so | |
207 | %{_datadir}/gir-1.0/AppStreamGlib-1.0.gir | |
208 | %{_includedir}/libappstream-glib | |
209 | %{_pkgconfigdir}/appstream-glib.pc | |
77502258 | 210 | %{_aclocaldir}/appstream-xml.m4 |
08ba24e9 JB |
211 | |
212 | %files static | |
213 | %defattr(644,root,root,755) | |
214 | %{_libdir}/libappstream-glib.a | |
215 | ||
77502258 JB |
216 | %files -n bash-completion-appstream-glib |
217 | %defattr(644,root,root,755) | |
218 | %{_datadir}/bash-completion/completions/appstream-util | |
219 | ||
08ba24e9 JB |
220 | %files apidocs |
221 | %defattr(644,root,root,755) | |
222 | %{_gtkdocdir}/appstream-glib | |
77502258 JB |
223 | |
224 | %files -n appstream-builder | |
225 | %defattr(644,root,root,755) | |
226 | %attr(755,root,root) %{_bindir}/appstream-builder | |
227 | %attr(755,root,root) %{_libdir}/libappstream-builder.so.*.*.* | |
228 | %attr(755,root,root) %ghost %{_libdir}/libappstream-builder.so.1 | |
229 | %{_libdir}/girepository-1.0/AppStreamBuilder-1.0.typelib | |
230 | %dir %{_libdir}/asb-plugins | |
a4e4c62e | 231 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_absorb.so |
77502258 JB |
232 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_appdata.so |
233 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_blacklist.so | |
b715399e | 234 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_dbus.so |
77502258 JB |
235 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_desktop.so |
236 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_font.so | |
237 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_gettext.so | |
238 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_gir.so | |
b715399e | 239 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_gresource.so |
77502258 JB |
240 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_gstreamer.so |
241 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_hardcoded.so | |
242 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_ibus_sql.so | |
243 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_ibus_xml.so | |
a4e4c62e JB |
244 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_kde_notifyrc.so |
245 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_kde_services.so | |
77502258 JB |
246 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_metainfo.so |
247 | %attr(755,root,root) %{_libdir}/asb-plugins/libasb_plugin_nm.so | |
248 | %{_mandir}/man1/appstream-builder.1* | |
249 | ||
250 | %files -n appstream-builder-devel | |
251 | %defattr(644,root,root,755) | |
252 | %attr(755,root,root) %{_libdir}/libappstream-builder.so | |
253 | %{_includedir}/libappstream-builder | |
254 | %{_datadir}/gir-1.0/AppStreamBuilder-1.0.gir | |
255 | %{_pkgconfigdir}/appstream-builder.pc | |
256 | ||
257 | %files -n appstream-builder-static | |
258 | %defattr(644,root,root,755) | |
259 | %{_libdir}/libappstream-builder.a | |
260 | ||
261 | %files -n bash-completion-appstream-builder | |
262 | %defattr(644,root,root,755) | |
263 | %{_datadir}/bash-completion/completions/appstream-builder |