Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 850084 Details for
Bug 1053142
Please provide EPEL-6 packages for copr-cli
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch for copr.spec to build only copr-cli
0001-only-build-copr-cli-on-el6.patch (text/plain), 4.81 KB, created by
Niels de Vos
on 2014-01-14 18:19:08 UTC
(
hide
)
Description:
Patch for copr.spec to build only copr-cli
Filename:
MIME Type:
Creator:
Niels de Vos
Created:
2014-01-14 18:19:08 UTC
Size:
4.81 KB
patch
obsolete
>From 0a313f5564bdeea6aade4af53ffd697f66d5a91d Mon Sep 17 00:00:00 2001 >From: Niels de Vos <devos@fedoraproject.org> >Date: Tue, 14 Jan 2014 19:04:25 +0100 >Subject: [PATCH] only build copr-cli on el6 > >--- > copr.spec | 28 +++++++++++++++++++++++++--- > 1 files changed, 25 insertions(+), 3 deletions(-) > >diff --git a/copr.spec b/copr.spec >index f0a68ca..287dac7 100644 >--- a/copr.spec >+++ b/copr.spec >@@ -1,6 +1,9 @@ > %global with_test 1 >+%global with_server 1 > %if 0%{?rhel} < 7 && 0%{?rhel} > 0 > %global _pkgdocdir %{_docdir}/%{name}-%{version} >+%global __python2 %{__python} >+%global with_server 0 > %endif > %global moduletype apps > %global modulename copr >@@ -28,7 +31,9 @@ BuildRequires: util-linux > BuildRequires: python-setuptools > BuildRequires: python-requests > BuildRequires: python2-devel >+%if %{with_server} > BuildRequires: systemd >+%endif > %if 0%{?rhel} < 7 && 0%{?rhel} > 0 > BuildRequires: python-argparse > %endif >@@ -36,14 +41,17 @@ BuildRequires: python-argparse > BuildRequires: epydoc > BuildRequires: graphviz > BuildRequires: make >+%if %{with_server} > #for selinux > BuildRequires: checkpolicy, selinux-policy-devel > BuildRequires: policycoreutils >= %{POLICYCOREUTILSVER} >+%endif > > %description > COPR is lightweight build system. It allows you to create new project in WebUI, > and submit new builds and COPR will create yum repository from latest builds. > >+%if %{with_server} > %package backend > Summary: Backend for COPR > Requires: ansible >= 1.2 >@@ -115,6 +123,7 @@ COPR is lightweight build system. 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. >+%endif # with_server > > %package cli > Summary: Command line interface for COPR >@@ -129,6 +138,7 @@ and submit new builds and COPR will create yum repository from latests builds. > > This package contains command line interface. > >+%if %{with_server} > %package doc > Summary: Code documentation for COPR > >@@ -151,7 +161,7 @@ COPR is lightweight build system. It allows you to create new project in WebUI, > and submit new builds and COPR will create yum repository from latests builds. > > This package include SELinux targeted module for COPR >- >+%endif > > %prep > %setup -q >@@ -170,6 +180,7 @@ pushd documentation > make %{?_smp_mflags} python > popd > >+%if %{with_server} > #selinux > pushd selinux > perl -i -pe 'BEGIN { $VER = join ".", grep /^\d+$/, split /\./, "%{version}.%{release}"; } s!\@\@VERSION\@\@!$VER!g;' %{modulename}.te >@@ -180,9 +191,11 @@ for selinuxvariant in targeted; do > make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean > done > popd >+%endif > > %install > >+%if %{with_server} > #backend > install -d %{buildroot}%{_sharedstatedir}/copr > install -d %{buildroot}%{_sharedstatedir}/copr/jobs >@@ -234,12 +247,14 @@ mv %{buildroot}%{_datadir}/copr/coprs_frontend/coprs.conf.example ./ > mv %{buildroot}%{_datadir}/copr/coprs_frontend/config/* %{buildroot}%{_sysconfdir}/copr > rm %{buildroot}%{_datadir}/copr/coprs_frontend/CONTRIBUTION_GUIDELINES > touch %{buildroot}%{_sharedstatedir}/copr/data/copr.db >+%endif # with_server > > #copr-cli > %{__python2} coprcli-setup.py install --root %{buildroot} > install -d %{buildroot}%{_mandir}/man1 > install -p -m 644 man/copr-cli.1 %{buildroot}/%{_mandir}/man1/ > >+%if %{with_server} > #doc > cp -a documentation/python-doc %{buildroot}%{_pkgdocdir}/ > cp -a playbooks %{buildroot}%{_pkgdocdir}/ >@@ -262,14 +277,16 @@ install -p -m 755 selinux/%{name}-selinux-relabel %{buildroot}%{_sbindir}/%{name > install -d %{buildroot}%{_mandir}/man8 > install -p -m 644 man/%{name}-selinux-enable.8 %{buildroot}/%{_mandir}/man8/ > install -p -m 644 man/%{name}-selinux-relabel.8 %{buildroot}/%{_mandir}/man8/ >+%endif > > %check >-%if ! 0%{?with_test:1} >+%if ! 0%{?with_test:1} && %{with_server} > pushd coprs_frontend > COPR_CONFIG="$(pwd)/config/copr_unit_test.conf" ./manage.py test > popd > %endif > >+%if %{with_server} > %pre backend > getent group copr >/dev/null || groupadd -r copr > getent passwd copr >/dev/null || \ >@@ -362,7 +379,7 @@ fi > %config(noreplace) %{_sysconfdir}/copr/copr.conf > %config(noreplace) %{_sysconfdir}/copr/copr_devel.conf > %config(noreplace) %{_sysconfdir}/copr/copr_unit_test.conf >- >+%endif # with_server > > %files cli > %doc LICENSE README.rst >@@ -370,6 +387,7 @@ fi > %{python_sitelib}/* > %{_mandir}/man1/copr-cli.1* > >+%if %{with_server} > %files doc > %doc %{_pkgdocdir}/python-doc > >@@ -381,8 +399,12 @@ fi > %{_sbindir}/%{name}-selinux-relabel > %{_mandir}/man8/%{name}-selinux-enable.8* > %{_mandir}/man8/%{name}-selinux-relabel.8* >+%endif # with_server > > %changelog >+* Sat Jan 11 2014 Niels de Vos <devos@fedoraproject.org> >+- Do not package backend/frontend/selinux subpackahes on el6 >+ > * Tue Dec 10 2013 Miroslav Suchý <msuchy@redhat.com> 1.15-1 > - [frontend] smarter package name parsing > - [frontend] extend range to allow 0 >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1053142
: 850084