libgit2-glib-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. %{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
  2. %global _vpath_srcdir .
  3. %global _vpath_builddir builddir
  4. %global __global_cflags ""
  5. %global __global_ldflags ""
  6. Summary: GLib wrapper for libgit2
  7. Summary(ja): libgit2 用 GLib ラッパー
  8. Name: libgit2-glib
  9. Version: 0.28.0.1
  10. Release: 1%{?_dist_release}
  11. Group: System Environment/Libraries
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. License: LGPLv2.1
  15. URL: https://wiki.gnome.org/Projects/Libgit2-glib
  16. %global shortver %(echo %{version} | cut -d . -f 1,2)
  17. Source0: https://download.gnome.org/sources/libgit2-glib/%{shortver}/%{name}-%{version}.tar.xz
  18. # Patch from upstream
  19. Patch0: libgit2-1.patch
  20. BuildRequires: glib2-devel
  21. BuildRequires: libgit2-devel
  22. BuildRequires: gobject-introspection-devel
  23. BuildRequires: gtk-doc
  24. BuildRequires: python3-devel
  25. BuildRequires: meson vala-devel vala-tools pygobject3-devel
  26. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  27. %description
  28. libgit2-glib is a glib wrapper library around the libgit2 git access library.
  29. %description -l ja
  30. libgit2-glib は GIT アクセス用ライブラリ libgit2 用の glib ラッパーライブラリです。
  31. %package devel
  32. Summary: Development tools for %{name}
  33. Summary(ja): %{name} の開発環境
  34. Group: Development/Libraries
  35. Requires: %{name} = %{version}-%{release}
  36. Requires: pkgconfig
  37. %description devel
  38. Header files and libraries for building a extension library for the %{name}.
  39. %package docs
  40. Summary: Documentation for %{name}
  41. Summary(ja): %{name} 用のドキュメント
  42. Group: Documentation
  43. BuildArch: noarch
  44. %description docs
  45. This package contains documentation for %{name}.
  46. %prep
  47. %setup -q
  48. %patch0 -p1
  49. %build
  50. %meson -Dgtk_doc=true -Dpython=true
  51. %meson_build
  52. %install
  53. %{__rm} -rf ${RPM_BUILD_ROOT}
  54. %meson_install
  55. find ${RPM_BUILD_ROOT} -name '*.a' -exec rm -f {} \;
  56. find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} \;
  57. %check
  58. %meson_test
  59. %clean
  60. %{__rm} -rf ${RPM_BUILD_ROOT}
  61. %post -p /sbin/ldconfig
  62. %postun -p /sbin/ldconfig
  63. %files
  64. %defattr(-,root,root,-)
  65. %license COPYING
  66. %doc AUTHORS ChangeLog NEWS README
  67. %{_libdir}/%{name}-1.0.so.*
  68. %{_libdir}/girepository-1.0/Ggit-1.0.typelib
  69. %{python3_sitearch}/gi/overrides/*
  70. %files devel
  71. %defattr(-,root,root,-)
  72. %{_includedir}/%{name}-1.0
  73. %{_libdir}/%{name}-1.0.so
  74. %{_libdir}/pkgconfig/%{name}-1.0.pc
  75. %{_datadir}/gir-1.0/Ggit-1.0.gir
  76. %{_datadir}/vala
  77. %files docs
  78. %doc examples
  79. %defattr(-,root,root,-)
  80. %{_datadir}/gtk-doc/html/%{name}-1.0
  81. %changelog
  82. * Tue May 05 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.28.0.1-1
  83. - new upstream release.
  84. - dropped Patch1.
  85. - imported Patch0 from upstream.
  86. * Tue Aug 21 2018 Toshiaki Ara <ara_t@384.jp> 0.26.4-1
  87. - new upstream release
  88. - add BuildRequires: python3-devel
  89. - add BuildRequires: meson vala-devel vala-tools pygobject3-devel
  90. - Switch to the meson build system
  91. * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.24.0-1
  92. - new upstream release
  93. * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.23.6-1
  94. - new upstream release
  95. * Sun May 03 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.8-1
  96. - new upstream release
  97. * Sun Apr 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.6-1
  98. - new upstream release
  99. * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.2-2
  100. - rebuild with libgit2-0.22.2-2
  101. * Wed Apr 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.2-1
  102. - initial build