Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[idna] Use macros for build and install. JB#49612
  • Loading branch information
jusa committed May 13, 2020
1 parent a89b2ae commit 6c47ca4
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 6c47ca4

Please sign in to comment.