X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cobbler.spec;h=e616292e1f2f0b556903651e9fa6e81002ad80ad;hb=5b50bdc3accde46a6856e683a6ac286a021f1720;hp=80ddb7e8be220b0e2b482c8c5fe830be8f3a7b89;hpb=1e630a85d418768dacef84e18b6ac3747975c52a;p=packages%2Fcentos7%2Fcobbler.git diff --git a/cobbler.spec b/cobbler.spec index 80ddb7e..e616292 100644 --- a/cobbler.spec +++ b/cobbler.spec @@ -16,8 +16,9 @@ Name: cobbler License: GPLv2+ AutoReq: no Version: 2.6.9 -Release: 1%{?dist}~mos1 +Release: 1%{?dist}~mos13 Source0: https://github.com/cobbler/cobbler/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: cobblerd.logrotate # Support newer virt-install - https://bugzilla.redhat.com/show_bug.cgi?id=1188424 Patch0: cobbler-virtinstall.patch # Support centos release numbering @@ -26,6 +27,13 @@ Patch1: cobbler-centos.patch # Support django1.7+ # https://github.com/cobbler/cobbler-web/issues/9 Patch2: cobbler-django17.patch +# Add ALLOWED_HOSTS into djando settings +Patch3: Mirantis-Add-ALLOWED_HOSTS-for-settings.patch +# Add signatures for Ubuntu 16.04 and Fedora 24 +Patch4: Mirantis-Signatures-for-Ubuntu-16.04-and-Fedora-24.patch +# Fix bug 1603615 - mangling kernel options with the key --in-place +Patch5: Mirantis-mangling-kopts-bugfix.patch + Group: Applications/System BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch @@ -89,6 +97,9 @@ other applications. # django 1.8 on Fedora 22+ %if 0%{?fedora} >= 22 || 0%{?rhel} >= 6 %patch2 -p1 -b .django17 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 %endif %build @@ -102,7 +113,11 @@ test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT rm $RPM_BUILD_ROOT%{_sysconfdir}/cobbler/cobbler.conf mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d +%if 0%{?rhel} < 7 mv $RPM_BUILD_ROOT%{_sysconfdir}/cobbler/cobblerd_rotate $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/cobblerd +%else +mv %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/cobblerd +%endif # Create data directories in tftp_dir mkdir -p $RPM_BUILD_ROOT%{tftp_dir}/{boot,etc,grub,images{,2},ppc,pxelinux.cfg,s390x} @@ -284,6 +299,20 @@ sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" /usr/share/cobbler/ %changelog +* Tue Jul 27 2016 Albert Syriy - 2.6.9-1~mos12 +- Add patch to fix the LP bug 1603615 (mangling kernel options) + +* Tue Jun 13 2016 Dmitry Teselkkin - 2.6.9-1~mos11 +- Add patch to add signatures for Ubuntu 16.04 + +* Thu May 19 2016 Ivan Suzdal - 2.6.9-1~mos10 +- Add patch to fix 'error 400' for cobbler-web (LP: #1583648) +- Bump version + +* Thu Feb 11 2016 Ivan Suzdal - 2.6.9-1~mos9 +- Add 'rhel' condition for django17 path +- Bump version + * Tue Sep 29 2015 Artem Silenkov - 2.6.9-1~mos8.0.1 - Make sources local - Rebuild from epel7