Remove old cruft

This commit is contained in:
Garrett Holmstrom 2017-01-26 18:22:27 -08:00
parent 610f5f5ac3
commit a366807dc3

View File

@ -2,13 +2,10 @@ Name: cloud-init
Version: 0.7.9 Version: 0.7.9
Release: 1%{?dist} Release: 1%{?dist}
Summary: Cloud instance init scripts Summary: Cloud instance init scripts
Group: System Environment/Base
License: GPLv3 License: GPLv3
URL: http://launchpad.net/cloud-init URL: http://launchpad.net/cloud-init
Source0: https://launchpad.net/cloud-init/trunk/%{version}/+download/%{name}-%{version}.tar.gz Source0: https://launchpad.net/cloud-init/trunk/%{version}/+download/%{name}-%{version}.tar.gz
# bzr export -r 1245 cloud-init-0.7.6-bzr1245.tar.gz lp:cloud-init
#Source0: cloud-init-0.7.6-bzr1245.tar.gz
Source1: cloud-init-fedora.cfg Source1: cloud-init-fedora.cfg
Source2: cloud-init-README.fedora Source2: cloud-init-README.fedora
Source3: cloud-init-tmpfiles.conf Source3: cloud-init-tmpfiles.conf
@ -42,12 +39,10 @@ Patch12: cloud-init-0.7.9-disable-lxd-tests.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: pkgconfig BuildRequires: pkgconfig(systemd)
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: systemd BuildRequires: systemd
# For pkgconfig
BuildRequires: systemd-devel
# For tests # For tests
BuildRequires: iproute BuildRequires: iproute
@ -108,7 +103,6 @@ cp -p %{SOURCE2} README.fedora
%install %install
rm -rf $RPM_BUILD_ROOT
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --init-system=systemd %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --init-system=systemd
# Don't ship the tests # Don't ship the tests
@ -137,13 +131,7 @@ nosetests-%{python3_version} tests/unittests/ \
-e test_metadata_encoding -e test_metadata_encoding
%clean
rm -rf $RPM_BUILD_ROOT
%post %post
# These services are now enabled by the cloud image's kickstart.
# They should probably be done with a preset instead.
%systemd_post cloud-config.service cloud-config.target cloud-final.service cloud-init.service cloud-init.target cloud-init-local.service %systemd_post cloud-config.service cloud-config.target cloud-final.service cloud-init.service cloud-init.target cloud-init-local.service