File go-freetype-go.spec of Package go-freetype-go

#
# spec file for package go-freetype-go
#
# Copyright (c) 2014 SUSE LINUX Products 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:           go-freetype-go
Version:        0.0.0+hg20130813.72.38e23dc4a845
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
%define         go_import code.google.com/p/freetype-go/freetype
Source0:        freetype-go-%{version}.tar.bz2
Source1:        go-freetype-go-rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  go-devel
%if 0%{?suse_version} >= 1100
Recommends:     go-freetype-go-doc
%endif
%{go_provides}
%{go_requires}

%description
This is a port of the Freetype font rasterizer (www.freetype.org) to the Go
programming language.

%package doc
Summary:        API documenation
Group:          Documentation/Other
Requires:       %{name} = %{version}

%description doc
API, examples and documentation.

%prep
%setup -q -n freetype-go-%{version}

%build
%goprep  code.google.com/p/freetype-go
%gobuild  ...

%install
%goinstall
%godoc
# 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}/*

%files doc
%defattr(-,root,root,-)
%{go_contribsrcdir}/*

%changelog
openSUSE Build Service is sponsored by