]> git.pld-linux.org Git - packages/appstream-glib.git/blame - appstream-glib.spec
- updated to 0.5.5
[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
dc0e2239 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
cc2c9f16
ŁK
9Version: 0.5.5
10Release: 1
08ba24e9
JB
11License: LGPL v2.1+
12Group: Libraries
13Source0: http://people.freedesktop.org/~hughsient/appstream-glib/releases/%{name}-%{version}.tar.xz
cc2c9f16 14# Source0-md5: acfe164c5f6cb8edecc6c99345a5d390
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
77502258 32BuildRequires: gtk+3-devel >= 3.0
dc0e2239 33BuildRequires: gtk-doc >= 1.9
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 48Requires: gdk-pixbuf2 >= 2.31.5
dc0e2239 49Requires: glib2 >= 1:2.45.8
c440ce23 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
dc0e2239
ER
97%if "%{_rpmversion}" >= "5"
98BuildArch: noarch
99%endif
08ba24e9
JB
100
101%description apidocs
102API documentation for appstream-glib library.
103
104%description apidocs -l pl.UTF-8
105Dokumentacja API biblioteki appstream-glib.
106
77502258
JB
107%package -n bash-completion-appstream-glib
108Summary: Bash completion for appstream-glib package
109Summary(pl.UTF-8): Bashowe dopełnianie składni dla pakietu appstream-glib
110Group: Applications/Shells
111Requires: %{name} = %{version}-%{release}
112Requires: bash-completion >= 2.0
113
114%description -n bash-completion-appstream-glib
115Bash completion for appstream-util command.
116
117%description -n bash-completion-appstream-glib -l pl.UTF-8
118Bashowe dopełnianie składni polecenia appstream-util.
119
120%package -n appstream-builder
121Summary: AppStreamBuilder library to create AppStream metadata from packages
122Summary(pl.UTF-8): Biblioteka AppStreamBuilder tworząca metadane AppStream z pakietów
123Group: Libraries
124Requires: %{name} = %{version}-%{release}
0c3985a1 125Requires: freetype >= 1:2.2.1
77502258
JB
126
127%description -n appstream-builder
128AppStreamBuilder library to create AppStream metadata from packages.
129
130%description -n appstream-builder -l pl.UTF-8
131Biblioteka AppStreamBuilder tworząca metadane AppStream z pakietów.
132
133%package -n appstream-builder-devel
134Summary: Header files for AppStreamBuilder library
135Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AppStreamBuilder
136Group: Development/Libraries
137Requires: %{name}-devel = %{version}-%{release}
138Requires: appstream-builder = %{version}-%{release}
139
140%description -n appstream-builder-devel
141Header files for AppStreamBuilder library.
142
143%description -n appstream-builder-devel -l pl.UTF-8
144Pliki nagłówkowe biblioteki AppStreamBuilder.
145
146%package -n appstream-builder-static
147Summary: Static AppStreamBuilder library
148Summary(pl.UTF-8): Statyczna biblioteka AppStreamBuilder
149Group: Development/Libraries
150Requires: appstream-builder-devel = %{version}-%{release}
151
152%description -n appstream-builder-static
153Static AppStreamBuilder library.
154
155%description -n appstream-builder-static -l pl.UTF-8
156Statyczna biblioteka AppStreamBuilder.
157
158%package -n bash-completion-appstream-builder
159Summary: Bash completion for appstream-builder package
160Summary(pl.UTF-8): Bashowe dopełnianie składni dla pakietu appstream-builder
161Group: Applications/Shells
162Requires: appstream-builder = %{version}-%{release}
163Requires: bash-completion >= 2.0
164
165%description -n bash-completion-appstream-builder
166Bash completion for appstream-builder command.
167
168%description -n bash-completion-appstream-builder -l pl.UTF-8
169Bashowe dopełnianie składni polecenia appstream-builder.
170
08ba24e9
JB
171%prep
172%setup -q
77502258
JB
173%patch0 -p1
174%patch1 -p1
08ba24e9
JB
175
176%build
77502258
JB
177%{__libtoolize}
178%{__aclocal} -I m4
179%{__autoconf}
180%{__autoheader}
181%{__automake}
08ba24e9 182%configure \
f27661b8
JB
183 %{?with_alpm:--enable-alpm} \
184 %{!?with_ostree:--disable-ostree} \
08ba24e9
JB
185 --disable-silent-rules \
186 --with-html-dir=%{_gtkdocdir}
187%{__make}
188
189%install
190rm -rf $RPM_BUILD_ROOT
191
192%{__make} install \
193 DESTDIR=$RPM_BUILD_ROOT
194
3fe855f5 195%{__rm} $RPM_BUILD_ROOT%{_libdir}/asb-plugins-4/lib*.{la,a}
77502258 196
08ba24e9 197# obsoleted by pkg-config
77502258 198%{__rm} $RPM_BUILD_ROOT%{_libdir}/libappstream-*.la
08ba24e9 199
a4e4c62e
JB
200%find_lang %{name}
201
08ba24e9
JB
202%clean
203rm -rf $RPM_BUILD_ROOT
204
205%post -p /sbin/ldconfig
206%postun -p /sbin/ldconfig
207
77502258
JB
208%post -n appstream-builder -p /sbin/ldconfig
209%postun -n appstream-builder -p /sbin/ldconfig
210
a4e4c62e 211%files -f %{name}.lang
08ba24e9
JB
212%defattr(644,root,root,755)
213%doc AUTHORS MAINTAINERS NEWS README.md
214%attr(755,root,root) %{_bindir}/appstream-util
215%attr(755,root,root) %{_libdir}/libappstream-glib.so.*.*.*
2fb305ec 216%attr(755,root,root) %ghost %{_libdir}/libappstream-glib.so.8
08ba24e9 217%{_libdir}/girepository-1.0/AppStreamGlib-1.0.typelib
4775b279 218%{_aclocaldir}/appdata-xml.m4
77502258 219%{_mandir}/man1/appstream-util.1*
08ba24e9
JB
220
221%files devel
222%defattr(644,root,root,755)
223%attr(755,root,root) %{_libdir}/libappstream-glib.so
224%{_datadir}/gir-1.0/AppStreamGlib-1.0.gir
225%{_includedir}/libappstream-glib
226%{_pkgconfigdir}/appstream-glib.pc
77502258 227%{_aclocaldir}/appstream-xml.m4
08ba24e9
JB
228
229%files static
230%defattr(644,root,root,755)
231%{_libdir}/libappstream-glib.a
232
77502258
JB
233%files -n bash-completion-appstream-glib
234%defattr(644,root,root,755)
dc0e2239 235%{bash_compdir}/appstream-util
77502258 236
08ba24e9
JB
237%files apidocs
238%defattr(644,root,root,755)
239%{_gtkdocdir}/appstream-glib
77502258
JB
240
241%files -n appstream-builder
242%defattr(644,root,root,755)
243%attr(755,root,root) %{_bindir}/appstream-builder
244%attr(755,root,root) %{_libdir}/libappstream-builder.so.*.*.*
2fb305ec 245%attr(755,root,root) %ghost %{_libdir}/libappstream-builder.so.8
77502258 246%{_libdir}/girepository-1.0/AppStreamBuilder-1.0.typelib
3fe855f5
JB
247%dir %{_libdir}/asb-plugins-4
248%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_absorb.so
249%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_appdata.so
250%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_dbus.so
251%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_desktop.so
252%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_font.so
253%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_gettext.so
254%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_gir.so
255%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_gresource.so
256%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_gstreamer.so
257%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_hardcoded.so
258%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_kde_notifyrc.so
259%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_kde_services.so
260%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_nm.so
f27661b8 261%if %{with ostree}
3fe855f5 262%attr(755,root,root) %{_libdir}/asb-plugins-4/libasb_plugin_ostree.so
f27661b8 263%endif
77502258
JB
264%{_mandir}/man1/appstream-builder.1*
265
266%files -n appstream-builder-devel
267%defattr(644,root,root,755)
268%attr(755,root,root) %{_libdir}/libappstream-builder.so
269%{_includedir}/libappstream-builder
270%{_datadir}/gir-1.0/AppStreamBuilder-1.0.gir
271%{_pkgconfigdir}/appstream-builder.pc
272
273%files -n appstream-builder-static
274%defattr(644,root,root,755)
275%{_libdir}/libappstream-builder.a
276
277%files -n bash-completion-appstream-builder
278%defattr(644,root,root,755)
dc0e2239 279%{bash_compdir}/appstream-builder
This page took 0.059224 seconds and 4 git commands to generate.