diff --git a/pakiti.spec b/pakiti.spec index 2ce3fe4d..c121b3b1 100644 --- a/pakiti.spec +++ b/pakiti.spec @@ -1,12 +1,18 @@ +## github commit ference +%global commit 1f59f72da85834a3e686e4a26c9e6bb3410a4389 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global github_name pakiti3 + + Summary: Patching status monitoring tool Name: pakiti Version: 3.0.0 Release: 1%{?dist} URL: https://github.com/CESNET/pakiti3 -License: ASL 2.0 -Group: Utilities/System -Source0: pakiti-%{version}.tgz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +License: ASL 2.0 and BSD +Group: Applications/Internet +Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch BuildRequires: perl @@ -26,7 +32,7 @@ Runs rpm -qa or dpkg -l, depends on the linux distro. Results are sent to the central Pakiti server using openssl s_client or curl. %prep -%setup +%setup -qn %{github_name}-%{commit} %build mkdir man @@ -44,3 +50,8 @@ rm -rf %{buildroot} %defattr(-,root,root,-) %{_bindir}/* %{_mandir}/man?/* + + +%changelog +* Tue Dec 09 2014 Adrien Devresse - 3.0.0-1 + - Initial release for pakiti 3.0.0