]> git.pld-linux.org Git - packages/gitlab-workhorse.git/commitdiff
actually install sysv initscript
authorElan Ruusamäe <glen@delfi.ee>
Mon, 5 Sep 2016 21:03:58 +0000 (00:03 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 5 Sep 2016 21:04:08 +0000 (00:04 +0300)
refs 913d015

gitlab-workhorse.spec

index ed3f99db9cf9eb7b61320277ac1fa2350991aabc..160ca311b58310cc3d390c1ea423ffb8b1fc13de 100644 (file)
@@ -1,16 +1,20 @@
 Summary:       An HTTP daemon that serves Git clients
 Name:          gitlab-workhorse
 Version:       0.7.11
-Release:       2
+Release:       3
 License:       MIT
 Group:         Development/Building
 Source0:       https://gitlab.com/gitlab-org/gitlab-workhorse/repository/archive.tar.gz?ref=v%{version}&/%{name}-%{version}.tar.gz
 # Source0-md5: 182135dd2174198e33a2660a02545e4d
 Source1:       %{name}.service
+Source2:       %{name}.init
 URL:           https://gitlab.com/gitlab-org/gitlab-workhorse
 BuildRequires: git-core
 BuildRequires: golang >= 1.5
-%{?with_systemd:BuildRequires: systemd-units}
+BuildRequires: rpmbuild(macros) >= 1.647
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
+Requires:      systemd-units >= 0.38
 Obsoletes:     gitlab-git-http-server <= 0.3.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -38,10 +42,11 @@ grep "$version" v
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{systemdunitdir}}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{systemdunitdir},/etc/rc.d/init.d}
 
 install -p %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
+cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -64,5 +69,6 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc CHANGELOG README.md LICENSE
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
 %attr(755,root,root) %{_sbindir}/%{name}
 %{systemdunitdir}/%{name}.service
This page took 0.063956 seconds and 4 git commands to generate.