|
@@ -1,36 +1,30 @@
|
|
|
-%{!?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.28.0.1
|
|
|
-Release: 1%{?_dist_release}
|
|
|
-Group: System Environment/Libraries
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
-
|
|
|
-License: LGPLv2.1
|
|
|
-URL: https://wiki.gnome.org/Projects/Libgit2-glib
|
|
|
-%global shortver %(echo %{version} | cut -d . -f 1,2)
|
|
|
-Source0: https://download.gnome.org/sources/libgit2-glib/%{shortver}/%{name}-%{version}.tar.xz
|
|
|
+Summary: GLib wrapper for libgit2
|
|
|
+Summary(ja): libgit2 用 GLib ラッパー
|
|
|
+Name: libgit2-glib
|
|
|
+Version: 0.99.0.1
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Group: system
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
+License: LGPLv2.1
|
|
|
+URL: https://wiki.gnome.org/Projects/Libgit2-glib
|
|
|
+%global shortver %(echo %{version} | cut -d . -f 1,2)
|
|
|
+Source0: https://download.gnome.org/sources/libgit2-glib/%{shortver}/%{name}-%{version}.tar.xz
|
|
|
|
|
|
# Patch from upstream
|
|
|
-Patch0: libgit2-1.patch
|
|
|
+Patch0: 20.patch
|
|
|
+Patch1: 22.patch
|
|
|
|
|
|
-BuildRequires: glib2-devel
|
|
|
-BuildRequires: libgit2-devel
|
|
|
-BuildRequires: gobject-introspection-devel
|
|
|
-BuildRequires: gtk-doc
|
|
|
-BuildRequires: python3-devel
|
|
|
-BuildRequires: meson vala-devel vala-tools pygobject3-devel
|
|
|
+BuildRequires: glib2-devel
|
|
|
+BuildRequires: libgit2-devel
|
|
|
+BuildRequires: libssh2-devel
|
|
|
+BuildRequires: gobject-introspection-devel
|
|
|
+BuildRequires: gtk-doc
|
|
|
+BuildRequires: python3-devel
|
|
|
+BuildRequires: meson vala-devel vala pygobject3-devel
|
|
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
%description
|
|
|
libgit2-glib is a glib wrapper library around the libgit2 git access library.
|
|
@@ -42,7 +36,7 @@ libgit2-glib は GIT アクセス用ライブラリ libgit2 用の glib ラッ
|
|
|
%package devel
|
|
|
Summary: Development tools for %{name}
|
|
|
Summary(ja): %{name} の開発環境
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Requires: pkgconfig
|
|
|
|
|
@@ -53,21 +47,26 @@ Header files and libraries for building a extension library for the %{name}.
|
|
|
%package docs
|
|
|
Summary: Documentation for %{name}
|
|
|
Summary(ja): %{name} 用のドキュメント
|
|
|
-Group: Documentation
|
|
|
+Group: documentation
|
|
|
BuildArch: noarch
|
|
|
|
|
|
%description docs
|
|
|
This package contains documentation for %{name}.
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
-%patch0 -p1
|
|
|
+%autosetup -p1
|
|
|
+
|
|
|
|
|
|
%build
|
|
|
%meson -Dgtk_doc=true -Dpython=true
|
|
|
%meson_build
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
%meson_install
|
|
@@ -75,6 +74,7 @@ This package contains documentation for %{name}.
|
|
|
find ${RPM_BUILD_ROOT} -name '*.a' -exec rm -f {} \;
|
|
|
find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} \;
|
|
|
|
|
|
+
|
|
|
%check
|
|
|
%meson_test
|
|
|
|
|
@@ -82,10 +82,6 @@ find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} \;
|
|
|
%clean
|
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
-
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
@@ -93,7 +89,7 @@ find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} \;
|
|
|
%doc AUTHORS ChangeLog NEWS README
|
|
|
%{_libdir}/%{name}-1.0.so.*
|
|
|
%{_libdir}/girepository-1.0/Ggit-1.0.typelib
|
|
|
-%{python3_sitearch}/gi/overrides/*
|
|
|
+%{python3_sitelib}/gi/overrides/*
|
|
|
|
|
|
%files devel
|
|
|
%defattr(-,root,root,-)
|
|
@@ -110,6 +106,12 @@ find ${RPM_BUILD_ROOT} -name '*.la' -exec rm -f {} \;
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Wed Oct 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.99.0.1-1
|
|
|
+- new upstream release.
|
|
|
+- dropped ldconfig scriptlets.
|
|
|
+- dropped Patch0.
|
|
|
+- imported Patch0 and 1 from upstream.
|
|
|
+
|
|
|
* Tue May 05 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.28.0.1-1
|
|
|
- new upstream release.
|
|
|
- dropped Patch1.
|