diff --git a/pytz.spec b/pytz.spec index 8567ff0..21c1b24 100644 --- a/pytz.spec +++ b/pytz.spec @@ -6,7 +6,7 @@ Name: pytz Version: 2016.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: World Timezone Definitions for Python Group: Development/Languages @@ -16,8 +16,6 @@ Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{versi # Patch to use the system supplied zoneinfo files Patch0: pytz-zoneinfo.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - BuildArch: noarch BuildRequires: python2-devel BuildRequires: pytest @@ -78,28 +76,31 @@ rm -r %{buildroot}%{python3_sitelib}/pytz/zoneinfo %check PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v %if 0%{?with_python3} -PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python3_version} -v +PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v %endif -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%doc CHANGES.txt LICENSE.txt README.txt +%license LICENSE.txt +%doc CHANGES.txt README.txt %{python2_sitelib}/pytz/ %{python2_sitelib}/*.egg-info %if 0%{?with_python3} %files -n python3-pytz -%doc CHANGES.txt LICENSE.txt README.txt +%license LICENSE.txt +%doc CHANGES.txt README.txt %{python3_sitelib}/pytz/ %{python3_sitelib}/*.egg-info %endif # with_python3 %changelog +* Mon May 16 2016 Orion Poplawski 2016.4-1 +- Use proper PYTHONPATH with python3 test +- Use %%license +- Drop BuildRoot and %%clean + * Sat Apr 23 2016 Matěj Cepl 2016.4-1 - Update to 2016.4 (RHBZ #1265036)