Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit e3db200bcf51a869b25c3032b136e3244727c967 Author: Miroslav Suchý msuchy@redhat.com Date: Tue Jun 18 10:01:22 2013 +0200
put frontend into copr.spec
copr.spec | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/copr.spec b/copr.spec index 90714e4..10c4c4f 100644 --- a/copr.spec +++ b/copr.spec @@ -82,8 +82,15 @@ mv copr_cli/README.rst ./ a2x -d manpage -f manpage man/copr-cli.1.asciidoc
%install -%{__python} coprcli-setup.py install --root %{buildroot}
+#frontend +install -d %{buildroot}%{_datadir}/coprs_frontend +cp -a coprs_frontend/* %{buildroot}%{_datadir}/coprs_frontend +mv %{buildroot}%{_datadir}/coprs_frontend/coprs.conf.example ./ +rm %{buildroot}%{_datadir}/coprs_frontend/CONTRIBUTION_GUIDELINES + +#copr-cli +%{__python} coprcli-setup.py install --root %{buildroot} install -d %{buildroot}%{_mandir}/man1 install -m 644 man/copr-cli.1 %{buildroot}/%{_mandir}/man1/
@@ -93,11 +100,19 @@ getent passwd copr >/dev/null || \ useradd -r -g copr -G apache -d %{_var}/lib/copr -s /bin/bash -c "COPR user" copr /usr/bin/passwd -l copr >/dev/null
+%pre frontend +getent group copr-fe >/dev/null || groupadd -r copr-fe +getent passwd copr-fe >/dev/null || \ +useradd -r -g copr-fe -G copr-fe -d %{_datadir}/coprs_frontend -s /bin/bash -c "COPR frontend user" copr-fe +/usr/bin/passwd -l copr-fe >/dev/null + %files backend %doc LICENSE README
%files frontend -%doc LICENSE +%doc LICENSE coprs.conf.example +%defattr(-, copr-fe, copr-fe, -) +%{_datadir}/coprs_frontend
%files cli %doc LICENSE README.rst
copr-devel@lists.fedorahosted.org