Summary: Light and fast Git hosting solution
Name: @PRJ@
Version: @VER@
Release: @REV@
License: GPLv3
Group: Development/Tools
Source: http://kernel.embedromix.ro/us/rocketgit/%{name}-%{version}.tar.gz
URL: http://kernel.embedromix.ro/us/
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildArch: noarch
Requires: httpd, php, php-cli, php-pgsql, php-gd, xinetd
Requires: shadow-utils, git, postgresql-server, policycoreutils-python
%description
Light and fast Git hosting solution, similar with Gitorious/GitHub/etc.
%pre
getent group rocketgit >/dev/null || groupadd -r rocketgit
getent passwd rocketgit >/dev/null || useradd -r -g rocketgit -s /bin/bash -m -d /home/rocketgit -c "RocketGit user" rocketgit
semanage fcontext -a -t httpd_log_t "/var/log/rocketgit-web(/.*)?" || :
semanage fcontext -a -t public_content_rw_t "/var/lib/rocketgit(/.*)?" || :
%post
if [ $1 -ne 0 ]; then
/sbin/service xinetd reload &>/dev/null || :
/sbin/service httpd reload &>/dev/null || :
fi
%postun
if [ $1 = 0 ]; then
userdel rocketgit
semanage fcontext -d "/var/lib/rocketgit(/.*)?" || :
semanage fcontext -d "/var/log/rocketgit-web(/.*)?" || :
fi
%prep
%setup -q
%build
%configure
make
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}
make install DESTDIR=${RPM_BUILD_ROOT}
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%attr (-,root,root)
%attr(0755,root,root) %dir @USR_SHARE@/@PRJ@
%attr(0755,root,root) %doc README LICENSE Changelog TODO
%attr(0755,root,root) %dir @ETC@/@PRJ@
%attr(0755,root,root) %config(noreplace) @ETC@/@PRJ@/config.php
%attr(0755,root,root) @ETC@/@PRJ@/config.php.sample
%attr(0755,root,root) @ETC@/cron.d/rocketgit
%attr(0755,roor,root) %config(noreplace) @ETC@/xinetd.d/rocketgit
%attr(0755,root,root) %config(noreplace) @ETC@/httpd/conf.d/rocketgit.conf
%attr(0755,root,root) %config(noreplace) @ETC@/logrotate.d/rocketgit
%attr(0700,rocketgit,rocketgit) %dir @VAR_LOG@/@PRJ@
%attr(0700,apache,apache) %dir @VAR_LOG@/@PRJ@-web
%attr(0755,rocketgit,rocketgit) %dir @VAR_LIB@/@PRJ@
%attr(0700,rocketgit,rocketgit) %dir @VAR_LIB@/@PRJ@/locks
%attr(0755,rocketgit,rocketgit) %dir @VAR_LIB@/@PRJ@/repos
%attr(0700,rocketgit,rocketgit) %dir @VAR_LIB@/@PRJ@/q_merge_requests
%attr(0755,rocketgit,rocketgit) %dir @VAR_LIB@/@PRJ@/sockets
%changelog
* Wed Oct 17 2012 Catalin(ux) M. BOIE <catab at embedromix dor ro> 0.10
Alpha1 version released with a lot of fixes and some features.
* Mon Jun 27 2011 Catalin(ux) M. BOIE <catab at embedromix dot ro> 0.2
Another round of bulk changes.