Browse Source

gogs update version and move to new repo

Signed-off-by: webbuilder_pel7ppc64bebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64bebuilder0 6 years ago
parent
commit
1cdffed4f5
  1. 24
      SPECS/gogs.spec

24
SPECS/gogs.spec

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
%define gogs_logdir /var/log/gogs/

Name : gogs
Version : 0.11.43
Version : 0.11.53
Release : 1%{dist}
License : MIT
URL : http://gogs.io
@ -24,14 +24,14 @@ Gogs(Go Git Service) is a painless self-hosted Git Service written in Go. @@ -24,14 +24,14 @@ Gogs(Go Git Service) is a painless self-hosted Git Service written in Go.
%prep
%setup -T -q -c %{name}-%{version}
export GOPATH=`pwd`
go get -u github.com/gogits/gogs
go get -u github.com/gogs/gogs


%build
export GOPATH=`pwd`
cd src/github.com/gogits/gogs
cd src/github.com/gogs/gogs
git checkout tags/v%{version}
go build
go build -ldflags '-extldflags -s -w'
sed -i 's|^STATIC_ROOT_PATH =$|STATIC_ROOT_PATH = /usr/share/gogs/templates/default/|g' conf/app.ini
sed -i 's|^ROOT =$|ROOT = /var/lib/gogs/|g' conf/app.ini
sed -i 's|^APP_DATA_PATH = data$|APP_DATA_PATH = /var/lib/gogs/data|g' conf/app.ini
@ -44,16 +44,16 @@ sed -i 's|^TEMP_PATH = data/tmp/uploads$|TEMP_PATH = /var/lib/gogs/data/tmp/uplo @@ -44,16 +44,16 @@ sed -i 's|^TEMP_PATH = data/tmp/uploads$|TEMP_PATH = /var/lib/gogs/data/tmp/uplo

%install
install -p -D -m 0644 %{SOURCE0} %{buildroot}%{_unitdir}/gogs.service
install -p -D -m 0644 src/github.com/gogits/gogs/conf/app.ini %{buildroot}%{_sysconfdir}/gogs/app.ini
cp -r src/github.com/gogits/gogs/conf/locale %{buildroot}%{_sysconfdir}/gogs/
cp -r src/github.com/gogits/gogs/conf/license %{buildroot}%{_sysconfdir}/gogs/
cp -r src/github.com/gogits/gogs/conf/label %{buildroot}%{_sysconfdir}/gogs/
cp -r src/github.com/gogits/gogs/conf/readme %{buildroot}%{_sysconfdir}/gogs/
install -p -D -m 0644 src/github.com/gogs/gogs/conf/app.ini %{buildroot}%{_sysconfdir}/gogs/app.ini
cp -r src/github.com/gogs/gogs/conf/locale %{buildroot}%{_sysconfdir}/gogs/
cp -r src/github.com/gogs/gogs/conf/license %{buildroot}%{_sysconfdir}/gogs/
cp -r src/github.com/gogs/gogs/conf/label %{buildroot}%{_sysconfdir}/gogs/
cp -r src/github.com/gogs/gogs/conf/readme %{buildroot}%{_sysconfdir}/gogs/
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/gogs
mkdir -p %{buildroot}%{_datadir}/%{name}/templates/default/
cp -r src/github.com/gogits/gogs/templates %{buildroot}%{_datadir}/%{name}/templates/default/
cp -r src/github.com/gogits/gogs/public %{buildroot}%{_datadir}/%{name}/templates/default/
install -p -D -m 0555 src/github.com/gogits/gogs/gogs %{buildroot}%{_bindir}/gogs
cp -r src/github.com/gogs/gogs/templates %{buildroot}%{_datadir}/%{name}/templates/default/
cp -r src/github.com/gogs/gogs/public %{buildroot}%{_datadir}/%{name}/templates/default/
install -p -D -m 0555 src/github.com/gogs/gogs/gogs %{buildroot}%{_bindir}/gogs
install -p -d -m 0700 %{buildroot}%{gogs_home}
install -p -d -m 0700 %{buildroot}%{gogs_logdir}


Loading…
Cancel
Save