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