|
@@ -1,24 +1,38 @@
|
|
-Summary: GLib wrapper for libgit2
|
|
|
|
-Summary(ja): libgit2 用 GLib ラッパー
|
|
|
|
-Name: libgit2-glib
|
|
|
|
-Version: 0.24.0
|
|
|
|
-Release: 1%{?_dist_release}
|
|
|
|
-License: LGPLv2.1
|
|
|
|
-Group: System Environment/Libraries
|
|
|
|
-URL: https://wiki.gnome.org/Projects/Libgit2-glib
|
|
|
|
|
|
+%{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
+
|
|
|
|
+%global _vpath_srcdir .
|
|
|
|
+%global _vpath_builddir builddir
|
|
|
|
+%global __global_cflags ""
|
|
|
|
+%global __global_ldflags ""
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+Summary: GLib wrapper for libgit2
|
|
|
|
+Summary(ja): libgit2 用 GLib ラッパー
|
|
|
|
+Name: libgit2-glib
|
|
|
|
+Version: 0.26.4
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
+License: LGPLv2.1
|
|
|
|
+Group: System Environment/Libraries
|
|
|
|
+URL: https://wiki.gnome.org/Projects/Libgit2-glib
|
|
|
|
+
|
|
|
|
+Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.26/%{name}-%{version}.tar.xz
|
|
|
|
+
|
|
|
|
+# Patch from Debian (buster)
|
|
|
|
+Patch1: libgit2-0.27-compat.patch
|
|
|
|
|
|
-Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.24/%{name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: libgit2-devel
|
|
BuildRequires: libgit2-devel
|
|
BuildRequires: gobject-introspection-devel
|
|
BuildRequires: gobject-introspection-devel
|
|
BuildRequires: gtk-doc
|
|
BuildRequires: gtk-doc
|
|
|
|
+BuildRequires: python3-devel
|
|
|
|
+BuildRequires: meson vala-devel vala-tools pygobject3-devel
|
|
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
|
-Distribution: Vine Linux
|
|
|
|
-Packager: Takemikaduchi
|
|
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+Packager: Takemikaduchi
|
|
|
|
|
|
%description
|
|
%description
|
|
libgit2-glib is a glib wrapper library around the libgit2 git access library.
|
|
libgit2-glib is a glib wrapper library around the libgit2 git access library.
|
|
@@ -50,21 +64,25 @@ This package contains documentation for %{name}.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-
|
|
|
|
|
|
+%patch1 -p1
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure \
|
|
|
|
- --disable-static
|
|
|
|
-
|
|
|
|
-%{__make} %{?_smp_mflags}
|
|
|
|
-
|
|
|
|
|
|
+%meson -Dgtk_doc=true -Dpython=true
|
|
|
|
+%meson_build
|
|
|
|
|
|
%install
|
|
%install
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
-%{__make} install DESTDIR=${RPM_BUILD_ROOT}
|
|
|
|
|
|
+%meson_install
|
|
|
|
+
|
|
|
|
+%ifarch x86_64
|
|
|
|
+%{__mv} ${RPM_BUILD_ROOT}/usr/lib/* ${RPM_BUILD_ROOT}%{_libdir}
|
|
|
|
+%endif
|
|
|
|
|
|
-find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
|
|
|
|
-find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
|
|
|
|
|
|
+find ${RPM_BUILD_ROOT} -name '*.a' -exec rm -f {} \;
|
|
|
|
+find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} \;
|
|
|
|
+
|
|
|
|
+%check
|
|
|
|
+%meson_test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
@@ -77,9 +95,10 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc COPYING ChangeLog NEWS README
|
|
|
|
|
|
+%doc AUTHORS COPYING ChangeLog NEWS README
|
|
%{_libdir}/%{name}-1.0.so.*
|
|
%{_libdir}/%{name}-1.0.so.*
|
|
%{_libdir}/girepository-1.0/Ggit-1.0.typelib
|
|
%{_libdir}/girepository-1.0/Ggit-1.0.typelib
|
|
|
|
+%{python3_sitearch}/gi/overrides/*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -87,13 +106,21 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
|
|
%{_libdir}/%{name}-1.0.so
|
|
%{_libdir}/%{name}-1.0.so
|
|
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
%{_datadir}/gir-1.0/Ggit-1.0.gir
|
|
%{_datadir}/gir-1.0/Ggit-1.0.gir
|
|
|
|
+%{_datadir}/vala
|
|
|
|
|
|
%files docs
|
|
%files docs
|
|
|
|
+%doc examples
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_datadir}/gtk-doc/html/%{name}-1.0
|
|
%{_datadir}/gtk-doc/html/%{name}-1.0
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Aug 21 2018 Toshiaki Ara <ara_t@384.jp> 0.26.4-1
|
|
|
|
+- new upstream release
|
|
|
|
+- add BuildRequires: python3-devel
|
|
|
|
+- add BuildRequires: meson vala-devel vala-tools pygobject3-devel
|
|
|
|
+- Switch to the meson build system
|
|
|
|
+
|
|
* Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.24.0-1
|
|
* Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.24.0-1
|
|
- new upstream release
|
|
- new upstream release
|
|
|
|
|