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