Use macros for build and install
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
783d24d58a
commit
275596c0d3
@ -59,7 +59,7 @@ Requires: python3-dateutil
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python3} setup.py build
|
%py3_build
|
||||||
|
|
||||||
%{__mkdir_p} bin
|
%{__mkdir_p} bin
|
||||||
echo 'python3 -c "import alembic.config; alembic.config.main()" $*' > bin/alembic
|
echo 'python3 -c "import alembic.config; alembic.config.main()" $*' > bin/alembic
|
||||||
@ -71,7 +71,7 @@ help2man --version-string %{version} --no-info -s 1 bin/alembic > alembic.1
|
|||||||
|
|
||||||
install -d -m 0755 %{buildroot}%{_mandir}/man1
|
install -d -m 0755 %{buildroot}%{_mandir}/man1
|
||||||
|
|
||||||
%{__python3} setup.py install --skip-build --root=%{buildroot}
|
%py3_install
|
||||||
mv %{buildroot}/%{_bindir}/%{modname} %{buildroot}/%{_bindir}/%{modname}-3
|
mv %{buildroot}/%{_bindir}/%{modname} %{buildroot}/%{_bindir}/%{modname}-3
|
||||||
ln -s %{modname}-3 %{buildroot}/%{_bindir}/%{modname}-%{python3_version}
|
ln -s %{modname}-3 %{buildroot}/%{_bindir}/%{modname}-%{python3_version}
|
||||||
install -m 0644 alembic.1 %{buildroot}%{_mandir}/man1/alembic-3.1
|
install -m 0644 alembic.1 %{buildroot}%{_mandir}/man1/alembic-3.1
|
||||||
|
Loading…
Reference in New Issue
Block a user