Add hooks for python wheel generation
This update adds hooks to the spec files for the following packages to generate wheels for the python modules: - distributedcloud-client-wheels - distributedcloud-wheels - gnocchi-wheels - openstack-ceilometer-wheels - openstack-cinder-wheels - openstack-glance-wheels - openstack-heat-wheels - openstack-ironic-wheels - openstack-keystone-wheels - openstack-magnum-ui-wheels - openstack-magnum-wheels - openstack-murano-ui-wheels - openstack-murano-wheels - openstack-neutron-wheels - openstack-nova-wheels - python-ceilometerclient-wheels - python-cinderclient-wheels - python-django-horizon-wheels - python-glanceclient-wheels - python-gnocchiclient-wheels - python-ironicclient-wheels - python-magnumclient-wheels - python-muranoclient-wheels - python-networking-bgpvpn-wheels - python-networking-odl-wheels - python-networking-sfc-wheels - python-neutronclient-wheels - python-neutron-dynamic-routing-wheels - python-neutron-lib-wheels - python-novaclient-wheels - python-openstacksdk-wheels Change-Id: I35ac2c82ea32c516488dc3ea2a86d9a4ca57051e Story: 2003907 Task: 27530 Signed-off-by: Don Penney <don.penney@windriver.com>
This commit is contained in:
parent
03deda000b
commit
4c798d22c5
31
centos_wheels.inc
Normal file
31
centos_wheels.inc
Normal file
@ -0,0 +1,31 @@
|
||||
distributedcloud-client-wheels
|
||||
distributedcloud-wheels
|
||||
gnocchi-wheels
|
||||
openstack-ceilometer-wheels
|
||||
openstack-cinder-wheels
|
||||
openstack-glance-wheels
|
||||
openstack-heat-wheels
|
||||
openstack-ironic-wheels
|
||||
openstack-keystone-wheels
|
||||
openstack-magnum-ui-wheels
|
||||
openstack-magnum-wheels
|
||||
openstack-murano-ui-wheels
|
||||
openstack-murano-wheels
|
||||
openstack-neutron-wheels
|
||||
openstack-nova-wheels
|
||||
python-ceilometerclient-wheels
|
||||
python-cinderclient-wheels
|
||||
python-django-horizon-wheels
|
||||
python-glanceclient-wheels
|
||||
python-gnocchiclient-wheels
|
||||
python-ironicclient-wheels
|
||||
python-magnumclient-wheels
|
||||
python-muranoclient-wheels
|
||||
python-networking-bgpvpn-wheels
|
||||
python-networking-odl-wheels
|
||||
python-networking-sfc-wheels
|
||||
python-neutronclient-wheels
|
||||
python-neutron-dynamic-routing-wheels
|
||||
python-neutron-lib-wheels
|
||||
python-novaclient-wheels
|
||||
python-openstacksdk-wheels
|
@ -20,6 +20,8 @@ BuildArch: noarch
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-jsonschema >= 2.0.0
|
||||
BuildRequires: python-keystonemiddleware
|
||||
BuildRequires: python-oslo-concurrency
|
||||
@ -75,10 +77,13 @@ rm -rf {test-,}requirements.txt tools/{pip,test}-requires
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py build
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# prep SDK package
|
||||
mkdir -p %{buildroot}/usr/share/remote-clients
|
||||
@ -94,3 +99,11 @@ tar zcf %{buildroot}/usr/share/remote-clients/%{pypi_name}-%{version}.tgz --excl
|
||||
%files sdk
|
||||
/usr/share/remote-clients/%{pypi_name}-%{version}.tgz
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
@ -34,6 +34,8 @@ BuildRequires: python-cryptography
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-eventlet
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-jsonschema >= 2.0.0
|
||||
BuildRequires: python-keyring
|
||||
BuildRequires: python-keystonemiddleware
|
||||
@ -91,6 +93,7 @@ rm -rf {test-,}requirements.txt tools/{pip,test}-requires
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py build
|
||||
%py2_build_wheel
|
||||
# Generate sample config and add the current directory to PYTHONPATH so
|
||||
# oslo-config-generator doesn't skip heat's entry points.
|
||||
PYTHONPATH=. oslo-config-generator --config-file=./dcmanager/config-generator.conf
|
||||
@ -101,6 +104,8 @@ PYTHONPATH=. oslo-config-generator --config-file=./dcorch/config-generator.conf
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot} \
|
||||
--single-version-externally-managed
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
mkdir -p %{buildroot}/var/log/dcmanager
|
||||
mkdir -p %{buildroot}/var/cache/dcmanager
|
||||
mkdir -p %{buildroot}/var/run/dcmanager
|
||||
@ -185,3 +190,12 @@ getent passwd dcorch >/dev/null || \
|
||||
useradd --uid 173 -r -g dcorch -d /var/lib/dcorch -s /sbin/nologin \
|
||||
-c "dcorch Daemons" dcorch
|
||||
exit 0
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
@ -21,6 +21,8 @@ Source4: ironic-dist.conf
|
||||
BuildArch: noarch
|
||||
BuildRequires: openstack-macros
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: openssl-devel
|
||||
@ -97,10 +99,13 @@ export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py build
|
||||
# Generate i18n files
|
||||
%{__python2} setup.py compile_catalog -d build/lib/ironic/locale
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# Create fake egg-info for the tempest plugin
|
||||
# TODO switch to %{service} everywhere as in openstack-example.spec
|
||||
@ -272,6 +277,15 @@ This package contains the Ironic test files.
|
||||
%{python2_sitelib}/ironic_tempest_plugin
|
||||
%{python2_sitelib}/%{service}_tests.egg-info
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Fri Nov 03 2017 RDO <dev@lists.rdoproject.org> 1:9.1.2-1
|
||||
- Update to 9.1.2
|
||||
@ -281,4 +295,3 @@ This package contains the Ironic test files.
|
||||
|
||||
* Thu Aug 24 2017 Alfredo Moralejo <amoralej@redhat.com> 1:9.1.0-1
|
||||
- Update to 9.1.0
|
||||
|
||||
|
@ -17,6 +17,8 @@ BuildArch: noarch
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: git
|
||||
|
||||
Requires: python-pbr
|
||||
@ -59,6 +61,7 @@ rm -f *requirements.txt
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py build
|
||||
%py2_build_wheel
|
||||
|
||||
# generate html docs
|
||||
export PYTHONPATH=/usr/share/openstack-dashboard
|
||||
@ -69,6 +72,8 @@ export PYTHONPATH=/usr/share/openstack-dashboard
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# Move config to horizon
|
||||
install -p -D -m 640 %{module}/enabled/_1370_project_container_infra_panel_group.py %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/local/enabled/_1370_project_container_infra_panel_group.py
|
||||
@ -86,6 +91,15 @@ install -p -D -m 640 %{module}/enabled/_1372_project_container_infra_cluster_tem
|
||||
%license LICENSE
|
||||
#%doc doc/build/html README.rst
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Aug 24 2017 Alfredo Moralejo <amoralej@redhat.com> 3.0.0-1
|
||||
|
@ -20,6 +20,8 @@ BuildRequires: git
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-werkzeug
|
||||
BuildRequires: systemd-units
|
||||
# Required for config file generation
|
||||
@ -230,10 +232,13 @@ find contrib -name tests -type d | xargs rm -rf
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py build
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# Create fake egg-info for the tempest plugin
|
||||
%py2_entrypoint %{service} %{service}
|
||||
@ -317,6 +322,15 @@ exit 0
|
||||
%{python2_sitelib}/%{service}/tests
|
||||
%{python2_sitelib}/%{service}_tests.egg-info
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 28 2017 rdo-trunk <javier.pena@redhat.com> 5.0.1-1
|
||||
- Update to 5.0.1
|
||||
|
@ -29,6 +29,8 @@ BuildRequires: python-oslo-config >= 2:3.14.0
|
||||
BuildRequires: python-pbr >= 1.6
|
||||
BuildRequires: python-semantic-version
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-testtools
|
||||
BuildRequires: python-yaql >= 1.1.0
|
||||
BuildRequires: tsconfig
|
||||
@ -94,10 +96,13 @@ export OSLO_PACKAGE_VERSION=%{upstream_version}
|
||||
%{__python2} setup.py build_sphinx -b html
|
||||
# remove the sphinx-build leftovers
|
||||
rm -rf doc/build/html/.{doctrees,buildinfo}
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_install
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
mkdir -p %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/local/enabled
|
||||
mkdir -p %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d
|
||||
mkdir -p %{buildroot}/var/cache/murano-dashboard
|
||||
@ -138,6 +143,15 @@ fi
|
||||
%license LICENSE
|
||||
%doc doc/build/html
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 30 2017 rdo-trunk <javier.pena@redhat.com> 4.0.0-1
|
||||
- Update to 4.0.0
|
||||
|
@ -27,6 +27,8 @@ BuildArch: noarch
|
||||
BuildRequires: git
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-jsonschema >= 2.0.0
|
||||
BuildRequires: python-keystonemiddleware
|
||||
BuildRequires: python-oslo-config
|
||||
@ -162,10 +164,13 @@ export PBR_VERSION=%{version}
|
||||
# oslo-config-generator doesn't skip heat's entry points.
|
||||
PYTHONPATH=. oslo-config-generator --config-file=./etc/oslo-config-generator/murano.conf
|
||||
PYTHONPATH=. oslo-config-generator --config-file=./etc/oslo-config-generator/murano-cfapi.conf
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# Create fake egg-info for the tempest plugin
|
||||
# TODO switch to %{service} everywhere as in openstack-example.spec
|
||||
@ -278,6 +283,15 @@ mv %{buildroot}%{python2_sitelib}/%{pypi_name}/locale %{buildroot}%{_datadir}/lo
|
||||
%{python2_sitelib}/murano_tempest_tests
|
||||
%{python2_sitelib}/%{service}_tests.egg-info
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 30 2017 rdo-trunk <javier.pena@redhat.com> 4.0.0-1
|
||||
- Update to 4.0.0
|
||||
|
@ -46,6 +46,8 @@ BuildRequires: openstack-macros
|
||||
BuildRequires: python-cotyledon
|
||||
BuildRequires: python-sphinx
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-pbr >= 1.10.0
|
||||
BuildRequires: git
|
||||
BuildRequires: python-d2to1
|
||||
@ -392,9 +394,13 @@ while read name eq value; do
|
||||
sed -i "0,/^# *$name=/{s!^# *$name=.*!#$name=$value!}" etc/ceilometer/ceilometer.conf
|
||||
done < %{SOURCE1}
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# Install sql migration cfg and sql files that were not installed by setup.py
|
||||
install -m 644 ceilometer/storage/sqlalchemy/migrate_repo/migrate.cfg %{buildroot}%{python_sitelib}/ceilometer/storage/sqlalchemy/migrate_repo/migrate.cfg
|
||||
@ -685,6 +691,14 @@ exit 0
|
||||
%{_sysconfdir}/ceilometer/ceilometer-polling-compute.conf.pmon
|
||||
%{_unitdir}/%{name}-polling.service
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Tue Sep 12 2017 rdo-trunk <javier.pena@redhat.com> 1:9.0.1-1
|
||||
|
@ -20,6 +20,8 @@ BuildArch: noarch
|
||||
|
||||
BuildRequires: git
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-pbr >= 1.6
|
||||
%if 0%{?with_python3}
|
||||
@ -115,6 +117,7 @@ rm -f test-requirements.txt
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_build
|
||||
%py2_build_wheel
|
||||
%if 0%{?with_python3}
|
||||
%py3_build
|
||||
%endif
|
||||
@ -122,6 +125,8 @@ export PBR_VERSION=%{version}
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
@ -187,6 +192,15 @@ tar zcf %{buildroot}/usr/share/remote-clients/%{name}-%{version}.tgz --exclude='
|
||||
%files sdk
|
||||
/usr/share/remote-clients/%{name}-%{version}.tgz
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Fri Aug 11 2017 Alfredo Moralejo <amoralej@redhat.com> 2.9.0-1
|
||||
- Update to 2.9.0
|
||||
|
@ -52,6 +52,8 @@ BuildRequires: python-reno
|
||||
BuildRequires: python-sphinx
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-netaddr
|
||||
BuildRequires: systemd
|
||||
BuildRequires: git
|
||||
@ -289,14 +291,20 @@ PYTHONPATH=. oslo-config-generator --config-file=cinder/config/cinder-config-gen
|
||||
cp %{SOURCE3} etc/cinder/cinder.conf.sample
|
||||
|
||||
# Build
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py build
|
||||
|
||||
# Generate i18n files
|
||||
# (amoralej) we can remove '-D cinder' once https://review.openstack.org/#/c/439501/ is merged
|
||||
%{__python2} setup.py compile_catalog -d build/lib/%{pypi_name}/locale -D cinder
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# Create fake egg-info for the tempest plugin
|
||||
# TODO switch to %{service} everywhere as in openstack-example.spec
|
||||
@ -452,6 +460,15 @@ exit 0
|
||||
%doc doc/build/html
|
||||
%endif
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 30 2017 rdo-trunk <javier.pena@redhat.com> 1:11.0.0-1
|
||||
- Update to 11.0.0
|
||||
|
@ -28,6 +28,8 @@ Summary: Python API and CLI for OpenStack Cinder
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: python-d2to1
|
||||
|
||||
@ -106,6 +108,7 @@ rm -f {,test-}requirements.txt
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_build
|
||||
%py2_build_wheel
|
||||
%if 0%{?with_python3}
|
||||
%py3_build
|
||||
%endif
|
||||
@ -131,6 +134,8 @@ rm -fr %{buildroot}%{python3_sitelib}/cinderclient/tests
|
||||
%endif
|
||||
|
||||
%py2_install
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
mv %{buildroot}%{_bindir}/cinder %{buildroot}%{_bindir}/cinder-%{python2_version}
|
||||
ln -s ./cinder-%{python2_version} %{buildroot}%{_bindir}/cinder-2
|
||||
# Delete tests
|
||||
@ -171,6 +176,15 @@ tar zcf %{buildroot}/usr/share/remote-clients/%{name}-%{version}.tgz --exclude='
|
||||
%files sdk
|
||||
/usr/share/remote-clients/%{name}-%{version}.tgz
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Fri Aug 11 2017 Alfredo Moralejo <amoralej@redhat.com> 3.1.0-1
|
||||
- Update to 3.1.0
|
||||
|
@ -49,6 +49,8 @@ BuildArch: noarch
|
||||
BuildRequires: git
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: intltool
|
||||
# Required for config generation
|
||||
@ -214,9 +216,13 @@ export PBR_VERSION=%{version}
|
||||
# Generate i18n files
|
||||
%{__python2} setup.py compile_catalog -d build/lib/%{service}/locale
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
export PYTHONPATH="$( pwd ):$PYTHONPATH"
|
||||
%if 0%{?with_doc}
|
||||
@ -394,6 +400,15 @@ exit 0
|
||||
%doc doc/build/html
|
||||
%endif
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 30 2017 rdo-trunk <javier.pena@redhat.com> 1:15.0.0-1
|
||||
- Update to 15.0.0
|
||||
|
@ -32,6 +32,8 @@ Summary: Python API and CLI for OpenStack Glance
|
||||
%{?python_provide:%python_provide python2-glanceclient}
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-pbr
|
||||
|
||||
@ -110,6 +112,7 @@ rm -rf test-requirements.txt
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_build
|
||||
%py2_build_wheel
|
||||
%if 0%{?with_python3}
|
||||
%py3_build
|
||||
%endif
|
||||
@ -135,6 +138,9 @@ install -pm 644 tools/glance.bash_completion \
|
||||
%{buildroot}%{_sysconfdir}/bash_completion.d/glance
|
||||
install -p -D -m 500 %{SOURCE1} %{buildroot}/sbin/image-backup
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# Delete tests
|
||||
rm -fr %{buildroot}%{python2_sitelib}/glanceclient/tests
|
||||
|
||||
@ -181,6 +187,15 @@ tar zcf %{buildroot}/usr/share/remote-clients/%{name}/%{name}-%{version}.tgz --e
|
||||
%files sdk
|
||||
/usr/share/remote-clients/%{name}/%{name}-%{version}.tgz
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Fri Aug 11 2017 Alfredo Moralejo <amoralej@redhat.com> 1:2.8.0-1
|
||||
- Update to 2.8.0
|
||||
|
@ -25,6 +25,8 @@ Patch1: Integrate-gnocchi-storage-backend.patch
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python2-sphinx
|
||||
BuildRequires: python2-pbr
|
||||
BuildRequires: python2-devel
|
||||
@ -234,9 +236,13 @@ while read name eq value; do
|
||||
sed -i "0,/^# *$name=/{s!^# *$name=.*!#$name=$value!}" %{service}/%{service}.conf
|
||||
done < %{SOURCE1}
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig/
|
||||
mkdir -p %{buildroot}/%{_sysconfdir}/%{service}/
|
||||
@ -327,6 +333,15 @@ exit 0
|
||||
%doc doc/source/
|
||||
%endif
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Tue Mar 27 2018 Jon Schlueter <jschluet@redhat.com> 4.2.1-1
|
||||
- Update to 4.2.1
|
||||
|
@ -31,6 +31,8 @@ Summary: Python API and CLI for OpenStack Gnocchi
|
||||
|
||||
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-pbr
|
||||
BuildRequires: python2-tools
|
||||
@ -148,6 +150,7 @@ rm -f test-requirements.txt
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_build
|
||||
%py2_build_wheel
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
LANG=en_US.UTF-8 %{__python3} setup.py build
|
||||
@ -165,6 +168,8 @@ popd
|
||||
%endif
|
||||
|
||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# rename binaries, make compat symlinks
|
||||
install -m 755 -d %{buildroot}/%{_bindir}
|
||||
@ -228,6 +233,15 @@ tar zcf %{buildroot}/usr/share/remote-clients/%{pypi_name}-%{version}.tgz --excl
|
||||
%files sdk
|
||||
/usr/share/remote-clients/%{pypi_name}-%{version}.tgz
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Tue Feb 13 2018 RDO <dev@lists.rdoproject.org> 7.0.1-1
|
||||
- Update to 7.0.1
|
||||
|
@ -36,6 +36,8 @@ BuildRequires: python-oslo-middleware
|
||||
BuildRequires: python-oslo-policy
|
||||
BuildRequires: python-oslo-messaging
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-openstackdocstheme
|
||||
BuildRequires: python-oslo-i18n
|
||||
BuildRequires: python-oslo-db
|
||||
@ -164,9 +166,13 @@ export PBR_VERSION=%{version}
|
||||
# oslo-config-generator doesn't skip heat's entry points.
|
||||
PYTHONPATH=. oslo-config-generator --config-file=config-generator.conf
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
sed -i -e '/^#!/,1 d' %{buildroot}/%{python_sitelib}/heat/db/sqlalchemy/migrate_repo/manage.py
|
||||
|
||||
# Create fake egg-info for the tempest plugin
|
||||
@ -527,6 +533,15 @@ running the Heat service in general.
|
||||
%postun monolith
|
||||
%systemd_postun_with_restart openstack-heat-all.service
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Aug 30 2017 rdo-trunk <javier.pena@redhat.com> 1:9.0.0-1
|
||||
|
@ -50,6 +50,8 @@ Requires: python-pbr
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-pbr >= 2.0.0
|
||||
BuildRequires: git
|
||||
BuildRequires: python-six >= 1.9.0
|
||||
@ -317,11 +319,16 @@ sphinx-build -b html doc/source html
|
||||
|
||||
# Fix hidden-file-or-dir warnings
|
||||
rm -fr html/.doctrees html/.buildinfo
|
||||
|
||||
%endif
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# WRS
|
||||
install -d -m 755 %{buildroot}/opt/branding
|
||||
@ -497,6 +504,15 @@ systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
#%{_datadir}/openstack-dashboard/openstack_dashboard/dashboards/theme
|
||||
#%{_datadir}/openstack-dashboard/openstack_dashboard/enabled/_99_customization.*
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Mon Oct 04 2017 Radomir Dopieralski <rdopiera@redhat.com> 1:12.0.0-2
|
||||
- Require at least 3.3.7.1 version of XStatic-bootstrap-SCSS package
|
||||
|
@ -25,6 +25,8 @@ A python and command line client library for Ironic.
|
||||
Summary: Python client for Ironic
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-pbr >= 2.0.0
|
||||
BuildRequires: python-setuptools
|
||||
|
||||
@ -90,6 +92,7 @@ rm -rf {test-,}requirements.txt tools/{pip,test}-requires
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_build
|
||||
%py2_build_wheel
|
||||
%if 0%{?with_python3}
|
||||
%py3_build
|
||||
%endif
|
||||
@ -111,6 +114,9 @@ ln -s ./ironic-2 %{buildroot}%{_bindir}/ironic
|
||||
|
||||
install -p -D -m 644 tools/ironic.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/ironic.bash_completion
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
%files -n python2-%{sname}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
@ -131,6 +137,15 @@ install -p -D -m 644 tools/ironic.bash_completion %{buildroot}%{_sysconfdir}/bas
|
||||
%{python3_sitelib}/python_ironicclient*
|
||||
%endif
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Sep 06 2017 rdo-trunk <javier.pena@redhat.com> 1.17.0-1
|
||||
|
@ -146,6 +146,8 @@ BuildRequires: python-oslo-sphinx
|
||||
BuildRequires: python-passlib
|
||||
BuildRequires: python-pysaml2
|
||||
BuildRequires: python-memcached
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
|
||||
%description doc
|
||||
OpenStack Keystone documentaion.
|
||||
@ -180,10 +182,14 @@ oslo-config-generator --config-file config-generator/keystone.conf \
|
||||
# policy file generation
|
||||
oslopolicy-sample-generator --config-file config-generator/keystone-policy-generator.conf --output-file etc/keystone.policy.yaml
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
# WRS: export PBR version
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/keystone
|
||||
@ -302,4 +308,13 @@ exit 0
|
||||
%license LICENSE
|
||||
%doc doc/build/html
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
|
@ -30,6 +30,8 @@ Summary: Client library for Magnum API
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: git
|
||||
|
||||
@ -165,6 +167,8 @@ export PBR_VERSION=%{version}
|
||||
# Fix hidden-file-or-dir warnings
|
||||
rm -rf doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
|
||||
@ -178,6 +182,8 @@ mv %{buildroot}%{_bindir}/magnum ./magnum.py3
|
||||
%endif
|
||||
|
||||
%py2_install
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
%if 0%{?default_python} >= 3
|
||||
mv magnum.py3 %{buildroot}%{_bindir}/magnum
|
||||
@ -226,6 +232,15 @@ mv magnum.py3 %{buildroot}%{_bindir}/magnum
|
||||
%{python3_sitelib}/%{pname}/tests
|
||||
%endif
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Fri Aug 11 2017 Alfredo Moralejo <amoralej@redhat.com> 2.7.0-1
|
||||
- Update to 2.7.0
|
||||
|
@ -28,6 +28,8 @@ API (the muranoclient module) and a command-line tool (murano).
|
||||
BuildRequires: git
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-pbr >= 2.0.0
|
||||
|
||||
Requires: python-babel >= 2.3.4
|
||||
@ -137,6 +139,8 @@ popd
|
||||
# remove the sphinx-build leftovers
|
||||
rm -rf doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%if 0%{?with_python3}
|
||||
@ -147,6 +151,8 @@ popd
|
||||
%endif
|
||||
|
||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
install -p -D -m 644 tools/murano.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/murano.bash_completion
|
||||
|
||||
@ -189,6 +195,15 @@ tar zcf %{buildroot}/usr/share/remote-clients/%{name}-%{version}.tgz --exclude='
|
||||
%files sdk
|
||||
/usr/share/remote-clients/%{name}-%{version}.tgz
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 14 2017 Alfredo Moralejo <amoralej@redhat.com> 0.14.0-1
|
||||
- Update to 0.14.0
|
||||
|
@ -28,6 +28,8 @@ BuildRequires: python-openvswitch
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: python-reno
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-sphinx
|
||||
BuildRequires: python-subunit
|
||||
BuildRequires: python-testrepository
|
||||
@ -107,9 +109,13 @@ export PBR_VERSION=%{version}
|
||||
# remove the sphinx-build leftovers
|
||||
rm -rf html/.{doctrees,buildinfo}
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_install
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/%{service}/policy.d
|
||||
mv %{buildroot}/usr/etc/neutron/networking_bgpvpn.conf %{buildroot}%{_sysconfdir}/%{service}/
|
||||
@ -151,6 +157,15 @@ ln -s %{_sysconfdir}/%{service}/networking_bgpvpn.conf %{buildroot}%{_datadir}/%
|
||||
%license LICENSE
|
||||
%{python2_sitelib}/networking_bgpvpn_heat
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Mon Mar 13 2017 Matt Peters <matt.peters@windriver.com> 5.0.0-0
|
||||
- Initial Version based on CentOS distribution.
|
||||
|
@ -29,6 +29,8 @@ BuildRequires: python-pbr
|
||||
BuildRequires: python-sphinx
|
||||
BuildRequires: python-testrepository
|
||||
BuildRequires: python-testtools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
|
||||
Requires: openstack-neutron-ml2
|
||||
Requires: python-babel
|
||||
@ -54,6 +56,7 @@ rm requirements.txt test-requirements.txt
|
||||
%{__python2} setup.py build_sphinx -b html
|
||||
rm %{docpath}/.buildinfo
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
#%check
|
||||
#%{__python2} setup.py testr
|
||||
@ -63,6 +66,8 @@ rm %{docpath}/.buildinfo
|
||||
export PBR_VERSION=%{version}
|
||||
export SKIP_PIP_INSTALL=1
|
||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
@ -71,6 +76,15 @@ export SKIP_PIP_INSTALL=1
|
||||
%{python2_sitelib}/%{srcname}
|
||||
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 30 2017 rdo-trunk <javier.pena@redhat.com> 1:11.0.0-1
|
||||
- Update to 11.0.0
|
||||
|
@ -31,6 +31,8 @@ BuildRequires: python-testresources
|
||||
BuildRequires: python-testscenarios
|
||||
BuildRequires: python-neutron-lib-tests
|
||||
BuildRequires: python-neutron-tests
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
|
||||
%description
|
||||
This project provides APIs and implementations to support Service Function
|
||||
@ -137,10 +139,13 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
|
||||
# generate the configuration file
|
||||
PYTHONPATH=. oslo-config-generator --config-file etc/oslo-config-generator/networking-sfc.conf
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_install
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# Create a fake tempest plugin entrypoint
|
||||
%py2_entrypoint %{module} %{pypi_name}
|
||||
@ -176,6 +181,15 @@ mv etc/networking-sfc.conf.sample %{buildroot}%{_sysconfdir}/neutron/conf.d/neut
|
||||
%{python2_sitelib}/%{module}/tests/tempest_plugin
|
||||
%{python2_sitelib}/%{module}/tests/__init__.py*
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 30 2017 rdo-trunk <javier.pena@redhat.com> 5.0.0-1
|
||||
- Update to 5.0.0
|
||||
|
@ -27,6 +27,8 @@ BuildRequires: python-oslo-sphinx
|
||||
BuildRequires: python-oslotest
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-sphinx
|
||||
BuildRequires: python-subunit
|
||||
BuildRequires: python-testrepository
|
||||
@ -87,6 +89,8 @@ PYTHONPATH=. oslo-config-generator --config-file=./etc/oslo-config-generator/bgp
|
||||
# remove the sphinx-build leftovers
|
||||
rm -rf html/.{doctrees,buildinfo}
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
|
||||
@ -96,6 +100,8 @@ install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/neutron-bgp-dragent
|
||||
install -d %{buildroot}%{_sysconfdir}/%{service}/pmon
|
||||
install -m 755 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{service}/pmon/neutron-bgp-dragent.conf
|
||||
%py2_install
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/%{service}/policy.d
|
||||
mv %{buildroot}/usr/etc/%{service}/policy.d/dynamic_routing.conf %{buildroot}%{_sysconfdir}/%{service}/policy.d/
|
||||
@ -124,6 +130,15 @@ mv etc/bgp_dragent.ini.sample %{buildroot}%{_sysconfdir}/%{service}/bgp_dragent.
|
||||
%license LICENSE
|
||||
%{python2_sitelib}/%{sname}/tests
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Mar 13 2017 Matt Peters <matt.peters@windriver.com> 9.2.0-0
|
||||
|
@ -17,6 +17,8 @@ BuildArch: noarch
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: git
|
||||
|
||||
Requires: python-debtcollector >= 1.2.0
|
||||
@ -76,14 +78,20 @@ This package contains the documentation.
|
||||
rm -f *requirements.txt
|
||||
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_build
|
||||
# generate html docs
|
||||
%{__python2} setup.py build_sphinx -b html
|
||||
# remove the sphinx-build leftovers
|
||||
rm -rf doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_install
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
@ -99,6 +107,15 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
|
||||
%license LICENSE
|
||||
%doc doc/build/html README.rst
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 21 2017 Alfredo Moralejo <amoralej@redhat.com> 1.9.1-1
|
||||
- Update to 1.9.1
|
||||
|
@ -65,6 +65,8 @@ BuildArch: noarch
|
||||
BuildRequires: git
|
||||
BuildRequires: openstack-macros
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-babel
|
||||
BuildRequires: python-d2to1
|
||||
BuildRequires: python-keystoneauth1 >= 3.1.0
|
||||
@ -399,9 +401,13 @@ while read name eq value; do
|
||||
fi
|
||||
done < %{SOURCE30}
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# Remove unused files
|
||||
rm -rf %{buildroot}%{python2_sitelib}/bin
|
||||
@ -787,6 +793,15 @@ fi
|
||||
%dir %{_sysconfdir}/%{service}/conf.d/%{service}-sriov-nic-agent
|
||||
%{_sysconfdir}/init.d/%{service}-sriov-nic-agent
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 25 2017 rdo-trunk <javier.pena@redhat.com> 1:11.0.1-1
|
||||
|
@ -30,6 +30,8 @@ Summary: Python API and CLI for OpenStack Neutron
|
||||
BuildRequires: git
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-pbr
|
||||
|
||||
Requires: python-babel >= 2.3.4
|
||||
@ -122,6 +124,7 @@ rm -f test-requirements.txt requirements.txt
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_build
|
||||
%py2_build_wheel
|
||||
%if 0%{?with_python3}
|
||||
%py3_build
|
||||
%endif
|
||||
@ -137,6 +140,8 @@ rm -fr %{buildroot}%{python3_sitelib}/neutronclient/tests
|
||||
%endif
|
||||
|
||||
%py2_install
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
mv %{buildroot}%{_bindir}/neutron %{buildroot}%{_bindir}/neutron-%{python2_version}
|
||||
ln -s ./neutron-%{python2_version} %{buildroot}%{_bindir}/neutron-2
|
||||
|
||||
@ -184,6 +189,15 @@ tar zcf %{buildroot}/usr/share/remote-clients/%{name}/%{name}-%{version}.tgz --e
|
||||
%files sdk
|
||||
/usr/share/remote-clients/%{name}/%{name}-%{version}.tgz
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 14 2017 Alfredo Moralejo <amoralej@redhat.com> 6.5.0-1
|
||||
- Update to 6.5.0
|
||||
|
@ -85,6 +85,8 @@ BuildRequires: python-oslo-cache
|
||||
BuildRequires: python-openstackdocstheme
|
||||
BuildRequires: python-os-traits
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-netaddr
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: python-d2to1
|
||||
@ -502,10 +504,14 @@ while read name eq value; do
|
||||
sed -i "0,/^# *$name=/{s!^# *$name=.*!#$name=$value!}" etc/nova/nova.conf.sample
|
||||
done < %{SOURCE1}
|
||||
|
||||
%py2_build_wheel
|
||||
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
|
||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
# WRS
|
||||
# Install sql migration stuff that wasn't installed by setup.py
|
||||
@ -878,6 +884,15 @@ fi
|
||||
%doc LICENSE doc/build/html
|
||||
%endif
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Wed Oct 25 2017 rdo-trunk <javier.pena@redhat.com> 1:16.0.2-1
|
||||
- Update to 16.0.2
|
||||
|
@ -29,6 +29,8 @@ BuildRequires: python2-devel
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: git
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-dateutil
|
||||
|
||||
Requires: python-babel >= 2.3.4
|
||||
@ -107,6 +109,7 @@ rm -f test-requirements.txt
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_build
|
||||
%py2_build_wheel
|
||||
%if 0%{?with_python3}
|
||||
%py3_build
|
||||
%endif
|
||||
@ -125,6 +128,9 @@ rm -fr %{buildroot}%{python3_sitelib}/novaclient/tests
|
||||
mv %{buildroot}%{_bindir}/nova %{buildroot}%{_bindir}/nova-%{python2_version}
|
||||
ln -s ./nova-%{python2_version} %{buildroot}%{_bindir}/nova-2
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
ln -s ./nova-2 %{buildroot}%{_bindir}/nova
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
|
||||
@ -177,6 +183,15 @@ tar zcf %{buildroot}/usr/share/remote-clients/%{name}/%{name}-%{version}.tgz --e
|
||||
%files sdk
|
||||
/usr/share/remote-clients/%{name}/%{name}-%{version}.tgz
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Fri Oct 06 2017 rdo-trunk <javier.pena@redhat.com> 1:9.1.1-1
|
||||
- Update to 9.1.1
|
||||
|
@ -28,6 +28,8 @@ Summary: An SDK for building applications to work with OpenStack
|
||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
BuildRequires: python-pbr >= 2.0.0
|
||||
BuildRequires: python-sphinx
|
||||
BuildRequires: python-oslo-sphinx
|
||||
@ -135,6 +137,7 @@ clouds - documentation.
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_build
|
||||
%py2_build_wheel
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%{py3_build}
|
||||
@ -150,6 +153,8 @@ rm -rf html/.{doctrees,buildinfo}
|
||||
%install
|
||||
export PBR_VERSION=%{version}
|
||||
%py2_install
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%{py3_install}
|
||||
@ -201,6 +206,15 @@ export PBR_VERSION=%{version}
|
||||
%files sdk
|
||||
/usr/share/remote-clients/%{name}-%{version}.tgz
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
||||
%description wheels
|
||||
Contains python wheels for %{name}
|
||||
|
||||
%files wheels
|
||||
/wheels/*
|
||||
|
||||
%changelog
|
||||
* Mon Sep 12 2016 Haikel Guemar <hguemar@fedoraproject.org> 0.9.5-1
|
||||
- Update to 0.9.5
|
||||
|
Loading…
x
Reference in New Issue
Block a user