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