aboutsummaryrefslogtreecommitdiffstats
path: root/guix/guile-git
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2017-12-10 01:56:21 +0800
committerTing-Wei Lan <lantw44@gmail.com>2017-12-10 14:17:32 +0800
commitebfa81e8a10908864df718154e19f84638592033 (patch)
tree53a0de11619d282b668d27970474da4ee41717e0 /guix/guile-git
parent393a8a2118ccd7c1de9840e2a3015fd5f71ac9b9 (diff)
downloadcopr-rpm-spec-ebfa81e8a10908864df718154e19f84638592033.tar
copr-rpm-spec-ebfa81e8a10908864df718154e19f84638592033.tar.gz
copr-rpm-spec-ebfa81e8a10908864df718154e19f84638592033.tar.bz2
copr-rpm-spec-ebfa81e8a10908864df718154e19f84638592033.tar.lz
copr-rpm-spec-ebfa81e8a10908864df718154e19f84638592033.tar.xz
copr-rpm-spec-ebfa81e8a10908864df718154e19f84638592033.tar.zst
copr-rpm-spec-ebfa81e8a10908864df718154e19f84638592033.zip
guix: Guix 0.13.0 -> 0.14.0
Diffstat (limited to 'guix/guile-git')
-rw-r--r--guix/guile-git/guile-git.spec78
1 files changed, 78 insertions, 0 deletions
diff --git a/guix/guile-git/guile-git.spec b/guix/guile-git/guile-git.spec
new file mode 100644
index 0000000..42c96a1
--- /dev/null
+++ b/guix/guile-git/guile-git.spec
@@ -0,0 +1,78 @@
+%global commit 951a32c56cc4d80f8836e3c7394783e69c1fcbad
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: guile-git
+Version: 0.1
+Release: 0.1.20171106git%{shortcommit}%{?dist}
+Summary: Guile bindings of libgit2
+
+License: GPLv3+
+URL: https://gitlab.com/guile-git/guile-git
+Source0: https://gitlab.com/guile-git/guile-git/repository/%{commit}/archive.tar.bz2#/%{name}-%{commit}.tar.bz2
+
+%global debug_package %{nil}
+%global guile_source_dir %{_datadir}/guile/site/2.0
+%global guile_ccache_dir %{_libdir}/guile/2.0/site-ccache
+
+BuildRequires: autoconf, automake, texinfo
+BuildRequires: pkgconfig(guile-2.0), pkgconfig(libgit2), guile-bytestructures
+Requires: guile, guile-bytestructures, libgit2-devel
+Requires(post): info
+Requires(preun): info
+
+%description
+Guile-Git provides Guile bindings to libgit2, a library to manipulate
+repositories of the Git version control system.
+
+
+%prep
+%autosetup -n %{name}-%{commit}-%{commit} -p1
+
+
+%build
+./bootstrap
+%configure
+%make_build
+
+
+%check
+# segfault on i686
+%ifnarch %{ix86}
+make %{?_smp_mflags} check
+%endif
+
+
+%install
+%make_install
+
+
+%post
+/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
+
+
+%preun
+if [ "$1" = 0 ]; then
+ /sbin/install-info --del %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
+fi
+
+
+%files
+%license COPYING
+%doc README.md
+%{guile_source_dir}/git.scm
+%{guile_ccache_dir}/git.go
+%dir %{guile_source_dir}/git
+%dir %{guile_ccache_dir}/git
+%{guile_source_dir}/git/*.scm
+%{guile_ccache_dir}/git/*.go
+%dir %{guile_source_dir}/git/web
+%dir %{guile_ccache_dir}/git/web
+%{guile_source_dir}/git/web/*.scm
+%{guile_ccache_dir}/git/web/*.go
+%{_infodir}/%{name}.info.gz
+%exclude %{_infodir}/dir
+
+
+%changelog
+* Sat Dec 09 2017 Ting-Wei Lan <lantw44@gmail.com> - 0.1-0.1.20171106git951a32c
+- Initial packaging