1 | %define _unpackaged_files_terminate_build 1 |
---|
2 | |
---|
3 | %define as_plugin_version 5 |
---|
4 | |
---|
5 | %global _vpath_srcdir . |
---|
6 | %global _vpath_builddir build |
---|
7 | %global __global_cflags %{optflags} |
---|
8 | %global __global_ldflags "" |
---|
9 | |
---|
10 | Summary: Library for AppStream metadata |
---|
11 | Summary(ja): AppStream メタデータ用ライブラリ |
---|
12 | Name: libappstream-glib |
---|
13 | Version: 0.7.15 |
---|
14 | Release: 1%{?_dist_release} |
---|
15 | License: LGPLv2+ |
---|
16 | Group: System Environment/Libraries |
---|
17 | URL: http://people.freedesktop.org/~hughsient/appstream-glib/ |
---|
18 | |
---|
19 | Source: http://people.freedesktop.org/~hughsient/releases/appstream-glib-%{version}.tar.xz |
---|
20 | |
---|
21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
22 | |
---|
23 | BuildRequires: gtk3-devel |
---|
24 | BuildRequires: libarchive-devel |
---|
25 | BuildRequires: libsoup-devel >= 2.24 |
---|
26 | BuildRequires: gperf |
---|
27 | BuildRequires: sqlite3-devel |
---|
28 | BuildRequires: rpm-devel |
---|
29 | BuildRequires: libyaml-devel |
---|
30 | BuildRequires: gcab-devel |
---|
31 | BuildRequires: gtk-doc >= 1.9 |
---|
32 | |
---|
33 | BuildRequires: glib2-devel |
---|
34 | BuildRequires: docbook-utils |
---|
35 | BuildRequires: gtk-doc |
---|
36 | BuildRequires: gobject-introspection-devel |
---|
37 | BuildRequires: gperf |
---|
38 | BuildRequires: libarchive-devel |
---|
39 | BuildRequires: libsoup-devel |
---|
40 | BuildRequires: gdk-pixbuf2-devel |
---|
41 | BuildRequires: gtk3-devel |
---|
42 | BuildRequires: gettext |
---|
43 | BuildRequires: libuuid-devel |
---|
44 | BuildRequires: json-glib-devel |
---|
45 | BuildRequires: meson |
---|
46 | |
---|
47 | # for the builder component |
---|
48 | BuildRequires: fontconfig-devel |
---|
49 | BuildRequires: freetype-devel |
---|
50 | BuildRequires: pango-devel |
---|
51 | BuildRequires: rpm-devel |
---|
52 | BuildRequires: sqlite3-devel |
---|
53 | |
---|
54 | # for the manpages |
---|
55 | BuildRequires: libxslt |
---|
56 | BuildRequires: docbook-style-xsl |
---|
57 | |
---|
58 | Obsoletes: appdata-tools < 0.1.9 |
---|
59 | Provides: appdata-tools |
---|
60 | |
---|
61 | Obsoletes: libappstream-glib-builder-devel < 0.7.15 |
---|
62 | |
---|
63 | Vendor: Project Vine |
---|
64 | Distribution: Vine Linux |
---|
65 | |
---|
66 | %description |
---|
67 | This library provides GObjects and helper methods to make it easy |
---|
68 | to read and write AppStream metadata. It also provides a simple DOM |
---|
69 | implementation that makes it easy to edit nodes and convert to and |
---|
70 | from the standardized XML representation. |
---|
71 | |
---|
72 | %package devel |
---|
73 | Summary: Development tools for %{name} |
---|
74 | Summary(ja): %{name} の開発環境 |
---|
75 | Group: Development/Libraries |
---|
76 | Requires: %{name} = %{version}-%{release} |
---|
77 | Requires: pkgconfig |
---|
78 | |
---|
79 | %description devel |
---|
80 | Header files and libraries for building a extension library for the %{name}. |
---|
81 | |
---|
82 | |
---|
83 | %package docs |
---|
84 | Summary: Documentation for %{name} |
---|
85 | Summary(ja): %{name} 用のドキュメント |
---|
86 | Group: Documentation |
---|
87 | Requires: %{name} = %{version}-%{release} |
---|
88 | BuildArch: noarch |
---|
89 | |
---|
90 | %description docs |
---|
91 | This package contains documentation for %{name}. |
---|
92 | |
---|
93 | |
---|
94 | %package -n libappstream-builder |
---|
95 | Summary: Library and command line tools for building AppStream metadata |
---|
96 | Summary(ja): AppStream メタデータを生成するためのライブラリ及びコマンドラインツール |
---|
97 | Group: System Environment/Libraries |
---|
98 | Requires: %{name} = %{version}-%{release} |
---|
99 | |
---|
100 | %description -n libappstream-builder |
---|
101 | %{summary} |
---|
102 | |
---|
103 | |
---|
104 | %prep |
---|
105 | %autosetup -p1 -n appstream-glib-%{version} |
---|
106 | |
---|
107 | %build |
---|
108 | export LANG=ja_JP.UTF-8 |
---|
109 | |
---|
110 | %meson \ |
---|
111 | -Dgtk-doc=true \ |
---|
112 | -Dstemmer=false \ |
---|
113 | -Ddep11=false |
---|
114 | %meson_build |
---|
115 | |
---|
116 | %install |
---|
117 | rm -rf $RPM_BUILD_ROOT |
---|
118 | export LANG=ja_JP.UTF-8 |
---|
119 | |
---|
120 | %meson_install |
---|
121 | |
---|
122 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
123 | |
---|
124 | %find_lang appstream-glib |
---|
125 | |
---|
126 | %clean |
---|
127 | rm -rf $RPM_BUILD_ROOT |
---|
128 | |
---|
129 | %post -p /sbin/ldconfig |
---|
130 | %postun -p /sbin/ldconfig |
---|
131 | |
---|
132 | %files -f appstream-glib.lang |
---|
133 | %defattr(-,root,root,-) |
---|
134 | %license COPYING |
---|
135 | %doc README.md AUTHORS NEWS |
---|
136 | %{_libdir}/libappstream-glib.so.* |
---|
137 | %{_libdir}/girepository-1.0/*.typelib |
---|
138 | %{_bindir}/appstream-util |
---|
139 | %{_bindir}/appstream-compose |
---|
140 | %dir %{_datadir}/bash-completion/completions/ |
---|
141 | %{_datadir}/bash-completion/completions/appstream-util |
---|
142 | %{_mandir}/man1/appstream-util.1.gz |
---|
143 | %{_mandir}/man1/appstream-compose.1.gz |
---|
144 | |
---|
145 | %files devel |
---|
146 | %defattr(-,root,root,-) |
---|
147 | %{_libdir}/libappstream-glib.so |
---|
148 | %{_libdir}/pkgconfig/appstream-glib.pc |
---|
149 | %dir %{_includedir}/libappstream-glib |
---|
150 | %{_includedir}/libappstream-glib/*.h |
---|
151 | %{_datadir}/gtk-doc/html/appstream-glib |
---|
152 | %{_datadir}/gir-1.0/AppStreamGlib-1.0.gir |
---|
153 | %{_datadir}/aclocal/*.m4 |
---|
154 | %{_datadir}/installed-tests/appstream-glib/*.test |
---|
155 | %{_datadir}/gettext/its/appdata.its |
---|
156 | %{_datadir}/gettext/its/appdata.loc |
---|
157 | |
---|
158 | %files docs |
---|
159 | %defattr(-,root,root,-) |
---|
160 | %{_datadir}/gtk-doc/html/appstream-glib |
---|
161 | |
---|
162 | %files -n libappstream-builder |
---|
163 | %defattr(-,root,root,-) |
---|
164 | %license COPYING |
---|
165 | %{_bindir}/appstream-builder |
---|
166 | %{_datadir}/bash-completion/completions/appstream-builder |
---|
167 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_appdata.so |
---|
168 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_desktop.so |
---|
169 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_font.so |
---|
170 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_gettext.so |
---|
171 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_hardcoded.so |
---|
172 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_icon.so |
---|
173 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_shell_extension.so |
---|
174 | %{_mandir}/man1/appstream-builder.1.gz |
---|
175 | |
---|
176 | |
---|
177 | %changelog |
---|
178 | * Mon Sep 23 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.7.15-1 |
---|
179 | - new usptream release. |
---|
180 | - dropped Patch0. |
---|
181 | - drop a subpackage "libappstream-builder-devel": vanished in upstream. |
---|
182 | |
---|
183 | * Tue Dec 11 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.7.14-1 |
---|
184 | - new usptream release. |
---|
185 | |
---|
186 | * Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5.2-1 |
---|
187 | - new usptream release |
---|
188 | - add BuildRequires: gcab-devel |
---|
189 | |
---|
190 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.1-1 |
---|
191 | - initial build |
---|
192 | |
---|