forked from pool/cloud-init
- include the LICENSE
- add dependency on growpart to aupport root partition expansion OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=8
This commit is contained in:
parent
b363ee2095
commit
7582cf4365
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 18 15:01:51 UTC 2014 - rschweikert@suse.com
|
||||||
|
|
||||||
|
- include the LICENSE
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 17 18:37:58 UTC 2014 - rschweikert@suse.com
|
Mon Mar 17 18:37:58 UTC 2014 - rschweikert@suse.com
|
||||||
|
|
||||||
@ -8,7 +13,7 @@ Mon Mar 17 18:37:58 UTC 2014 - rschweikert@suse.com
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 17 17:58:23 UTC 2014 - rschweikert@suse.com
|
Mon Mar 17 17:58:23 UTC 2014 - rschweikert@suse.com
|
||||||
|
|
||||||
- add dependency n growpart to aupport root partition expansion
|
- add dependency on growpart to aupport root partition expansion
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 20 17:51:24 UTC 2014 - dmueller@suse.com
|
Mon Jan 20 17:51:24 UTC 2014 - dmueller@suse.com
|
||||||
|
@ -120,15 +120,23 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/cloud
|
|||||||
mkdir -p %{buildroot}%{_defaultdocdir}
|
mkdir -p %{buildroot}%{_defaultdocdir}
|
||||||
mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{docdir}
|
mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{docdir}
|
||||||
cp -a %{SOURCE1} %{buildroot}/%{_sysconfdir}/cloud/cloud.cfg
|
cp -a %{SOURCE1} %{buildroot}/%{_sysconfdir}/cloud/cloud.cfg
|
||||||
|
# copy the LICENSE
|
||||||
|
cp LICENSE %{buildroot}%{docdir}
|
||||||
# Set the distribution indicator
|
# Set the distribution indicator
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%if 0%{?suse_version} < 1130
|
%if 0%{?suse_version} < 1130
|
||||||
|
#SLE 11, openSUSE 11.x is EOL
|
||||||
sed -i s/INSERT_SUSE_DISTRO/sles/ %{buildroot}/%{_sysconfdir}/cloud/cloud.cfg
|
sed -i s/INSERT_SUSE_DISTRO/sles/ %{buildroot}/%{_sysconfdir}/cloud/cloud.cfg
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} > 1140
|
%if 0%{?suse_version} > 1140
|
||||||
|
%if 0%{?suse_version} == 1315
|
||||||
|
# SLE 12
|
||||||
|
sed -i s/INSERT_SUSE_DISTRO/sles/ %{buildroot}/%{_sysconfdir}/cloud/cloud.cfg
|
||||||
|
%else
|
||||||
sed -i s/INSERT_SUSE_DISTRO/opensuse/ %{buildroot}/%{_sysconfdir}/cloud/cloud.cfg
|
sed -i s/INSERT_SUSE_DISTRO/opensuse/ %{buildroot}/%{_sysconfdir}/cloud/cloud.cfg
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
# remove debian/ubuntu specific profile.d file (bnc#779553)
|
# remove debian/ubuntu specific profile.d file (bnc#779553)
|
||||||
rm -f %{buildroot}%{_sysconfdir}/profile.d/Z99-cloud-locale-test.sh
|
rm -f %{buildroot}%{_sysconfdir}/profile.d/Z99-cloud-locale-test.sh
|
||||||
@ -154,6 +162,8 @@ popd
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
# do not mark as doc or we get conflicts with the doc package
|
||||||
|
%{docdir}/LICENSE
|
||||||
%{_bindir}/cloud-init
|
%{_bindir}/cloud-init
|
||||||
%{_bindir}/cloud-init-per
|
%{_bindir}/cloud-init-per
|
||||||
%config(noreplace) %{_sysconfdir}/cloud/
|
%config(noreplace) %{_sysconfdir}/cloud/
|
||||||
@ -177,10 +187,15 @@ popd
|
|||||||
%{systemd_prefix}/systemd/system/cloud-final.service
|
%{systemd_prefix}/systemd/system/cloud-final.service
|
||||||
%endif
|
%endif
|
||||||
%dir %attr(0755, root, root) %{_localstatedir}/lib/cloud
|
%dir %attr(0755, root, root) %{_localstatedir}/lib/cloud
|
||||||
|
%dir %{docdir}
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc %{docdir}
|
%{docdir}/examples/*
|
||||||
|
%{docdir}/README
|
||||||
|
%{docdir}/*.txt
|
||||||
|
%{docdir}/*.rst
|
||||||
|
%dir %{docdir}/examples
|
||||||
|
|
||||||
%files test
|
%files test
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user