libappstream-glib-vl.spec 5.2 KB

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