| 1 | %{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} |
|---|
| 2 | |
|---|
| 3 | %global _vpath_srcdir . |
|---|
| 4 | %global _vpath_builddir builddir |
|---|
| 5 | %global __global_cflags "" |
|---|
| 6 | %global __global_ldflags "" |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | Summary: GLib wrapper for libgit2 |
|---|
| 10 | Summary(ja): libgit2 用 GLib ラッパー |
|---|
| 11 | Name: libgit2-glib |
|---|
| 12 | Version: 0.28.0.1 |
|---|
| 13 | Release: 1%{?_dist_release} |
|---|
| 14 | Group: System Environment/Libraries |
|---|
| 15 | Vendor: Project Vine |
|---|
| 16 | Distribution: Vine Linux |
|---|
| 17 | |
|---|
| 18 | License: LGPLv2.1 |
|---|
| 19 | URL: https://wiki.gnome.org/Projects/Libgit2-glib |
|---|
| 20 | %global shortver %(echo %{version} | cut -d . -f 1,2) |
|---|
| 21 | Source0: https://download.gnome.org/sources/libgit2-glib/%{shortver}/%{name}-%{version}.tar.xz |
|---|
| 22 | |
|---|
| 23 | # Patch from upstream |
|---|
| 24 | Patch0: libgit2-1.patch |
|---|
| 25 | |
|---|
| 26 | BuildRequires: glib2-devel |
|---|
| 27 | BuildRequires: libgit2-devel |
|---|
| 28 | BuildRequires: gobject-introspection-devel |
|---|
| 29 | BuildRequires: gtk-doc |
|---|
| 30 | BuildRequires: python3-devel |
|---|
| 31 | BuildRequires: meson vala-devel vala-tools pygobject3-devel |
|---|
| 32 | |
|---|
| 33 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 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 |
|---|
| 65 | %patch0 -p1 |
|---|
| 66 | |
|---|
| 67 | %build |
|---|
| 68 | %meson -Dgtk_doc=true -Dpython=true |
|---|
| 69 | %meson_build |
|---|
| 70 | |
|---|
| 71 | %install |
|---|
| 72 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 73 | %meson_install |
|---|
| 74 | |
|---|
| 75 | find ${RPM_BUILD_ROOT} -name '*.a' -exec rm -f {} \; |
|---|
| 76 | find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} \; |
|---|
| 77 | |
|---|
| 78 | %check |
|---|
| 79 | %meson_test |
|---|
| 80 | |
|---|
| 81 | |
|---|
| 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,-) |
|---|
| 92 | %license COPYING |
|---|
| 93 | %doc AUTHORS ChangeLog NEWS README |
|---|
| 94 | %{_libdir}/%{name}-1.0.so.* |
|---|
| 95 | %{_libdir}/girepository-1.0/Ggit-1.0.typelib |
|---|
| 96 | %{python3_sitearch}/gi/overrides/* |
|---|
| 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 |
|---|
| 104 | %{_datadir}/vala |
|---|
| 105 | |
|---|
| 106 | %files docs |
|---|
| 107 | %doc examples |
|---|
| 108 | %defattr(-,root,root,-) |
|---|
| 109 | %{_datadir}/gtk-doc/html/%{name}-1.0 |
|---|
| 110 | |
|---|
| 111 | |
|---|
| 112 | %changelog |
|---|
| 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 | |
|---|
| 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 | |
|---|
| 124 | * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.24.0-1 |
|---|
| 125 | - new upstream release |
|---|
| 126 | |
|---|
| 127 | * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.23.6-1 |
|---|
| 128 | - new upstream release |
|---|
| 129 | |
|---|
| 130 | * Sun May 03 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.8-1 |
|---|
| 131 | - new upstream release |
|---|
| 132 | |
|---|
| 133 | * Sun Apr 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.6-1 |
|---|
| 134 | - new upstream release |
|---|
| 135 | |
|---|
| 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 | |
|---|
| 139 | * Wed Apr 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.2-1 |
|---|
| 140 | - initial build |
|---|
| 141 | |
|---|