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.26.4 |
---|
13 | Release: 1%{?_dist_release} |
---|
14 | License: LGPLv2.1 |
---|
15 | Group: System Environment/Libraries |
---|
16 | URL: https://wiki.gnome.org/Projects/Libgit2-glib |
---|
17 | |
---|
18 | Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.26/%{name}-%{version}.tar.xz |
---|
19 | |
---|
20 | # Patch from Debian (buster) |
---|
21 | Patch1: libgit2-0.27-compat.patch |
---|
22 | |
---|
23 | |
---|
24 | BuildRequires: glib2-devel |
---|
25 | BuildRequires: libgit2-devel |
---|
26 | BuildRequires: gobject-introspection-devel |
---|
27 | BuildRequires: gtk-doc |
---|
28 | BuildRequires: python3-devel |
---|
29 | BuildRequires: meson vala-devel vala-tools pygobject3-devel |
---|
30 | |
---|
31 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
32 | |
---|
33 | Vendor: Project Vine |
---|
34 | Distribution: Vine Linux |
---|
35 | Packager: Takemikaduchi |
---|
36 | |
---|
37 | %description |
---|
38 | libgit2-glib is a glib wrapper library around the libgit2 git access library. |
---|
39 | |
---|
40 | %description -l ja |
---|
41 | libgit2-glib は GIT アクセス用ライブラリ libgit2 用の glib ラッパーライブラリです。 |
---|
42 | |
---|
43 | |
---|
44 | %package devel |
---|
45 | Summary: Development tools for %{name} |
---|
46 | Summary(ja): %{name} の開発環境 |
---|
47 | Group: Development/Libraries |
---|
48 | Requires: %{name} = %{version}-%{release} |
---|
49 | Requires: pkgconfig |
---|
50 | |
---|
51 | %description devel |
---|
52 | Header files and libraries for building a extension library for the %{name}. |
---|
53 | |
---|
54 | |
---|
55 | %package docs |
---|
56 | Summary: Documentation for %{name} |
---|
57 | Summary(ja): %{name} 用のドキュメント |
---|
58 | Group: Documentation |
---|
59 | BuildArch: noarch |
---|
60 | |
---|
61 | %description docs |
---|
62 | This package contains documentation for %{name}. |
---|
63 | |
---|
64 | |
---|
65 | %prep |
---|
66 | %setup -q |
---|
67 | %patch1 -p1 |
---|
68 | |
---|
69 | %build |
---|
70 | %meson -Dgtk_doc=true -Dpython=true |
---|
71 | %meson_build |
---|
72 | |
---|
73 | %install |
---|
74 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
75 | %meson_install |
---|
76 | |
---|
77 | %ifarch x86_64 |
---|
78 | %{__mv} ${RPM_BUILD_ROOT}/usr/lib/* ${RPM_BUILD_ROOT}%{_libdir} |
---|
79 | %endif |
---|
80 | |
---|
81 | find ${RPM_BUILD_ROOT} -name '*.a' -exec rm -f {} \; |
---|
82 | find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} \; |
---|
83 | |
---|
84 | %check |
---|
85 | %meson_test |
---|
86 | |
---|
87 | |
---|
88 | %clean |
---|
89 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
90 | |
---|
91 | %post -p /sbin/ldconfig |
---|
92 | |
---|
93 | %postun -p /sbin/ldconfig |
---|
94 | |
---|
95 | |
---|
96 | %files |
---|
97 | %defattr(-,root,root,-) |
---|
98 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
99 | %{_libdir}/%{name}-1.0.so.* |
---|
100 | %{_libdir}/girepository-1.0/Ggit-1.0.typelib |
---|
101 | %{python3_sitearch}/gi/overrides/* |
---|
102 | |
---|
103 | %files devel |
---|
104 | %defattr(-,root,root,-) |
---|
105 | %{_includedir}/%{name}-1.0 |
---|
106 | %{_libdir}/%{name}-1.0.so |
---|
107 | %{_libdir}/pkgconfig/%{name}-1.0.pc |
---|
108 | %{_datadir}/gir-1.0/Ggit-1.0.gir |
---|
109 | %{_datadir}/vala |
---|
110 | |
---|
111 | %files docs |
---|
112 | %doc examples |
---|
113 | %defattr(-,root,root,-) |
---|
114 | %{_datadir}/gtk-doc/html/%{name}-1.0 |
---|
115 | |
---|
116 | |
---|
117 | %changelog |
---|
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 | |
---|