forked from pool/python-scour
Accepting request 101837 from home:MargueriteSu
I would like to submit python-scour to Factory and use here as develop repository. OBS-URL: https://build.opensuse.org/request/show/101837 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scour?expand=0&rev=1
This commit is contained in:
60
python-scour.spec
Normal file
60
python-scour.spec
Normal file
@@ -0,0 +1,60 @@
|
||||
#
|
||||
# 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
|
Reference in New Issue
Block a user