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