Source28: neutron-dev-server.service
Source29: neutron-rpc-server.service
-Source30: %{service}-dist.conf
Source31: conf.README
BuildArch: noarch
export SKIP_PIP_INSTALL=1
%{__python2} setup.py build
-# Loop through values in neutron-dist.conf and make sure that the values
-# are substituted into the neutron.conf as comments. Some of these values
-# will have been uncommented as a way of upstream setting defaults outside
-# of the code. For notification_driver, there are commented examples
-# above uncommented settings, so this specifically skips those comments
-# and instead comments out the actual settings and substitutes the
-# correct default values.
-while read name eq value; do
- test "$name" && test "$value" || continue
- if [ "$name" = "notification_driver" ]; then
- sed -ri "0,/^$name *=/{s!^$name *=.*!# $name = $value!}" etc/%{service}.conf
- else
- sed -ri "0,/^(#)? *$name *=/{s!^(#)? *$name *=.*!# $name = $value!}" etc/%{service}.conf
- fi
-done < %{SOURCE30}
-
%install
# pbr does not like dashes in version strings, neither it likes fc* prefixes (dev* is fine)
#export PBR_VERSION=%{version}.%(echo %{release} | sed 's/%{?dist}//')
install -d -m 755 %{buildroot}%{_localstatedir}/log/%{service}
install -d -m 755 %{buildroot}%{_localstatedir}/run/%{service}
-# Install dist conf
-install -p -D -m 640 %{SOURCE30} %{buildroot}%{_datadir}/%{service}/%{service}-dist.conf
-
# Create and populate configuration directory for L3 agent that is not accessible for user modification
mkdir -p %{buildroot}%{_datadir}/%{service}/l3_agent
ln -s %{_sysconfdir}/%{service}/l3_agent.ini %{buildroot}%{_datadir}/%{service}/l3_agent/l3_agent.conf
%dir %{_sysconfdir}/%{service}/conf.d
%dir %{_sysconfdir}/%{service}/conf.d/common
%dir %{_sysconfdir}/%{service}/plugins
-%attr(-, root, %{service}) %{_datadir}/%{service}/%{service}-dist.conf
%config(noreplace) %attr(0640, root, %{service}) %{_sysconfdir}/%{service}/%{service}.conf
%config(noreplace) %{_sysconfdir}/%{service}/rootwrap.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/*
%changelog
+* Fri Nov 20 2015 Sergey Kolekonov <skolekonov@mirantis.com> 7.0.0
+- Remove neutron-dist.conf from packages
* Fri Nov 6 2015 Sergey Kolekonov <skolekonov@mirantis.com> 7.0.0
- Update specs for 7.0.0 release
* Thu Sep 3 2015 Sergey Kolekonov <skolekonov@mirantis.com> 7.0.0.0b3