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