libgit2-glib-vl.spec 3.4 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.26.4
  10. Release: 1%{?_dist_release}
  11. License: LGPLv2.1
  12. Group: System Environment/Libraries
  13. URL: https://wiki.gnome.org/Projects/Libgit2-glib
  14. Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.26/%{name}-%{version}.tar.xz
  15. # Patch from Debian (buster)
  16. Patch1: libgit2-0.27-compat.patch
  17. BuildRequires: glib2-devel
  18. BuildRequires: libgit2-devel
  19. BuildRequires: gobject-introspection-devel
  20. BuildRequires: gtk-doc
  21. BuildRequires: python3-devel
  22. BuildRequires: meson vala-devel vala-tools pygobject3-devel
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. Packager: Takemikaduchi
  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. %patch1 -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. %ifarch x86_64
  56. %{__mv} ${RPM_BUILD_ROOT}/usr/lib/* ${RPM_BUILD_ROOT}%{_libdir}
  57. %endif
  58. find ${RPM_BUILD_ROOT} -name '*.a' -exec rm -f {} \;
  59. find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} \;
  60. %check
  61. %meson_test
  62. %clean
  63. %{__rm} -rf ${RPM_BUILD_ROOT}
  64. %post -p /sbin/ldconfig
  65. %postun -p /sbin/ldconfig
  66. %files
  67. %defattr(-,root,root,-)
  68. %doc AUTHORS COPYING ChangeLog NEWS README
  69. %{_libdir}/%{name}-1.0.so.*
  70. %{_libdir}/girepository-1.0/Ggit-1.0.typelib
  71. %{python3_sitearch}/gi/overrides/*
  72. %files devel
  73. %defattr(-,root,root,-)
  74. %{_includedir}/%{name}-1.0
  75. %{_libdir}/%{name}-1.0.so
  76. %{_libdir}/pkgconfig/%{name}-1.0.pc
  77. %{_datadir}/gir-1.0/Ggit-1.0.gir
  78. %{_datadir}/vala
  79. %files docs
  80. %doc examples
  81. %defattr(-,root,root,-)
  82. %{_datadir}/gtk-doc/html/%{name}-1.0
  83. %changelog
  84. * Tue Aug 21 2018 Toshiaki Ara <ara_t@384.jp> 0.26.4-1
  85. - new upstream release
  86. - add BuildRequires: python3-devel
  87. - add BuildRequires: meson vala-devel vala-tools pygobject3-devel
  88. - Switch to the meson build system
  89. * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.24.0-1
  90. - new upstream release
  91. * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.23.6-1
  92. - new upstream release
  93. * Sun May 03 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.8-1
  94. - new upstream release
  95. * Sun Apr 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.6-1
  96. - new upstream release
  97. * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.2-2
  98. - rebuild with libgit2-0.22.2-2
  99. * Wed Apr 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.2-1
  100. - initial build