Skip to content

Commit

Permalink
Merge branch 'jb49612' into 'master'
Browse files Browse the repository at this point in the history
Use macros for build and install.

See merge request mer-core/python3-idna!1
  • Loading branch information
jusa committed May 13, 2020
2 parents a89b2ae + 6c47ca4 commit c573eaf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rpm/python3-idna.spec
@@ -1,6 +1,3 @@
# fixme: should be defined in base system side
%define python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")

Name: python3-idna
Summary: Internationalized Domain Names in Applications
Version: 2.9
Expand All @@ -23,11 +20,11 @@ This acts as a suitable replacement for the “encodings.idna” module that com
%setup -q -n %{name}-%{version}/idna

%build
python3 ./setup.py build
%{py3_build}

%install
rm -rf %{buildroot}
python3 ./setup.py install --skip-build --root %{buildroot}
%{py3_install}

%files
%defattr(-,root,root,-)
Expand Down

0 comments on commit c573eaf

Please sign in to comment.