diff --git a/fm-rest-api/centos/fm-rest-api.spec b/fm-rest-api/centos/fm-rest-api.spec index 5de140e8..674d0892 100644 --- a/fm-rest-api/centos/fm-rest-api.spec +++ b/fm-rest-api/centos/fm-rest-api.spec @@ -65,9 +65,6 @@ install -p -D -m 755 scripts/fm-api %{buildroot}%{local_initddir}/fm-api install -d -m 755 %{buildroot}%{local_etc_pmond} install -p -D -m 644 fm-api-pmond.conf %{buildroot}%{local_etc_pmond}/fm-api.conf -# Install sql migration stuff that wasn't installed by setup.py -install -m 640 fm/db/sqlalchemy/migrate_repo/migrate.cfg %{buildroot}%{pythonroot}/fm/db/sqlalchemy/migrate_repo/migrate.cfg - # install default config files cd %{_builddir}/%{name}-%{version} && oslo-config-generator --config-file fm/config-generator.conf --output-file %{_builddir}/%{name}-%{version}/fm.conf.sample install -p -D -m 644 %{_builddir}/%{name}-%{version}/fm.conf.sample %{buildroot}%{_sysconfdir}/fm/fm.conf diff --git a/fm-rest-api/fm/setup.py b/fm-rest-api/fm/setup.py index d8388fb3..763b5b09 100644 --- a/fm-rest-api/fm/setup.py +++ b/fm-rest-api/fm/setup.py @@ -29,7 +29,7 @@ setup( platforms=['any'], provides=['fm'], packages=find_packages(), - package_data={}, + package_data={'fm': ['db/sqlalchemy/migrate_repo/migrate.cfg'], }, include_package_data=False, entry_points={ 'fm.database.migration_backend': [