File svgcleaner.spec of Package svgcleaner
#
# spec file for package svgcleaner
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: svgcleaner
Summary: SVG Cleaning Programm
Version: 0.5
Release: 0
License: GPL-3.0
Group: Productivity/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE Correct Icon and Category keywords
Patch0: %{name}.desktop.patch
URL: https://github.com/RazrFalcon/SVGCleaner
BuildRequires: make p7zip
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
BuildRequires: libqt4-devel
BuildRequires: update-desktop-files
BuildRequires: perl
BuildRequires: perl-XML-Twig
Requires: perl-XML-Twig
%description
Generally, SVG files produced by vector editors contain a lot of unused elements
and attributes that just blow up their size without providing better visible quality.
SVG Cleaner could help you to clean up your SVG files from unnecessary data. It has a
lot of options for cleanup and optimization, works in batch mode, provides threaded
processing on the multicore processors and basically does two things:
- removing elements and attributes that don't contribute to the final rendering;
- making those elements and attributes in use more compact.
Images cleaned by SVG Cleaner are typically 10-60 percent smaller than the original ones.
%prep
%setup -q -n %{name}-%{version}
%patch0
%build
qmake
make %{?jobs:-j %jobs}
%install
%make_install INSTALL_ROOT=%buildroot
#
%suse_update_desktop_file %name
%fdupes -s %buildroot
%files
%defattr(-,root,root)
# %%doc *.txt
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/icons/hicolor/
%dir %{_datadir}/icons/hicolor/scalable/
%dir %{_datadir}/icons/hicolor/scalable/apps/
%dir %_datadir/%name
%dir %_datadir/%name/presets/
# %%dir %%_datadir/%%name/translations
# %%_datadir/%%{name}/translations/*
%{_datadir}/icons/hicolor/scalable/apps/*
%_datadir/%name/presets/*
%changelog