pytz-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: pytz
  3. Version: 2012c
  4. Release: 1%{?_dist_release}
  5. Summary: World Timezone Definitions for Python
  6. Summary(ja): Python 用の世界タイムゾーン定義
  7. Group: Development/Languages
  8. License: MIT
  9. URL: http://pytz.sourceforge.net/
  10. Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.bz2
  11. Patch0: tzdata
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. BuildRequires: python-devel
  15. Requires: tzdata
  16. %description
  17. pytz brings the Olson tz database into Python. This library allows accurate
  18. and cross platform timezone calculations using Python 2.3 or higher. It
  19. also solves the issue of ambiguous times at the end of daylight savings,
  20. which you can read more about in the Python Library Reference
  21. (datetime.tzinfo).
  22. Amost all (over 540) of the Olson timezones are supported.
  23. %prep
  24. %setup -q
  25. %patch0 -p1
  26. %build
  27. %{__python} setup.py build
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
  31. chmod +x $RPM_BUILD_ROOT%{python_sitelib}/pytz/*.py
  32. rm -rf $RPM_BUILD_ROOT%{python_sitelib}/pytz/zoneinfo
  33. %clean
  34. rm -rf $RPM_BUILD_ROOT
  35. %files
  36. %defattr(-,root,root,-)
  37. %doc CHANGES.txt LICENSE.txt README.txt
  38. %{python_sitelib}/pytz/
  39. %{python_sitelib}/*.egg-info
  40. %changelog
  41. * Tue Jun 26 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2012c-1
  42. - initial build for VineSeed
  43. * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2010h-5
  44. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  45. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2010h-4
  46. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  47. * Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2010h-3
  48. - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
  49. * Mon Jun 28 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 2010h-2
  50. - Define => global
  51. * Tue Apr 27 2010 Jon Ciesla <limb@jcomserv.net> - 2010h-1
  52. - Update to current version, BZ 573252.
  53. * Mon Feb 01 2010 Jon Ciesla <limb@jcomserv.net> - 2009i-7
  54. - Corrected Source0 URL, BZ 560168.
  55. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2008i-6
  56. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  57. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2008i-5
  58. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  59. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2008i-4
  60. - Rebuild for Python 2.6
  61. * Tue Nov 18 2008 Jef Spaleta <jspaleta at fedoraproject dot org> 2008i-3
  62. - Apply patch correctly.
  63. * Thu Nov 13 2008 Jef Spaleta <jspaleta at fedoraproject dot org> 2008i-2
  64. - Updated tzdata patch from Petr Machata bug 471014
  65. * Tue Nov 11 2008 Jef Spaleta <jspaleta at fedoraproject dot org> 2008i-1
  66. - Update to latest, now using timezone files provided by tzdata package
  67. * Fri Jan 04 2008 Jef Spaleta <jspaleta@gmail.com> 2006p-3
  68. - Fix for egg-info file creation
  69. * Mon Dec 11 2006 Jef Spaleta <jspaleta@gmail.com> 2006p-2
  70. - Bump for rebuild against python 2.5 and change BR to python-devel accordingly
  71. * Fri Dec 8 2006 Orion Poplawski <orion@cora.nwra.com> 2006p-1
  72. - Update to 2006p
  73. * Thu Sep 7 2006 Orion Poplawski <orion@cora.nwra.com> 2006g-1
  74. - Update to 2006g
  75. * Mon Feb 13 2006 Orion Poplawski <orion@cora.nwra.com> 2005r-2
  76. - Rebuild for gcc/glibc changes
  77. * Tue Jan 3 2006 Orion Poplawski <orion@cora.nwra.com> 2005r-1
  78. - Update to 2005r
  79. * Thu Dec 22 2005 Orion Poplawski <orion@cora.nwra.com> 2005m-1
  80. - Update to 2005m
  81. * Fri Jul 22 2005 Orion Poplawski <orion@cora.nwra.com> 2005i-2
  82. - Remove -O1 from install command
  83. * Tue Jul 05 2005 Orion Poplawski <orion@cora.nwra.com> 2005i-1
  84. - Initial Fedora Extras package