%global date 20150423 %global commit fd038c526597403f91d309a4390b696d36821a68 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: plowshare-modules-legacy Version: 0 Release: 0.1.%{date}git%{shortcommit}%{?dist} Summary: Legacy modules for plowshare Group: Applications/Internet License: GPLv3+ URL: https://github.com/mcrapet/plowshare-modules-legacy Source0: https://github.com/mcrapet/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: plowshare BuildArch: noarch %description This package contains modules for plowshare package %prep %setup -q -n %{name}-%{commit} %build # There is nothing to build. The modules were written # entirely in bash shell script %install rm -rf %{buildroot} # Install the modules mkdir -p %{buildroot}%{_datadir}/plowshare/modules cp -pv config *.sh %{buildroot}%{_datadir}/plowshare/modules/ %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %license LICENSE %doc CONTRIBUTORS %{_datadir}/plowshare/modules/* %changelog * Thu Apr 23 2015 Elder Marco - - 0-0.1.20150423gitfd038c5 - Initial package