* Fri Jan 29 2016 Fabian Affolter <mail@fabian-affolter.ch> - 0.4.7-1

- Upadte spec file
- Update to latest upstream version 0.4.7
epel8
Fabian Affolter 9 years ago
parent 146606ee7f
commit d174e2e192

1
.gitignore vendored

@ -9,3 +9,4 @@
/msgpack-python-0.4.4.tar.gz /msgpack-python-0.4.4.tar.gz
/msgpack-python-0.4.5.tar.gz /msgpack-python-0.4.5.tar.gz
/msgpack-python-0.4.6.tar.gz /msgpack-python-0.4.6.tar.gz
/msgpack-python-0.4.7.tar.gz

@ -1,19 +1,12 @@
%global srcname msgpack %global srcname msgpack
%global sum A Python MessagePack (de)serializer
%if 0%{?fedora} %global __provides_exclude_from ^(%{python2_sitearch}/.*\\.so)$
%global with_python3 1 %global __provides_exclude_from ^(%{python3_sitearch}/.*\\.so)$
%endif
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
Name: python-%{srcname} Name: python-%{srcname}
Version: 0.4.6 Version: 0.4.7
Release: 5%{?dist} Release: 1%{?dist}
Summary: A Python MessagePack (de)serializer Summary: %{sum}
License: ASL 2.0 License: ASL 2.0
URL: http://pypi.python.org/pypi/msgpack-python/ URL: http://pypi.python.org/pypi/msgpack-python/
@ -22,53 +15,43 @@ Source0: http://pypi.python.org/packages/source/m/%{srcname}-python/%{src
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python-setuptools BuildRequires: python-setuptools
BuildRequires: pytest BuildRequires: pytest
Provides: python2-%{srcname} = %{version}-%{release} BuildRequires: python3-devel
BuildRequires: python3-setuptools
# We don't want to provide private python extension libs BuildRequires: python3-pytest
%{?filter_setup:
%filter_provides_in %{python2_sitearch}/.*\.so$
%if 0%{?with_python3}
%filter_provides_in %{python3_sitearch}/.*\.so$
%endif
%filter_setup
}
%description %description
MessagePack is a binary-based efficient data interchange format that is MessagePack is a binary-based efficient data interchange format that is
focused on high performance. It is like JSON, but very fast and small. focused on high performance. It is like JSON, but very fast and small.
This is a Python (de)serializer for MessagePack. This is a Python (de)serializer for MessagePack.
%if 0%{?with_python3} %package -n python2-%{srcname}
Summary: %{sum}
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
MessagePack is a binary-based efficient data interchange format that is
focused on high performance. It is like JSON, but very fast and small.
This is a Python (de)serializer for MessagePack.
%package -n python3-%{srcname} %package -n python3-%{srcname}
Summary: A Python MessagePack (de)serializer Summary: %{sum}
BuildRequires: python3-devel %{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
%description -n python3-%{srcname} %description -n python3-%{srcname}
MessagePack is a binary-based efficient data interchange format that is MessagePack is a binary-based efficient data interchange format that is
focused on high performance. It is like JSON, but very fast and small. focused on high performance. It is like JSON, but very fast and small.
This is a Python (de)serializer for MessagePack. This is a Python (de)serializer for MessagePack.
%endif
%prep %prep
%setup -q -n %{srcname}-python-%{version} %autosetup -n %{srcname}-python-%{version}
%build %build
%{__python2} setup.py build %py2_build
%py3_build
%if 0%{?with_python3}
%{__python3} setup.py build
%endif
%install %install
%{__python2} setup.py install --skip-build --root %{buildroot} %py2_install
%py3_install
%if 0%{?with_python3}
%{__python3} setup.py install --skip-build --root %{buildroot}
%endif
%check %check
export PYTHONPATH=$(pwd) export PYTHONPATH=$(pwd)
@ -79,20 +62,23 @@ py.test-%{python_version} -v test
py.test-%{python3_version} -v test py.test-%{python3_version} -v test
%endif # with_python3 %endif # with_python3
%files -n python2-%{srcname}
%files %doc README.rst
%doc COPYING README.rst %license COPYING
%{python2_sitearch}/%{srcname}/ %{python2_sitearch}/%{srcname}/
%{python2_sitearch}/%{srcname}*.egg-info %{python2_sitearch}/%{srcname}*.egg-info
%if 0%{?with_python3}
%files -n python3-%{srcname} %files -n python3-%{srcname}
%doc COPYING README.rst %doc README.rst
%license COPYING
%{python3_sitearch}/%{srcname}/ %{python3_sitearch}/%{srcname}/
%{python3_sitearch}/%{srcname}*.egg-info %{python3_sitearch}/%{srcname}*.egg-info
%endif
%changelog %changelog
* Fri Jan 29 2016 Fabian Affolter <mail@fabian-affolter.ch> - 0.4.7-1
- Upadte spec file
- Update to latest upstream version 0.4.7
* Wed Dec 30 2015 Orion Poplawski <orion@cora.nwra.com> - 0.4.6-5 * Wed Dec 30 2015 Orion Poplawski <orion@cora.nwra.com> - 0.4.6-5
- Drop py3dir - Drop py3dir
- Provide python2-msgpack - Provide python2-msgpack

@ -1 +1 @@
8b317669314cf1bc881716cccdaccb30 msgpack-python-0.4.6.tar.gz eb2aad1081534ef3a9f32a0ecd350b9b msgpack-python-0.4.7.tar.gz

Loading…
Cancel
Save