[copr] master: initial spec file (47ef195)

msuchy at fedoraproject.org msuchy at fedoraproject.org
Mon Jun 17 12:52:44 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit 47ef1951667dc17224469bf3aad5815858617198
Author: Miroslav Suchý <msuchy at redhat.com>
Date:   Fri Jun 14 10:27:44 2013 +0200

    initial spec file
    
    At least package copr-cli is functional.
    Backend and frontend will need some work.


>---------------------------------------------------------------

 copr.spec |   97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 97 insertions(+), 0 deletions(-)

diff --git a/copr.spec b/copr.spec
new file mode 100644
index 0000000..29a5efb
--- /dev/null
+++ b/copr.spec
@@ -0,0 +1,97 @@
+Name:		copr
+Version:	1.0
+Release:	1%{?dist}
+Summary:	Cool Other Package Repo
+
+Group:		Applications/Productivity
+License:	GPLv2+
+URL:		https://fedorahosted.org/copr/
+Source0:	%{name}-%{version}.tar.gz
+
+%description
+COPR is lightway Koji. It allows you to create new project in WebUI, and
+submit new builds and COPR will create yum repository from latests builds.
+
+%package backend
+Summary:	Backend for COPR
+Requires:   ansible >= 0.9
+Requires:   lighttpd
+Requires:   euca2ools
+Requires:   rsync
+Requires:   openssh-clients
+Requires:   mock
+Requires:   yum-utils
+Requires:   createrepo
+Requires:   python-bunch
+Requires:   python-requests
+
+%description backend
+COPR is lightway Koji. It allows you to create new project in WebUI, and
+submit new builds and COPR will create yum repository from latests builds.
+
+This package contains backend.
+
+%package frontend
+Summary:    Frontend for COPR
+Requires:   httpd
+Requires:	mod_wsgi
+Requires:	postgresql-server
+Requires:   postgresql-devel
+Requires:	gcc
+Requires:   python-flask
+Requires:   python-flask-openid
+Requires:   python-flask-wtf
+Requires:   python-flask-sqlalchemy
+#Requires:	python-virtualenv
+Requires:   python-blinker
+Requires:	python-whoosh
+# for tests:
+Requires:	pytest
+
+%description frontend
+COPR is lightway Koji. It allows you to create new project in WebUI, and
+submit new builds and COPR will create yum repository from latests builds.
+
+This package contains frontend.
+
+%package cli
+Summary:	Command line interface for COPR
+Requires:	python-requests
+%if 0%{?rhel} < 7 && 0%{?rhel} > 0
+Requires:   python-argparse
+%endif
+
+%description cli
+COPR is lightway Koji. It allows you to create new project in WebUI, and
+submit new builds and COPR will create yum repository from latests builds.
+
+This package contains command line interface.
+
+%prep
+%setup -q
+
+
+%build
+mv copr_cli/README.rst ./
+
+%install
+%{__python} coprcli-setup.py install --root %{buildroot}
+
+%pre backend
+getent group copr >/dev/null || groupadd -r copr
+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
+
+%files backend
+%doc LICENSE README
+
+%files frontend
+%doc LICENSE
+
+%files cli
+%doc LICENSE README.rst
+%{_bindir}/copr-cli
+%{python_sitelib}/*
+
+%changelog



More information about the copr-devel mailing list