Skip to content

Commit

Permalink
Merge changes from upstream spec file
Browse files Browse the repository at this point in the history
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
  • Loading branch information
solj committed Jan 27, 2014
1 parent fccc320 commit 6c59b3b
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions bcfg2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Group: Applications/System
%endif
License: BSD
URL: http://bcfg2.org
Source0: ftp://ftp.mcs.anl.gov/pub/bcfg/bcfg2-%{version}%{?_pre_rc}.tar.gz
Source0: ftp://ftp.mcs.anl.gov/pub/bcfg/%{name}-%{version}%{?_pre_rc}.tar.gz
# Used in %%check
Source1: http://www.w3.org/2001/XMLSchema.xsd
%if %{?rhel}%{!?rhel:10} <= 5 || 0%{?suse_version}
Expand Down Expand Up @@ -80,7 +80,12 @@ BuildRequires: python-sqlalchemy
BuildRequires: python-nose
BuildRequires: mock
BuildRequires: m2crypto
# EPEL uses the properly-named python-django starting with EPEL7
%if 0%{?rhel} && 0%{?rhel} > 6
BuildRequires: python-django
%else
BuildRequires: Django
%endif
BuildRequires: python-genshi
BuildRequires: python-cheetah
BuildRequires: pylibacl
Expand Down Expand Up @@ -122,7 +127,6 @@ BuildRequires: python-docutils
BuildRequires: systemd-units
%endif

Requires: python-lxml
%if 0%{?rhel} && 0%{?rhel} < 6
Requires: python-ssl
%endif
Expand Down Expand Up @@ -288,8 +292,12 @@ Summary: Bcfg2 Web Reporting Interface

%if 0%{?suse_version}
Group: System/Management
Requires: python-django >= 1.2
Requires: python-django-south >= 0.7
%else
Group: System Tools
Requires: Django >= 1.2
Requires: Django-south >= 0.7
Requires: bcfg2-server
%endif
Requires: httpd
Expand Down Expand Up @@ -422,9 +430,6 @@ awk '
# Fixup some paths
%{__perl} -pi -e 's@/etc/default@%{_sysconfdir}/sysconfig@g' tools/bcfg2-cron

%{__perl} -pi -e 's@/usr/lib/bcfg2@%{_libexecdir}@g' debian/bcfg2.cron.daily
%{__perl} -pi -e 's@/usr/lib/bcfg2@%{_libexecdir}@g' debian/bcfg2.cron.hourly

# Get rid of extraneous shebangs
for f in `find src/lib -name \*.py`
do
Expand Down Expand Up @@ -462,7 +467,7 @@ install -d %{buildroot}/var/adm/fillup-templates

mv %{buildroot}%{_bindir}/bcfg2* %{buildroot}%{_sbindir}

%if 0%{?fedora} < 16
%if 0%{?fedora} && 0%{?fedora} < 16 || 0%{?rhel} && 0%{?rhel} < 7
# Install SysV init scripts for everyone but new Fedoras
install -m 755 redhat/scripts/bcfg2.init \
%{buildroot}%{_initrddir}/bcfg2
Expand Down Expand Up @@ -664,7 +669,7 @@ sed "s@http://www.w3.org/2001/xml.xsd@file://$(pwd)/schemas/xml.xsd@" \
%{_mandir}/man5/bcfg2.conf.5*
%ghost %attr(600,root,root) %config(noreplace,missingok) %{_sysconfdir}/bcfg2.cert
%ghost %attr(0600,root,root) %config(noreplace,missingok) %{_sysconfdir}/bcfg2.conf
%if 0%{?fedora} >= 16
%if 0%{?fedora} >= 16 || 0%{?rhel} >= 7
%config(noreplace) %{_unitdir}/%{name}.service
%else
%{_initrddir}/bcfg2
Expand Down Expand Up @@ -699,7 +704,7 @@ sed "s@http://www.w3.org/2001/xml.xsd@file://$(pwd)/schemas/xml.xsd@" \
%defattr(-,root,root,-)
%endif
%ghost %attr(600,root,root) %config(noreplace) %{_sysconfdir}/bcfg2.key
%if 0%{?fedora} >= 16
%if 0%{?fedora} >= 16 || 0%{?rhel} >= 7
%config(noreplace) %{_unitdir}/%{name}-server.service
%else
%{_initrddir}/bcfg2-server
Expand Down Expand Up @@ -762,16 +767,20 @@ sed "s@http://www.w3.org/2001/xml.xsd@file://$(pwd)/schemas/xml.xsd@" \


%changelog
* Mon Jan 27 2014 Sol Jerome <sol.jerome@gmail.com> - 1.3.3-4
- Fix BuildRequires for EPEL7's Django
- Remove unnecessary client-side lxml dependency
- Add Django dependency for bcfg2-web (the web package *does* require
Django for the database)
- Fix OS detection for RHEL7 initscripts

* Sun Dec 15 2013 John Morris <john@zultron.com> - 1.3.3-3
- Remove unneeded Django dep in 'web' package, bz #1043229

* Sun Nov 24 2013 John Morris <john@zultron.com> - 1.3.3-2
- Fix CherryPyCore.py exclude glob to include compiled files
- Disable server-cherrypy package build to make Fedora buildsys happy

* Thu Nov 07 2013 Sol Jerome <sol.jerome@gmail.com> 1.3.3-1
- New upstream release

* Sun Aug 04 2013 John Morris <john@zultron.com> - 1.3.2-2
- Reconcile divergences with upstream specfile, as requested by upstream
(equally large changes made upstream version to reconcile with
Expand Down

0 comments on commit 6c59b3b

Please sign in to comment.