File golang-googlecode-freetype-go.spec of Package golang-googlecode-freetype-go
#
# spec file for package golang-googlecode-freetype-go
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c), 2011, Sascha Peilicke <saschpe@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: golang-googlecode-freetype-go
Version: 0.0.0+hg20150309.128.46c3056cafbb
Release: 0
Summary: A port of the Freetype font engine to the Go programming language
License: FTL or GPL-2.0+
Group: Development/Languages/Other
Url: http://code.google.com/p/freetype-go
Source0: freetype-go-%{version}.tar.xz
Source1: %{name}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: golang-packaging
BuildRequires: xz
Provides: go-freetype-go = %{version}
Obsoletes: go-freetype-go < %{version}
%{go_provides}
%description
This is a port of the Freetype font rasterizer (www.freetype.org) to the Go
programming language.
%prep
%setup -q -n freetype-go-%{version}
%build
%goprep code.google.com/p/freetype-go
%gobuild ...
%install
%goinstall
# NOTE(saschpe): Rename binaries to avoid potential file conflicts.
# I'm not sure if "go-" is the best prefix, but should do it for now:
for b in freetype gamma raster round truetype ; do
mv %{buildroot}%{_bindir}/$b %{buildroot}%{_bindir}/go-$b
done
%files
%defattr(-,root,root,-)
%doc AUTHORS CONTRIBUTORS LICENSE README licenses example
%{_bindir}/go-freetype
%{_bindir}/go-gamma
%{_bindir}/go-raster
%{_bindir}/go-round
%{_bindir}/go-truetype
%{go_contribdir}/*
%changelog