14
0
forked from pool/python-scour
Files
python-scour/python-scour.spec
2012-01-30 10:29:30 +00:00

61 lines
1.8 KiB
RPMSpec

#
# spec file for package python-scour
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
# norootforbuild
Name: python-scour
Version: 0.26
Release: 1
License: ASL-2.0+
Summary: An SVG scrubber
Url: http://www.codedread.com/scour
Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
BuildRequires: python-devel
Provides: scour = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{py_requires}
BuildArch: noarch
%description
Scour is an open-source Python script that aggressively cleans SVG files, removing a lot of 'cruft' that certain tools or authors embed into their documents. The goal of scour is to provide an identically rendered image.
%prep
%setup -q
%build
%install
%{__mkdir} -pv %{buildroot}%{python_sitelib}/scour/
%{__mkdir} -pv %{buildroot}%{_bindir}
%{__mv} scour.py %{buildroot}%{python_sitelib}/scour/
%{__mv} svg_regex.py %{buildroot}%{python_sitelib}/scour/
%{__mv} svg_transform.py %{buildroot}%{python_sitelib}/scour/
%{__mv} yocto_css.py %{buildroot}%{python_sitelib}/scour/
ln -sf %{python_sitelib}/scour/scour.py %{buildroot}%{_bindir}/scour
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%{python_sitelib}/scour/
%{_bindir}/scour
%changelog