Use bindata tag to keep everything in the binary
This commit is contained in:
		
							
								
								
									
										22
									
								
								gitea.spec
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								gitea.spec
									
									
									
									
									
								
							| @@ -2,8 +2,8 @@ ExclusiveArch:  %{go_arches} | ||||
|  | ||||
| Name:           gitea | ||||
| Version:        1.8.3 | ||||
| Release:        1%{?dist} | ||||
| Summary:        Go GIT Server | ||||
| Release:        3%{?dist} | ||||
| Summary:        Gitea: Git with a cup of tea | ||||
|  | ||||
| License:        MIT | ||||
| URL:            https://gitea.io/en-us/ | ||||
| @@ -68,7 +68,8 @@ export GOOS | ||||
| # | ||||
| # Using -v to display what is happening | ||||
| # | ||||
| go build -a -v -tags 'cert pam sqlite' | ||||
| # go build -a -v -tags 'bindata pam sqlite sqlite_unlock_notify' | ||||
| TAGS='bindata pam sqlite sqlite_unlock_notify' make genrate build | ||||
| sed -i \ | ||||
| 	-e 's|^User=.*$|User=gitea|g' \ | ||||
| 	-e 's|^Group=.*$|Group=gitea|g' \ | ||||
| @@ -88,8 +89,9 @@ cd src/code.gitea.io/gitea | ||||
| %{__install} -d %{buildroot}/var/log/gitea | ||||
| %{__install} -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name} | ||||
| %{__install} -p -m 0644 contrib/systemd/gitea.service %{buildroot}/usr/lib/systemd/system/gitea.service | ||||
| %{__cp} -rp templates %{buildroot}/var/lib/gitea/ | ||||
| %{__cp} -rp public %{buildroot}/var/lib/gitea/ | ||||
| # %{__cp} -rp options %{buildroot}/var/lib/gitea/ | ||||
| # %{__cp} -rp public %{buildroot}/var/lib/gitea/ | ||||
| # %{__cp} -rp templates %{buildroot}/var/lib/gitea/ | ||||
|  | ||||
|  | ||||
| %pre | ||||
| @@ -109,13 +111,17 @@ getent passwd gitea > /dev/null 2>&1 || useradd -r -d /var/lib/gitea -s /bin/bas | ||||
| %{_bindir}/%{name} | ||||
| %attr(0644, root, root) /usr/lib/systemd/system/gitea.service | ||||
| %attr(-, gitea, gitea) %config(noreplace) %{_sysconfdir}/gitea | ||||
| %attr(-, gitea, gitea) %config(noreplace) /var/lib/gitea/templates | ||||
| %attr(-, gitea, gitea) %config(noreplace) /var/lib/gitea/public | ||||
| # %attr(-, gitea, gitea) %config(noreplace) /var/lib/gitea/options | ||||
| # %attr(-, gitea, gitea) %config(noreplace) /var/lib/gitea/public | ||||
| # %attr(-, gitea, gitea) %config(noreplace) /var/lib/gitea/templates | ||||
|  | ||||
|  | ||||
| %changelog | ||||
| * Sun Jul 28 2019 Jason Rothstein | ||||
| - version bump 1.8.3 | ||||
| * Use the bindata tag to bundle everything internally | ||||
|  | ||||
| * Sun Jul 28 2019 Jason Rothstein | ||||
| - Put options into /var/lib/gitea so the locale data is available | ||||
|  | ||||
| * Sun Jul 28 2019 Jason Rothstein | ||||
| - version bump 1.8.2 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user