[11983] | 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 | |
---|
[9073] | 10 | Summary: Library for AppStream metadata |
---|
| 11 | Summary(ja): AppStream メタデータ用ライブラリ |
---|
| 12 | Name: libappstream-glib |
---|
[11983] | 13 | Version: 0.7.14 |
---|
[9073] | 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 |
---|
[11983] | 20 | Patch0: as_utils_vercmp_full.patch |
---|
[9073] | 21 | |
---|
| 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 23 | |
---|
| 24 | BuildRequires: gtk3-devel |
---|
| 25 | BuildRequires: libarchive-devel |
---|
| 26 | BuildRequires: libsoup-devel >= 2.24 |
---|
| 27 | BuildRequires: gperf |
---|
| 28 | BuildRequires: sqlite3-devel |
---|
| 29 | BuildRequires: rpm-devel |
---|
| 30 | BuildRequires: libyaml-devel |
---|
[9791] | 31 | BuildRequires: gcab-devel |
---|
[9073] | 32 | BuildRequires: gtk-doc >= 1.9 |
---|
| 33 | |
---|
[11983] | 34 | BuildRequires: glib2-devel |
---|
| 35 | BuildRequires: docbook-utils |
---|
| 36 | BuildRequires: gtk-doc |
---|
| 37 | BuildRequires: gobject-introspection-devel |
---|
| 38 | BuildRequires: gperf |
---|
| 39 | BuildRequires: libarchive-devel |
---|
| 40 | BuildRequires: libsoup-devel |
---|
| 41 | BuildRequires: gdk-pixbuf2-devel |
---|
| 42 | BuildRequires: gtk3-devel |
---|
| 43 | BuildRequires: gettext |
---|
| 44 | BuildRequires: libuuid-devel |
---|
| 45 | BuildRequires: json-glib-devel |
---|
| 46 | BuildRequires: meson |
---|
[9073] | 47 | |
---|
[11983] | 48 | # for the builder component |
---|
| 49 | BuildRequires: fontconfig-devel |
---|
| 50 | BuildRequires: freetype-devel |
---|
| 51 | BuildRequires: pango-devel |
---|
| 52 | BuildRequires: rpm-devel |
---|
| 53 | BuildRequires: sqlite3-devel |
---|
| 54 | |
---|
| 55 | # for the manpages |
---|
| 56 | BuildRequires: libxslt |
---|
| 57 | BuildRequires: docbook-style-xsl |
---|
| 58 | |
---|
| 59 | Obsoletes: appdata-tools < 0.1.9 |
---|
| 60 | Provides: appdata-tools |
---|
| 61 | |
---|
[9073] | 62 | Vendor: Project Vine |
---|
| 63 | Distribution: Vine Linux |
---|
| 64 | Packager: Takemikaduchi |
---|
| 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 | %package -n libappstream-builder-devel |
---|
| 105 | Summary: Development tools for libappstream-builder |
---|
| 106 | Summary(ja): libappstream-builder の開発環境 |
---|
| 107 | Group: Development/Libraries |
---|
| 108 | Requires: libappstream-builder = %{version}-%{release} |
---|
| 109 | Requires: pkgconfig |
---|
| 110 | |
---|
| 111 | %description -n libappstream-builder-devel |
---|
| 112 | Header files and libraries for building a extension library for the libappstream-builder. |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | %prep |
---|
[11983] | 116 | %autosetup -p1 -n appstream-glib-%{version} |
---|
[9073] | 117 | |
---|
| 118 | %build |
---|
[11983] | 119 | export LANG=ja_JP.UTF-8 |
---|
[9073] | 120 | |
---|
[11983] | 121 | %meson \ |
---|
| 122 | -Dgtk-doc=true \ |
---|
| 123 | -Dstemmer=false \ |
---|
| 124 | -Ddep11=false |
---|
| 125 | %meson_build |
---|
| 126 | |
---|
[9073] | 127 | %install |
---|
| 128 | rm -rf $RPM_BUILD_ROOT |
---|
[11983] | 129 | export LANG=ja_JP.UTF-8 |
---|
[9073] | 130 | |
---|
[11983] | 131 | %meson_install |
---|
| 132 | |
---|
[9073] | 133 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 134 | |
---|
| 135 | %find_lang appstream-glib |
---|
| 136 | |
---|
| 137 | %clean |
---|
| 138 | rm -rf $RPM_BUILD_ROOT |
---|
| 139 | |
---|
[11983] | 140 | %post -p /sbin/ldconfig |
---|
| 141 | %postun -p /sbin/ldconfig |
---|
[9073] | 142 | |
---|
| 143 | %files -f appstream-glib.lang |
---|
| 144 | %defattr(-,root,root,-) |
---|
[11983] | 145 | %license COPYING |
---|
| 146 | %doc README.md AUTHORS NEWS |
---|
| 147 | %{_libdir}/libappstream-glib.so.8* |
---|
| 148 | %{_libdir}/girepository-1.0/*.typelib |
---|
[9073] | 149 | %{_bindir}/appstream-util |
---|
[11983] | 150 | %{_bindir}/appstream-compose |
---|
| 151 | %dir %{_datadir}/bash-completion/completions/ |
---|
[9073] | 152 | %{_datadir}/bash-completion/completions/appstream-util |
---|
| 153 | %{_mandir}/man1/appstream-util.1.gz |
---|
[11983] | 154 | %{_mandir}/man1/appstream-compose.1.gz |
---|
[9073] | 155 | |
---|
| 156 | %files devel |
---|
| 157 | %defattr(-,root,root,-) |
---|
[11983] | 158 | %{_libdir}/libappstream-glib.so |
---|
[9073] | 159 | %{_libdir}/pkgconfig/appstream-glib.pc |
---|
[11983] | 160 | %dir %{_includedir}/libappstream-glib |
---|
| 161 | %{_includedir}/libappstream-glib/*.h |
---|
| 162 | %{_datadir}/gtk-doc/html/appstream-glib |
---|
[9073] | 163 | %{_datadir}/gir-1.0/AppStreamGlib-1.0.gir |
---|
[11983] | 164 | %{_datadir}/aclocal/*.m4 |
---|
[9073] | 165 | %{_datadir}/installed-tests/appstream-glib/*.test |
---|
[11983] | 166 | %{_datadir}/gettext/its/appdata.its |
---|
| 167 | %{_datadir}/gettext/its/appdata.loc |
---|
[9073] | 168 | |
---|
| 169 | %files docs |
---|
| 170 | %defattr(-,root,root,-) |
---|
| 171 | %{_datadir}/gtk-doc/html/appstream-glib |
---|
| 172 | |
---|
| 173 | %files -n libappstream-builder |
---|
| 174 | %defattr(-,root,root,-) |
---|
[11983] | 175 | %license COPYING |
---|
[9073] | 176 | %{_bindir}/appstream-builder |
---|
| 177 | %{_datadir}/bash-completion/completions/appstream-builder |
---|
[11983] | 178 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_appdata.so |
---|
| 179 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_desktop.so |
---|
| 180 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_font.so |
---|
| 181 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_gettext.so |
---|
| 182 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_hardcoded.so |
---|
| 183 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_icon.so |
---|
| 184 | %{_libdir}/asb-plugins-%{as_plugin_version}/libasb_plugin_shell_extension.so |
---|
| 185 | %{_libdir}/libappstream-builder.so.8* |
---|
[9073] | 186 | %{_mandir}/man1/appstream-builder.1.gz |
---|
| 187 | |
---|
| 188 | %files -n libappstream-builder-devel |
---|
| 189 | %defattr(-,root,root,-) |
---|
[11983] | 190 | %license COPYING |
---|
[9073] | 191 | %{_libdir}/libappstream-builder.so |
---|
| 192 | %{_libdir}/pkgconfig/appstream-builder.pc |
---|
[11983] | 193 | %dir %{_includedir}/libappstream-builder |
---|
| 194 | %{_includedir}/libappstream-builder/*.h |
---|
[9073] | 195 | %{_datadir}/gir-1.0/AppStreamBuilder-1.0.gir |
---|
| 196 | |
---|
| 197 | %changelog |
---|
[11983] | 198 | * Tue Dec 11 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.7.14-1 |
---|
| 199 | - new usptream release. |
---|
| 200 | |
---|
[9791] | 201 | * Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5.2-1 |
---|
| 202 | - new usptream release |
---|
| 203 | - add BuildRequires: gcab-devel |
---|
| 204 | |
---|
[9073] | 205 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.1-1 |
---|
| 206 | - initial build |
---|
| 207 | |
---|