File drush_grn.spec of Package drush_grn
#
# spec file for package drush_grn
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Requires: drush
BuildRequires: drush
Name: drush_grn
Summary: Extension to drush that generates release notes
License: GPL-2.0+
Group: Productivity/Networking/Web/Servers
Version: 2.8
Release: 0
Url: http://drupal.org/project/grn
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Source0: %{name}-%{version}.tar.bz2
%description
This script is a Drush extension that:
- Generates release notes from commits between two git tags or commits
- The end point can also be a branch, for example drush rn 6.x-1.0 6.x-1.x
- The --commit-count parameter adds the number of commits to the header output
- The command is release-notes, relnotes, or just rn
- The --git option makes the command use the specified git binary
- In the output, any commits that contain an issue number (#12345), it will be transformed into a link (<a href="/node/12345">#12345</a>)
- If the commit message has any combination of leading 'Issue ', 'Patch ', or '- ', they will all be removed, for consistency.
- The --baseurl option allows you to change the base of the issue links to a different site.
- Support for --pipe
- hook_release_notes_alter() is an alter hook for the output
%prep
%setup -q -n %name
%build
%install
install -d -m 0755 %{_builddir}/drush_grn %{buildroot}%{_datadir}/drush/commands/drush_grn
cp -r %{_builddir}/drush_grn %{buildroot}%{_datadir}/drush/commands
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_datadir}/drush/commands/drush_grn
%changelog