python-egenix-mx-base-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. %define python_platlib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')
  2. %define mxlibname egenix-mx-base
  3. Summary: eGenix mx-Extensions for Python - BASE package
  4. Summary(ja): eGenix 配布 Python DateTime ライブラリ
  5. Name: python-%{mxlibname}
  6. Version: 3.1.0
  7. Release: 3%{?_dist_release}
  8. License: eGenix.com Public License (similar to the Python 2.0)
  9. Group: Development/Libraries
  10. URL: http://www.egenix.com/files/python/eGenix-mx-Extensions.html
  11. Source: http://www.egenix.com/files/python/%{mxlibname}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{mxlibname}-%{version}-root
  13. Buildrequires: python-devel
  14. Requires: python >= 2.4
  15. Provides: mxDateTime
  16. %description
  17. The eGenix mx Extension Series are a collection of
  18. Python extensions written in ANSI C and Python
  19. which provide a large spectrum of useful additions
  20. to everyday Python programming.
  21. The BASE package includes the Open Source subpackages
  22. of the series and is needed by all other add-on
  23. packages of the series.
  24. This software is brought to you by eGenix.com and
  25. distributed under the eGenix.com Public License.
  26. %prep
  27. %setup -q -n %{mxlibname}-%{version}
  28. #%ifarch x86_64
  29. #%patch0
  30. #cd mx/stdlib/distutils
  31. #%patch0
  32. #%endif
  33. %build
  34. CFLAGS="$RPM_OPT_FLAGS" python setup.py build
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37. python setup.py install \
  38. --root=$RPM_BUILD_ROOT \
  39. --install-purelib=%{python_platlib} \
  40. --install-platlib=%{python_platlib} \
  41. # disabled below, because '*.h' files have been copied to data's directory
  42. #--install-data=%{_sharedstatedir}/doc/%{name}-%{version}
  43. %clean
  44. rm -rf $RPM_BUILD_ROOT
  45. %files
  46. %defattr(-,root,root)
  47. %doc mx/Doc mx/LICENSE mx/COPYRIGHT mx/DateTime/README
  48. %{python_platlib}
  49. %changelog
  50. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 3.1.0-3
  51. - rebuild with python-2.6
  52. * Thu Jul 17 2008 Shu KONNO <owa@bg.wakwak.com> 3.1.0-2vl5
  53. - rebuilt with python-2.5.2
  54. * Thu Jul 17 2008 Shu KONNO <owa@bg.wakwak.com> 3.1.0-1vl5
  55. - updated egenix-mx-base to 3.1.0
  56. - applied new versioning policy and spec in utf-8
  57. - added python_platlib macro
  58. * Sat Dec 01 2007 Shu KONNO <owa@bg.wakwak.com> 3.0.0-0vl2
  59. - updated egenix-mx-base to 3.0.0
  60. - dropt Patch0: egenix-mx-base-2.0.6-mxSetup_x86_64.patch
  61. - fixed prereq, buildrequires pkgs
  62. * Wed Sep 19 2007 Shu KONNO <owa@bg.wakwak.com> 2.0.6-0vl4
  63. - fixed %%install directory
  64. * Sat Oct 14 2006 Shu KONNO <owa@bg.wakwak.com> 2.0.6-0vl3
  65. - changed url
  66. - added egenix-mx-base-2.0.6-mxSetup_x86_64.patch
  67. - changed options in %%install
  68. * Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 2.0.6-0vl2
  69. - rebuilded with python-2.4.1
  70. * Sun Mar 20 2005 Shu KONNO <owa@bg.wakwak.com> 2.0.6-0vl1
  71. - updated egenix-mx-base to 2.0.6
  72. - rebuild with python-2.3.5 for Vine
  73. * Sun Feb 22 2004 Shu KONNO <owa@bg.wakwak.com> 2.0.5-uvl1
  74. - rebuilded with python-2.3
  75. * Sun Aug 31 2003 Shu KONNO <owa@bg.wakwak.com> 2.0.5-py2.1_uvl1
  76. - updated egenix-mx-base to 2.0.5
  77. * Wed Mar 5 2003 Shu KONNO <owa@bg.wakwak.com> 2.0.4-py2.1_0vp1
  78. - updated egenix-mx-base to 2.0.4
  79. - rebuilded with python-2.1
  80. * Mon Jul 1 2002 Shu KONNO <owa@bg.wakwak.com> 2.0.3-0vp1
  81. - created