s3cmd.spec.in 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. %global commit ##COMMIT##
  3. %global shortcommit ##SHORTCOMMIT##
  4. Name: s3cmd
  5. Version: ##VERSION##
  6. Release: 1%{dist}
  7. Summary: Tool for accessing Amazon Simple Storage Service
  8. Group: Applications/Internet
  9. License: GPLv2
  10. URL: http://s3tools.com
  11. # git clone https://github.com/s3tools/s3cmd
  12. # python setup.py sdist
  13. Source0: https://github.com/s3tools/s3cmd/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  15. BuildArch: noarch
  16. %if %{!?fedora:16}%{?fedora} < 16 || %{!?rhel:7}%{?rhel} < 7
  17. BuildRequires: python-devel
  18. %else
  19. BuildRequires: python2-devel
  20. %endif
  21. %if %{!?fedora:8}%{?fedora} < 8 || %{!?rhel:6}%{?rhel} < 6
  22. # This is in standard library since 2.5
  23. BuildRequires: python-elementtree
  24. Requires: python-elementtree
  25. %endif
  26. BuildRequires: python-dateutil
  27. BuildRequires: python-setuptools
  28. Requires: python-dateutil
  29. Requires: python-magic
  30. %description
  31. S3cmd lets you copy files from/to Amazon S3
  32. (Simple Storage Service) using a simple to use
  33. command line client.
  34. %prep
  35. %setup -q -n s3cmd-%{commit}
  36. %build
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. S3CMD_PACKAGING=Yes python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
  40. install -d $RPM_BUILD_ROOT%{_mandir}/man1
  41. install -m 644 s3cmd.1 $RPM_BUILD_ROOT%{_mandir}/man1
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %files
  45. %defattr(-,root,root,-)
  46. %{_bindir}/s3cmd
  47. %{_mandir}/man1/s3cmd.1*
  48. %{python_sitelib}/S3
  49. %if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
  50. %{python_sitelib}/s3cmd*.egg-info
  51. %endif
  52. %doc NEWS README.md LICENSE
  53. %changelog
  54. * Thu Feb 5 2015 Matt Domsch <mdomsch@fedoraproject.org> - 1.5.1.2-5
  55. - add Requires: python-magic
  56. * Wed Feb 4 2015 Matt Domsch <mdomsch@fedoraproject.org> - 1.5.1.2-4
  57. - upstream 1.5.1.2, mostly bug fixes
  58. - add dependency on python-setuptools
  59. Mon Jan 12 2015 Matt Domsch <mdomsch@fedoraproject.org> - 1.5.0-1
  60. - upstream 1.5.0 final
  61. * Tue Jul 1 2014 Matt Domsch <mdomsch@fedoraproject.org> - 1.5.0-0.6.rc1
  62. - upstream 1.5.0-rc1
  63. * Sun Mar 23 2014 Matt Domsch <mdomsch@fedoraproject.org> - 1.5.0-0.4.git
  64. - upstream 1.5.0-beta1 plus even newer upstream fixes
  65. * Sun Feb 02 2014 Matt Domsch <mdomsch@fedoraproject.org> - 1.5.0-0.3.git
  66. - upstream 1.5.0-beta1 plus newer upstream fixes
  67. * Wed May 29 2013 Matt Domsch <mdomsch@fedoraproject.org> - 1.5.0-0.2.gita122d97
  68. - more upstream bugfixes
  69. - drop pyxattr dep, that codepath got dropped in this release
  70. * Mon May 20 2013 Matt Domsch <mdomsch@fedoraproject.org> - 1.5.0-0.1.gitb1ae0fbe
  71. - upstream 1.5.0-alpha3 plus fixes
  72. - add dep on pyxattr for the --xattr option
  73. * Tue Jun 19 2012 Matt Domsch <mdomsch@fedoraproject.org> - 1.1.0-0.4.git11e5755e
  74. - add local MD5 cache
  75. * Mon Jun 18 2012 Matt Domsch <mdomsch@fedoraproject.org> - 1.1.0-0.3.git7de0789d
  76. - parallelize local->remote syncs
  77. * Mon Jun 18 2012 Matt Domsch <mdomsch@fedoraproject.org> - 1.1.0-0.2.gitf881b162
  78. - add hardlink / duplicate file detection support
  79. * Fri Mar 9 2012 Matt Domsch <mdomsch@fedoraproject.org> - 1.1.0-0.1.git2dfe4a65
  80. - build from git for mdomsch patches to s3cmd sync
  81. * Thu Feb 23 2012 Dennis Gilmore <dennis@ausil.us> - 1.0.1-1
  82. - update to 1.0.1 release
  83. * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-4
  84. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  85. * Thu May 05 2011 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> - 1.0.0-3
  86. - No hashlib hackery
  87. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  89. * Tue Jan 11 2011 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> - 1.0.0-1
  90. - New upstream release
  91. * Mon Nov 29 2010 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> - 0.9.9.91-3
  92. - Patch for broken f14 httplib
  93. * Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.9.91-2.1
  94. - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
  95. * Wed Apr 28 2010 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> - 0.9.9.91-1.1
  96. - Do not use sha1 from hashlib
  97. * Sun Feb 21 2010 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.9.91-1
  98. - New upstream release
  99. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9-2
  100. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  101. * Tue Feb 24 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.9-1
  102. - New upstream release
  103. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.8.4-2
  104. - Rebuild for Python 2.6
  105. * Tue Nov 11 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.8.4-1
  106. - New upstream release, URI encoding patch upstreamed
  107. * Fri Sep 26 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.8.3-4
  108. - Try 3/65536
  109. * Fri Sep 26 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.8.3-3
  110. - Whoops, forgot to actually apply the patch.
  111. * Fri Sep 26 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.8.3-2
  112. - Fix listing of directories with special characters in names
  113. * Thu Jul 31 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.8.3-1
  114. - New upstream release: Avoid running out-of-memory in MD5'ing large files.
  115. * Fri Jul 25 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.8.2-1.1
  116. - Fix a typo
  117. * Tue Jul 15 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.8.2-1
  118. - New upstream
  119. * Fri Jul 04 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.8.1-3
  120. - Be satisfied with ET provided by 2.5 python
  121. * Fri Jul 04 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.8.1-2
  122. - Added missing python-devel BR, thanks to Marek Mahut
  123. - Packaged the Python egg file
  124. * Wed Jul 02 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 0.9.8.1-1
  125. - Initial packaging attempt