- Make it a noarch package
- Fixed dependencies - Build HTML documentation and install that OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlalchemy-migrate?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
7fabb05e81
commit
b47c9fdb3e
@@ -20,21 +20,24 @@
|
||||
|
||||
Name: python-sqlalchemy-migrate
|
||||
Version: 0.7.1
|
||||
Release: 1
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Database schema migration for SQLAlchemy
|
||||
Url: http://pypi.python.org/pypi/sqlalchemy-migrate
|
||||
Group: Development/Libraries/Python
|
||||
Source: http://pypi.python.org/packages/source/s/sqlalchemy-migrate/sqlalchemy-migrate-0.7.1.tar.gz
|
||||
BuildRequires: python-py
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-Sphinx >= 0.5
|
||||
BuildRequires: python-distribute
|
||||
Requires: python-SQLAlchemy >= 0.5
|
||||
Requires: python-Tempita
|
||||
Requires: python-decorator
|
||||
Requires: python-nose >= 0.10
|
||||
Requires: python-sphinx >= 0.5
|
||||
Requires: python-sqlalchemy >= 0.5
|
||||
Requires: python-tempita
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%py_requires
|
||||
%if 0%{?suse_version} > 1110
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
%description
|
||||
Inspired by Ruby on Rails' migrations, Migrate provides a way to deal with
|
||||
@@ -46,15 +49,20 @@ well as from inside python code.
|
||||
|
||||
%prep
|
||||
%setup -q -n sqlalchemy-migrate-%{version}
|
||||
find . -type f -name "*.py" -o -name "*.py_tmpl" | xargs sed -i "1d" # Fix non-executable scripts
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
cd docs && make html && rm _build/html/.buildinfo # Build HTML documentation
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=filelist
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%files -f filelist
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc PKG-INFO README docs
|
||||
%doc README docs/_build/html
|
||||
%{_bindir}/migrate
|
||||
%{_bindir}/migrate-repository
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user