[packages/git-lfs] up to 1.5.2 (22 November, 2016)

glen glen at pld-linux.org
Mon Nov 28 22:22:02 CET 2016


commit 4cdf72e6e64f6f3f3214cfe9ef128fd4e9fdb500
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Nov 28 23:16:41 2016 +0200

    up to 1.5.2 (22 November, 2016)

 git-lfs.spec | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/git-lfs.spec b/git-lfs.spec
index 4e16f7b..6c496ae 100644
--- a/git-lfs.spec
+++ b/git-lfs.spec
@@ -5,22 +5,23 @@
 
 Summary:	Git extension for versioning large files
 Name:		git-lfs
-Version:	1.4.3
+Version:	1.5.2
 Release:	1
 License:	MIT
 Group:		Applications/Archiving
 Source0:	https://github.com/github/git-lfs/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	ee4bf9682af1c223facc772c50aa7488
+# Source0-md5:	6585ffb66f30180c98f8038e5b7d1349
 URL:		https://git-lfs.github.com/
 BuildRequires:	git-core
 BuildRequires:	golang
 BuildRequires:	groff
 %{?with_doc:BuildRequires:	ronn}
-Requires:	git-core >= 1.8.2
+Requires:	git-core >= 1.8.5
 ExclusiveArch:	%{ix86} %{x8664} %{arm}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_enable_debug_packages 0
+%define		import_path	github.com/git-lfs/%{name}
 
 %ifarch %{ix86}
 %define GOARCH 386
@@ -36,14 +37,20 @@ 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}
+%setup -qc
+
+# preserve for %doc
+mv %{name}-%{version}/*.md .
+
+install -d src/$(dirname %{import_path})
+mv %{name}-%{version} src/%{import_path}
 
 %build
 unset GOROOT
 export GOPATH=$(pwd)
 export GOARCH=%{GOARCH}
+
+cd src/%{import_path}
 sh -x ./script/bootstrap
 
 %if %{with doc}
@@ -52,7 +59,6 @@ sh -x ./script/bootstrap
 
 %if %{with tests}
 # ensure there are no GIT env vars for testing
-#unset GIT_DIR GIT_WORK_TREE
 env | grep GIT_ && exit 3
 
 ./script/test
@@ -63,6 +69,7 @@ env | grep GIT_ && exit 3
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
 
+cd src/%{import_path}
 install -p bin/git-lfs $RPM_BUILD_ROOT%{_bindir}/git-lfs
 %if %{with doc}
 cp -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list