python3-devel: Require python-macros
This picks up version independant macros such as python_provide. See fpc#281 and fpc#534 for more details.
This commit is contained in:
parent
70025c7217
commit
cb053c7ab8
@ -4,3 +4,13 @@
|
|||||||
%python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")
|
%python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")
|
||||||
%python3_version_nodots %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
|
%python3_version_nodots %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
|
||||||
%py3dir %{_builddir}/python3-%{name}-%{version}-%{release}
|
%py3dir %{_builddir}/python3-%{name}-%{version}-%{release}
|
||||||
|
|
||||||
|
%py3_shbang_opts -s
|
||||||
|
|
||||||
|
%py3_build() %{expand:\
|
||||||
|
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} build --executable="%{__python3} %{py3_shbang_opts}" %{?1}\
|
||||||
|
}
|
||||||
|
|
||||||
|
%py3_install() %{expand:\
|
||||||
|
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}\
|
||||||
|
}
|
||||||
|
10
python3.spec
10
python3.spec
@ -140,7 +140,7 @@
|
|||||||
Summary: Version 3 of the Python programming language aka Python 3000
|
Summary: Version 3 of the Python programming language aka Python 3000
|
||||||
Name: python3
|
Name: python3
|
||||||
Version: %{pybasever}.2
|
Version: %{pybasever}.2
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: Python
|
License: Python
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
|
|
||||||
@ -791,10 +791,12 @@ Summary: Libraries and header files needed for Python 3 development
|
|||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
|
BuildRequires: python-macros
|
||||||
|
Requires: python-macros
|
||||||
Conflicts: %{name} < %{version}-%{release}
|
Conflicts: %{name} < %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains libraries and header files used to build applications
|
This package contains libraries and header files used to build applications
|
||||||
with and native libraries for Python 3
|
with and native libraries for Python 3
|
||||||
|
|
||||||
%package tools
|
%package tools
|
||||||
@ -1890,6 +1892,10 @@ rm -fr %{buildroot}
|
|||||||
# ======================================================
|
# ======================================================
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 29 2015 Thomas Spura <tomspur@fedoraproject.org> - 3.4.2-5
|
||||||
|
- python3-devel: Require python-macros for version independant macros such as
|
||||||
|
python_provide. See fpc#281 and fpc#534.
|
||||||
|
|
||||||
* Mon Jan 12 2015 Dan Horák <dan[at]danny.cz> - 3.4.2-4
|
* Mon Jan 12 2015 Dan Horák <dan[at]danny.cz> - 3.4.2-4
|
||||||
- build with valgrind on ppc64le
|
- build with valgrind on ppc64le
|
||||||
- disable test_gdb on s390(x) until rhbz#1181034 is resolved
|
- disable test_gdb on s390(x) until rhbz#1181034 is resolved
|
||||||
|
Loading…
Reference in New Issue
Block a user