Blob Blame History Raw
# Run tests in check section
# disable for bootstrapping
%bcond_with check

%global goipath  github.com/golang/freetype
%global goipath2 github.com/BurntSushi/freetype-go/freetype
%global goname2  %gorpmname %{goipath2}
%global commit   e2365dfdc4a05e4b8299a783240d4a7d5a65d4e4

%gometa

Name:           %{goname}
Version:        0
# Detected licences
# - *No copyright* UNKNOWN at 'LICENSE'
Release:        0.5%{?dist}
Summary:        The Freetype font rasterizer in the Go programming language
License:        GPLv2+ or FTL
URL:            %{gourl}
Source0:        %{gosource}

%description
%{summary}

%package devel
Summary:       %{summary}
BuildArch:     noarch

%description devel
%{summary}

This package contains library source intended for
building other packages which use import path with
%{goipath} prefix.

%package -n compat-%{goname2}-devel
Summary:        %{summary}
BuildArch:      noarch
Obsoletes:      %{goname2}-devel < %{version}-%{release}

%description -n compat-%{goname2}-devel
%{summary}.

This package contains compatibility glue for code
that still imports the %{goipath2} Go namespace.

%prep
%forgeautosetup

%install
%goinstall

# Add symlink to older name
install -d -p %{buildroot}%{gopath}/src/%(dirname %{goipath2})
ln -s %{gopath}/src/%{goipath} %{buildroot}%{gopath}/src/%{goipath2}

%if %{with check}
%check
%gochecks
%endif

%files devel -f devel.file-list
%license LICENSE
%doc README CONTRIBUTORS AUTHORS

%files -n compat-%{goname2}-devel
%dir %{gopath}/src/%(dirname %{goipath2})
%{gopath}/src/%{goipath2}

%changelog
* Wed Nov 14 2018 mosquito <sensor.wen@gmail.com> - 0-0.5.20181114gite2365df
- Change upstream to github.com/golang/freetype

* Mon Nov 12 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.4.20181113gitb763ddb
- Update to new Go packaging

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3.gitb763ddb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2.gitb763ddb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Mon Aug  7 2017 mosquito <sensor.wen@gmail.com> - 0-0.1.gitb763ddb
- Initial package build