LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File go-svgo.spec of Package go-svgo (Project devel:languages:go)

# spec file for package go-svgo
# 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:           go-svgo
Version:        0.0.0+git20141219.47ca2bb
Release:        0
Summary:        Go Language Library for SVG generation
License:        CC-BY-SA-3.0
Group:          Development/Languages/Other
Url:            http://github.com/ajstarks/svgo
Source:         svgo-%{version}.tar.xz
BuildRequires:  go-devel
BuildRequires:	xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The library generates SVG as defined by the Scalable Vector Graphics 1.1
Specification (http://www.w3.org/TR/SVG11/). Output goes to the specified


%setup -q -n svgo-%{version}

%goprep github.com/ajstarks/svgo

# Package all the other applications as examples

mkdir -p examples

for example in android bubtrail colortab flower funnel gradient imfade lewitt ltr planets pmap randcomp richter rl svgdef svgopher websvg vismem; do
install -m0644 $example/$example.go examples

install -m0644 newsvg svgdef.{pdf,png,svg} examples

%doc LICENSE README.markdown

%files doc
%doc examples