%global commit 116c5e2ceda485bf9d8c5330c9f908e685fe361e %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: supybot-git Version: 0 Release: 1.%{shortcommit}%{?dist} Summary: Supybot plugin for interacting with git repositories Group: Applications/Internet # Relicensed: https://github.com/mmueller/supybot-git/issues/16 License: BSD URL: https://github.com/leamas/supybot-git Source0: %{url}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz Requires: GitPython >= 0.3.0, supybot BuildArch: noarch BuildRequires: python2-devel %description A supybot plugin providing info from git repositories on IRC channels. Main features: * Notifies IRC channel of new commits. * Reports info on commit SHA:s mentioned in IRC conversations. * Display a log of recent commits on command. * Monitor as many repository/branch combinations as you like. * Privacy: repositories are associated with a channel and cannot be seen from other channels. * Highly configurable. %prep %setup -qn %{name}-%{commit} %build %install rm -rf $RPM_BUILD_ROOT install -dm 755 $RPM_BUILD_ROOT/%{python_sitelib}/supybot/plugins/Git install -pm 644 *.py $RPM_BUILD_ROOT/%{python_sitelib}/supybot/plugins/Git %files %doc README.md LICENSE %{python_sitelib}/supybot/plugins/Git %changelog * Mon Mar 11 2013 Alec leamas <leamas@nowhere.net> - 0-1.fd26853 - Initial release