LogoopenSUSE Build Service > Projects
Sign Up | Log In

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

#
# 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.

Name:           go-svgo
Version:        0.0.0+git20120304
Release:        0
Summary:        Go Language Library for SVG generation
Group:          Development/Languages/Other
License:        Creative Commons Attribution 3.0
URL:            http://github.com/ajstarks/svgo
Source0:        svgo-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  go-devel
%if 0%{?suse_version} >= 1100
Recommends:     go-svgo-doc
%endif
%{go_provides}
%{go_requires}

%description
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
io.Writer.

%package doc
Summary:        Go Language Library for SVG generation - Documentation
Group:          Documentation/Other
Requires:       %{name} = %{version}

%description doc
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
io.Writer.

Examples and documentation.

%prep
%setup -q -n svgo

%build
%goprep github.com/ajstarks/svgo
%gobuild

%install
%{go_disable_brp_strip_static_archive}

%goinstall
# 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
done

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

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE README.markdown
%{go_contribdir}/*

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

%changelog