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