4fe085b563
update to 1.10, run spec-cleaner on the spec file, adjust configure to disable static packages OBS-URL: https://build.opensuse.org/request/show/79441 OBS-URL: https://build.opensuse.org/package/show/graphics/potrace?expand=0&rev=7
66 lines
2.0 KiB
RPMSpec
66 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package potrace
|
|
#
|
|
# Copyright (c) 2011 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/
|
|
#
|
|
|
|
|
|
|
|
Name: potrace
|
|
Version: 1.10
|
|
Release: 0
|
|
License: GPLv2+
|
|
Summary: Utility for Tracing a Bitmap to Scalable Outline Image
|
|
Url: http://potrace.sourceforge.net/
|
|
Group: Productivity/Graphics/Convertors
|
|
Source: %{name}-%{version}.tar.gz
|
|
BuildRequires: zlib-devel
|
|
Provides: bitmap_tracing
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Potrace is a utility for tracing a bitmap, which means, transforming a
|
|
bitmap into a smooth, scalable image. The input is a bitmap (PBM, PGM,
|
|
PPM, or BMP), and the default output is one of several vector file
|
|
formats. A typical use is to create EPS files from scanned data, such
|
|
as company or university logos, handwritten notes, etc. The resulting
|
|
image is not "jaggy" like a bitmap, but smooth. It can then be rendered
|
|
at any resolution.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
export CFLAGS="$CXXFLAGS"
|
|
autoreconf -f -i
|
|
./configure --enable-static=no --prefix=%{_prefix}
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%clean
|
|
rm -fr %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
|
%dir %_datadir//doc/potrace
|
|
%_datadir/doc/potrace/placement.pdf
|
|
%{_bindir}/*
|
|
%doc %{_mandir}/man?/*.*
|
|
|
|
%changelog
|