File dch-git-describe.spec of Package dch-git-describe

#
# spec file for package dch-git-describe
#
# Copyright (c) 2015 Daniel Gollub <dgollub@brocade.com>
#
# 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.

Name:           dch-git-describe
Version:        1
Release:        0
Summary:        Post export hook for git-buildpackage
License:        GPL-2.0+
Group:          Development/Tools/Building
Url:            https://github.com/gollub/dch-git-describe
Source:         %{name}-%{version}.tar.gz
Requires:       git-buildpackage
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This is a post export hook for git-buildpackage

%prep
%setup -q

%build

%install
mkdir -p $RPM_BUILD_ROOT/usr/bin/
install -m 0755 dch_git_describe $RPM_BUILD_ROOT/usr/bin/
install -m 0755 dch_git_describe_and_epoch $RPM_BUILD_ROOT/usr/bin/

%files
%defattr(-,root,root)
/usr/bin/dch_git_describe
/usr/bin/dch_git_describe_and_epoch

%changelog