[packages/gogs] new, version 0.11.34

glen glen at pld-linux.org
Sat Nov 25 00:08:29 CET 2017


commit c3f121a9cbfa629e7ac4483165b532501b89588b
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sat Nov 25 01:07:53 2017 +0200

    new, version 0.11.34

 gogs.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
---
diff --git a/gogs.spec b/gogs.spec
new file mode 100644
index 0000000..a65ca08
--- /dev/null
+++ b/gogs.spec
@@ -0,0 +1,45 @@
+Summary:	Self-hosted Git service
+Name:		gogs
+Version:	0.11.34
+Release:	1
+License:	MIT
+Group:		Applications/WWW
+Source0:	https://github.com/gogits/gogs/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	ee0ad6f4eb808fb4113ddd429ddc3ddd
+URL:		https://gogs.io/
+BuildRequires:	golang >= 1.3.1
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_enable_debug_packages 0
+%define		gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
+%define		gopath		%{_libdir}/golang
+%define		import_path	github.com/gogits/%{name}
+
+%description
+Self-hosted Git service.
+
+%prep
+%setup -qc
+
+mv %{name}-%{version}/{README*,LICENSE} .
+install -d src/$(dirname %{import_path})
+mv %{name}-%{version} src/%{import_path}
+
+%build
+export GOPATH=$(pwd)
+
+%gobuild -o bin/%{name} %{import_path}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -p bin/%{name} $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE
+%doc %lang(zh) README_ZH.md
+%attr(755,root,root) %{_bindir}/gogs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gogs.git/commitdiff/c3f121a9cbfa629e7ac4483165b532501b89588b



More information about the pld-cvs-commit mailing list