File repos-tools.spec of Package repos-tools

# vim: set sw=4 ts=4 et nu:
# norootforbuild

Name:               repos-tools
Version:            0+r1
%define pkg_version r1-0
%define tag         g0c55063
%define subdir      0c55063
Release:            0
Summary:            Performs Simple Tasks on Source Code Repositories
Source:             http://download.github.com/drotiro-repos-tools-%{pkg_version}-%{tag}.tar.gz
# replace /usr/bin/php with /usr/bin/php5 for the script's shebang
Patch1:             repos-tools-fix_shebang.patch
URL:                http://github.com/drotiro/repos-tools
Group:              Development/Tools/Version Control
License:            GNU Lesser General Public License version 3 (LGPL v3)
BuildRoot:          %{_tmppath}/build-%{name}-%{version}
Requires:           /usr/bin/php5
Recommends:         /usr/bin/git
Recommends:         /usr/bin/svn
Recommends:         /usr/bin/bzr
BuildArch:          noarch

%description
repos-tools is a script to perform simple tasks on all of your code
repositories at once. For instance, you can pull all changes from servers, list
working dirs modification, and see the last log messages.

It currently supports Git, Subversion, and Bazaar.

%prep
%setup -q -n "drotiro-repos-tools-%{subdir}"
%patch1

%build

%install
%__install -D -m0755 repost "%{buildroot}%{_bindir}/repost"

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc README
%{_bindir}/repost

openSUSE Build Service is sponsored by