commit 2f3d0c7043d7c0ff44b157bc8b19cb5ab4e4fe1545b25316b742e45b0327e0da Author: Sascha Peilicke Date: Mon Jan 30 10:29:30 2012 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-scour-0.26.tar.bz2 b/python-scour-0.26.tar.bz2 new file mode 100644 index 0000000..4a4acaa --- /dev/null +++ b/python-scour-0.26.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0699e1a3df21eb52f671cf900d33d8342bb9ab322355f133bdcf09e5fbb06b36 +size 40027 diff --git a/python-scour.changes b/python-scour.changes new file mode 100644 index 0000000..d7edb42 --- /dev/null +++ b/python-scour.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Jan 27 11:46:43 UTC 2012 - i@marguerite.su + +- initial package 0.26 + diff --git a/python-scour.spec b/python-scour.spec new file mode 100644 index 0000000..95c954c --- /dev/null +++ b/python-scour.spec @@ -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