14
0
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:
Sascha Peilicke
2012-01-30 10:29:30 +00:00
committed by Git OBS Bridge
commit 2f3d0c7043
5 changed files with 92 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0699e1a3df21eb52f671cf900d33d8342bb9ab322355f133bdcf09e5fbb06b36
size 40027

5
python-scour.changes Normal file
View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Fri Jan 27 11:46:43 UTC 2012 - i@marguerite.su
- initial package 0.26

60
python-scour.spec Normal file
View 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