14
0
forked from pool/python-scour

- Ran spec-cleaner and did some minor cleanup

- Set license to SPDX style (Apache-2.0)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scour?expand=0&rev=2
This commit is contained in:
Sascha Peilicke
2012-01-30 10:37:48 +00:00
committed by Git OBS Bridge
parent 2f3d0c7043
commit c1fc72610e
2 changed files with 24 additions and 22 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 30 10:37:42 UTC 2012 - saschpe@suse.de
- Ran spec-cleaner and did some minor cleanup
- Set license to SPDX style (Apache-2.0)
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jan 27 11:46:43 UTC 2012 - i@marguerite.su Fri Jan 27 11:46:43 UTC 2012 - i@marguerite.su

View File

@@ -15,21 +15,23 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: python-scour Name: python-scour
Version: 0.26 Version: 0.26
Release: 1 Release: 0
License: ASL-2.0+ License: Apache-2.0
Summary: An SVG scrubber Summary: An SVG scrubber
Url: http://www.codedread.com/scour Url: http://www.codedread.com/scour
Group: System/Libraries Group: System/Libraries
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
BuildRequires: python-devel BuildRequires: python-devel
Provides: scour = %{version} Provides: scour = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{py_requires} %if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildArch: noarch %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description %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. 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.
@@ -40,21 +42,15 @@ Scour is an open-source Python script that aggressively cleans SVG files, removi
%build %build
%install %install
%{__mkdir} -pv %{buildroot}%{python_sitelib}/scour/ mkdir -p %{buildroot}%{python_sitelib}/scour
%{__mkdir} -pv %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_bindir}
mv {scour,svg_regex,svg_transform,yocto_css}.py %{buildroot}%{python_sitelib}/scour/
%{__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 ln -sf %{python_sitelib}/scour/scour.py %{buildroot}%{_bindir}/scour
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitelib}/scour/ %doc LICENSE NOTICE README.txt
%{_bindir}/scour %{_bindir}/scour
%{python_sitelib}/scour/
%changelog %changelog