2004-11-08 04:05:13 +00:00
|
|
|
Name: autotrace
|
2022-08-30 19:05:29 +00:00
|
|
|
Version: 0.31.9
|
2022-09-05 16:48:39 +00:00
|
|
|
Release: %autorelease
|
2005-03-03 19:29:59 +00:00
|
|
|
Summary: Utility for converting bitmaps to vector graphics
|
2008-07-14 19:20:55 +00:00
|
|
|
License: GPLv2+ and LGPLv2+
|
2004-11-08 04:05:13 +00:00
|
|
|
URL: http://autotrace.sourceforge.net/
|
2023-02-28 16:55:04 +00:00
|
|
|
Source0: https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
2023-01-16 22:03:50 +00:00
|
|
|
# https://github.com/autotrace/autotrace/pull/105
|
|
|
|
Patch0: autotrace-0.31.9-pr105-ImageMagick7.patch
|
2023-02-28 16:55:04 +00:00
|
|
|
# https://github.com/autotrace/autotrace/pull/108
|
2023-01-24 11:14:14 +00:00
|
|
|
Patch1: autotrace-0.31.9-expected-test-failure-no-imagemagick.patch
|
|
|
|
# No ImageMagick in RHEL 8 and future releases
|
2023-02-28 16:55:04 +00:00
|
|
|
%if 0%{?rhel} < 8
|
2022-09-05 16:48:39 +00:00
|
|
|
BuildRequires: ImageMagick-devel
|
2023-01-24 11:14:14 +00:00
|
|
|
%endif
|
2013-07-21 17:42:00 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2022-09-05 16:48:39 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
2022-08-30 19:05:29 +00:00
|
|
|
BuildRequires: gettext-devel
|
2022-09-05 16:48:39 +00:00
|
|
|
BuildRequires: glib2-devel
|
2022-08-30 19:05:29 +00:00
|
|
|
BuildRequires: intltool
|
2022-09-05 16:48:39 +00:00
|
|
|
BuildRequires: libpng-devel > 2:1.2
|
|
|
|
BuildRequires: libstdc++-devel
|
|
|
|
BuildRequires: libtiff-devel
|
2013-07-21 17:42:00 +00:00
|
|
|
BuildRequires: libtool
|
2022-08-30 19:05:29 +00:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: procps-ng
|
2022-09-05 16:48:39 +00:00
|
|
|
BuildRequires: pstoedit-devel
|
2004-11-08 04:05:13 +00:00
|
|
|
|
2009-03-02 12:21:34 +00:00
|
|
|
|
2004-11-08 04:05:13 +00:00
|
|
|
%description
|
2010-05-17 18:14:07 +00:00
|
|
|
AutoTrace is a program for converting bitmaps to vector graphics.
|
2004-11-08 04:05:13 +00:00
|
|
|
|
|
|
|
Supported input formats include BMP, TGA, PNM, PPM, and any format
|
|
|
|
supported by ImageMagick, whereas output can be produced in
|
|
|
|
Postscript, SVG, xfig, SWF, and others.
|
|
|
|
|
2022-09-05 16:48:39 +00:00
|
|
|
|
2004-11-08 04:05:13 +00:00
|
|
|
%package devel
|
2012-07-21 19:13:35 +00:00
|
|
|
Summary: Header files for autotrace
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2004-11-28 04:36:14 +00:00
|
|
|
Requires: pkgconfig
|
2023-02-28 16:55:04 +00:00
|
|
|
%if 0%{?rhel} < 8
|
2004-11-28 04:36:14 +00:00
|
|
|
Requires: ImageMagick-devel
|
2023-01-24 11:14:14 +00:00
|
|
|
%endif
|
2013-07-21 17:42:00 +00:00
|
|
|
Requires: pstoedit-devel
|
2004-11-08 04:05:13 +00:00
|
|
|
|
2005-03-03 19:29:59 +00:00
|
|
|
|
2004-11-08 04:05:13 +00:00
|
|
|
%description devel
|
2010-05-17 18:14:07 +00:00
|
|
|
This package contains header files and development libraries for autotrace.
|
2004-11-08 04:05:13 +00:00
|
|
|
|
2004-11-28 04:36:14 +00:00
|
|
|
|
2004-11-08 04:05:13 +00:00
|
|
|
%prep
|
2022-08-30 19:05:29 +00:00
|
|
|
%autosetup -p1
|
2004-11-28 04:36:14 +00:00
|
|
|
|
2022-09-05 16:48:39 +00:00
|
|
|
|
2004-11-08 04:05:13 +00:00
|
|
|
%build
|
2022-08-30 19:05:29 +00:00
|
|
|
autoreconf -ivf
|
2023-02-28 16:55:04 +00:00
|
|
|
%if 0%{?rhel} < 8
|
2022-08-30 19:05:29 +00:00
|
|
|
%configure --enable-magick-readers --disable-static
|
2023-02-28 16:55:04 +00:00
|
|
|
%else
|
|
|
|
%configure --without-magick --disable-static
|
2023-01-24 11:14:14 +00:00
|
|
|
%endif
|
2023-02-28 16:55:04 +00:00
|
|
|
%make_build
|
2004-11-08 04:05:13 +00:00
|
|
|
|
2004-11-28 04:36:14 +00:00
|
|
|
|
2004-11-08 04:05:13 +00:00
|
|
|
%install
|
2022-08-30 19:05:29 +00:00
|
|
|
%make_install
|
|
|
|
%find_lang %{name}
|
2004-11-08 04:05:13 +00:00
|
|
|
|
2022-09-05 16:48:39 +00:00
|
|
|
|
2022-08-30 19:05:29 +00:00
|
|
|
%check
|
|
|
|
make check
|
2004-11-28 04:36:14 +00:00
|
|
|
|
2022-09-05 16:48:39 +00:00
|
|
|
|
2019-01-22 17:38:33 +00:00
|
|
|
%ldconfig_scriptlets
|
2006-01-16 18:20:15 +00:00
|
|
|
|
|
|
|
|
2022-08-30 19:05:29 +00:00
|
|
|
%files -f %{name}.lang
|
|
|
|
%license COPYING COPYING.LIB
|
|
|
|
%doc AUTHORS ChangeLog FAQ NEWS README.md THANKS TODO
|
2004-11-08 04:05:13 +00:00
|
|
|
%{_bindir}/autotrace
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_mandir}/man[^3]/*
|
|
|
|
|
2022-08-30 19:05:29 +00:00
|
|
|
|
2004-11-08 04:05:13 +00:00
|
|
|
%files devel
|
|
|
|
%{_libdir}/*.so
|
2012-07-21 19:13:35 +00:00
|
|
|
%{_libdir}/pkgconfig/autotrace.pc
|
2004-11-08 04:05:13 +00:00
|
|
|
%{_includedir}/autotrace/
|
|
|
|
|
2004-11-28 04:36:14 +00:00
|
|
|
|
2004-11-08 04:05:13 +00:00
|
|
|
%changelog
|
2022-09-05 16:48:39 +00:00
|
|
|
%autochangelog
|