%define prerelease aa3a31dadec0fcae98b2e40c85e87ac3f971c023 %define import_path github.com/rackspace/gophercloud %define gosrc %{gopath}/src/%{import_path} %define shortcommit %(c=%{prerelease}; echo ${c:0:7}) Summary: A multi-cloud language binding for Go Name: golang-rackspace-gophercloud Version: 0.20131025 Release: %mkrel 7 License: ASL 2.0 Group: Development/Other Url: https://%{import_path} Source0: https://%{import_path}/archive/%{prerelease}.tar.gz Provides: golang(%{import_path}) = %{version}-%{release} BuildRequires: golang BuildArch: noarch %description Gophercloud provides a Go binding to OpenStack cloud APIs. %prep %setup -q -n gophercloud-%{prerelease} %build %install mkdir -p %{buildroot}%{gosrc} cp -av * %{buildroot}%{gosrc}/ rm -f %{buildroot}%{gosrc}/LICENSE rm -f %{buildroot}%{gosrc}/README.asciidoc rm -f %{buildroot}%{gosrc}/CONTRIBUTORS.md %files %doc LICENSE %doc README.asciidoc %doc CONTRIBUTORS.md %{gosrc}/* %changelog * Wed Jul 20 2016 pterjan <pterjan> 0.20131025-7.mga6 + Revision: 1042865 - Use gopath macro from golang package and make this package noarch * Thu Feb 11 2016 umeabot <umeabot> 0.20131025-6.mga6 + Revision: 954182 - Mageia 6 Mass Rebuild * Wed Oct 21 2015 tv <tv> 0.20131025-5.mga6 + Revision: 893500 - disable debuginfo * Wed Oct 15 2014 umeabot <umeabot> 0.20131025-4.mga5 + Revision: 750692 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 0.20131025-3.mga5 + Revision: 679877 - Mageia 5 Mass Rebuild * Sat Dec 21 2013 thatsamguy <thatsamguy> 0.20131025-2.mga4 + Revision: 559462 + rebuild (emptylog) * Thu Nov 21 2013 thatsamguy <thatsamguy> 0.20131025-1.mga4 + Revision: 552158 - update to latest release * Fri Oct 25 2013 thatsamguy <thatsamguy> 0.20130916-1.mga4 + Revision: 546848 - imported package golang-rackspace-gophercloud