libappstream-glib-vl.spec 5.3 KB

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