# Use the following command to get the commit0 hash value: # git ls-remote https://github.com/phacility/libphutil.git | grep stable %global commit0 a537ba03c994eca87698cc4b95d4db4570edc665 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: libphutil Version: 2018.50 Release: 1.%{shortcommit0}%{?dist} Summary: A collection of utility classes and functions for PHP License: Apache License, Version 2.0 URL: https://github.com/phacility/%{name} Source0: https://github.com/phacility/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz BuildArch: noarch Requires: php-common %description libphutil is a collection of utility classes and functions for PHP, used with Phabricator. %prep %autosetup -n %{name}-%{commit0} %build %install %{__install} -d -m 755 %{buildroot}%{_datarootdir}/%{name} find . -mindepth 1 -maxdepth 1 -exec mv -t %{buildroot}%{_datarootdir}/%{name}/ -- {} + %clean %check %files %{_datarootdir}/%{name} %changelog * Fri Dec 21 2018 Daniel Uvehag - 2018.50-1.a537ba0 - Updated to 2018.50 (a537ba0) * Thu May 31 2018 Daniel Uvehag - 2018.18-1.f3e1057 - Updated to 2018.15 (f3e1057) * Wed Jan 31 2018 Daniel Uvehag - 2018.3-1.53f01ac - Updated to 53f01ac1ae7815bc55e8c1532fe3de12287c8e24 - Changed versioning to match upstream * Mon Jul 03 2017 Daniel Uvehag - 0-4.30065f1 - Updated to 30065f1c5a39f4de8f3b67429d7d68af661f47bb * Mon May 22 2017 Daniel Uvehag - 0-3.d02cc05 - Updated to d02cc05931b02c684d4c729510090591ca45f951 * Tue Nov 29 2016 Daniel Uvehag - 0-2.89984ac - Updated to 89984ac200598c028e95d2518ae621da41c09042 * Mon Nov 21 2016 Daniel Uvehag - 0-1.b4f866b - Initial packaging