gitflow.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. %global githash 53e9c76
  2. %global gitdate 20120723
  3. %global checkout %{gitdate}git%{githash}
  4. Name: gitflow
  5. Version: 0.4.2.%{checkout}
  6. Release: 1%{?dist}
  7. Summary: Extensions providing operations for V. Driessen's branching model
  8. Group: Development/Languages
  9. License: BSD
  10. URL: https://github.com/nvie/gitflow
  11. # You can get this tarball by cloning the repository from github and checking
  12. # out revision %%{githash}
  13. Source0: gitflow-0.4.2.%{checkout}.tar.gz
  14. # There is no upstream ticket for this patch, but instead just hardcodes the
  15. # directory we're installing to for Fedora.
  16. Patch0: gitflow-Appropriate-GITFLOW_DIR.patch
  17. BuildArch: noarch
  18. Requires: shflags
  19. Requires: git
  20. %description
  21. A collection of Git extensions to provide high-level repository operations
  22. for Vincent Driessen's [branching model](http://nvie.com/git-model "original
  23. blog post").
  24. For the best introduction to get started with `git flow`, please read Jeff
  25. Kreeftmeijer's blog post:
  26. http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/
  27. Or have a look at one of these screen casts:
  28. * [A short introduction to git-flow]
  29. (http://vimeo.com/16018419) (by Mark Derricutt)
  30. * [On the path with git-flow]
  31. (http://codesherpas.com/screencasts/on_the_path_gitflow.mov) (by Dave Bock)
  32. %prep
  33. %setup -q -n %{name}
  34. %patch0 -p1 -b .gitflowdir
  35. %build
  36. # This section is empty because this package ccontains shell scripts
  37. # to be sourced: there's nothing to build
  38. %install
  39. mkdir -p %{buildroot}/%{_bindir}
  40. install -v -m 0755 git-flow %{buildroot}/%{_bindir}
  41. mkdir -p %{buildroot}/%{_datadir}/%{name}
  42. install -v -m 0644 git-flow-init %{buildroot}/%{_datadir}/%{name}
  43. install -v -m 0644 git-flow-feature %{buildroot}/%{_datadir}/%{name}
  44. install -v -m 0644 git-flow-hotfix %{buildroot}/%{_datadir}/%{name}
  45. install -v -m 0644 git-flow-release %{buildroot}/%{_datadir}/%{name}
  46. install -v -m 0644 git-flow-support %{buildroot}/%{_datadir}/%{name}
  47. install -v -m 0644 git-flow-version %{buildroot}/%{_datadir}/%{name}
  48. install -v -m 0644 gitflow-common %{buildroot}/%{_datadir}/%{name}
  49. ln -s %{_datadir}/shflags/shflags %{buildroot}/%{_datadir}/%{name}/gitflow-shFlags
  50. %files
  51. %doc README.mdown LICENSE AUTHORS Changes.mdown
  52. %{_bindir}/git-flow*
  53. %{_datadir}/%{name}
  54. %changelog
  55. * Mon Jul 23 2012 Ralph Bean <rbean@redhat.com> - 0.4.2.20120723git53e9c76-1
  56. - New checkout from upstream git for review process.
  57. * Mon Jul 23 2012 Ralph Bean <rbean@redhat.com> - 0.4.2.20120626gitab7fda2-2
  58. - Changed License field to BSD
  59. - Dropped requirement on util-linux.
  60. - Added comments for Source0 and Patch0
  61. - Using macro for %%{gitdate} as well as %%{githash}
  62. * Tue Jun 26 2012 Ralph Bean <rbean@redhat.com> - 0.4.2.20120626gitab7fda2-1
  63. - Initial packaging for Fedora.