[packages/git-lfs] new, version 1.0.0

glen glen at pld-linux.org
Fri Oct 16 23:12:11 CEST 2015


commit c5539a2157bcfc8c193b469af9a87e8fdb7aa876
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Oct 17 00:10:15 2015 +0300

    new, version 1.0.0
    
    GitHub's version of storing large files off git repo (github storage)
    
    spec based on github's own src.rpm from packagecloud
    https://packagecloud.io/github/git-lfs

 git-lfs.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
---
diff --git a/git-lfs.spec b/git-lfs.spec
new file mode 100644
index 0000000..be2afb6
--- /dev/null
+++ b/git-lfs.spec
@@ -0,0 +1,70 @@
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+%bcond_with	doc		# build manual page
+
+Summary:	Git extension for versioning large files
+Name:		git-lfs
+Version:	1.0.0
+Release:	1
+License:	MIT
+Group:		Applications/Archiving
+Source0:	https://github.com/github/git-lfs/archive/%{name}-%{version}.tar.gz
+# Source0-md5:	3aa5af50952fd447bbf4d4386a382e39
+URL:		https://git-lfs.github.com/
+BuildRequires:	bison
+BuildRequires:	git-core
+BuildRequires:	golang
+BuildRequires:	perl-Digest-SHA
+%{?with_doc:BuildRequires:	ruby-ronn}
+BuildRequires:	which
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_enable_debug_packages 0
+
+%description
+Git Large File Storage (LFS) replaces large files such as audio
+samples, videos, datasets, and graphics with text pointers inside Git,
+while storing the file contents on a remote server like GitHub.com or
+GitHub Enterprise.
+
+%prep
+%setup -q
+mkdir -p src/github.com/github
+ln -s $(pwd) src/github.com/github/%{name}
+
+%build
+export GOPATH=$(pwd)
+%ifarch %{ix86}
+	GOARCH=386 ./script/bootstrap
+%endif
+%ifarch %{x8664}
+	GOARCH=amd64 ./script/bootstrap
+%endif
+
+%if %{with doc}
+./script/man
+%endif
+
+%if %{with tests}
+./script/test
+./script/integration
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+
+install -p bin/git-lfs $RPM_BUILD_ROOT%{_bindir}/git-lfs
+%if %{with doc}
+cp -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.md README.md
+%attr(755,root,root) %{_bindir}/git-lfs
+%{?with_doc:%{_mandir}/man1/*.1*}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/git-lfs.git/commitdiff/c5539a2157bcfc8c193b469af9a87e8fdb7aa876



More information about the pld-cvs-commit mailing list