78806e53f8
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
96 lines
2.1 KiB
RPMSpec
96 lines
2.1 KiB
RPMSpec
Name: autotrace
|
|
Version: 0.31.9
|
|
Release: %autorelease
|
|
Summary: Utility for converting bitmaps to vector graphics
|
|
License: GPLv2+ and LGPLv2+
|
|
URL: http://autotrace.sourceforge.net/
|
|
Source0: https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
# https://github.com/autotrace/autotrace/pull/105
|
|
Patch0: autotrace-0.31.9-pr105-ImageMagick7.patch
|
|
# https://github.com/autotrace/autotrace/pull/108
|
|
Patch1: autotrace-0.31.9-expected-test-failure-no-imagemagick.patch
|
|
# No ImageMagick in RHEL 8 and future releases
|
|
%if 0%{?rhel} < 8
|
|
BuildRequires: ImageMagick-devel
|
|
%endif
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: gcc
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: intltool
|
|
BuildRequires: libpng-devel > 2:1.2
|
|
BuildRequires: libstdc++-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: make
|
|
BuildRequires: procps-ng
|
|
BuildRequires: pstoedit-devel
|
|
|
|
|
|
%description
|
|
AutoTrace is a program for converting bitmaps to vector graphics.
|
|
|
|
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.
|
|
|
|
|
|
%package devel
|
|
Summary: Header files for autotrace
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
%if 0%{?rhel} < 8
|
|
Requires: ImageMagick-devel
|
|
%endif
|
|
Requires: pstoedit-devel
|
|
|
|
|
|
%description devel
|
|
This package contains header files and development libraries for autotrace.
|
|
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
|
|
%build
|
|
autoreconf -ivf
|
|
%if 0%{?rhel} < 8
|
|
%configure --enable-magick-readers --disable-static
|
|
%else
|
|
%configure --without-magick --disable-static
|
|
%endif
|
|
%make_build
|
|
|
|
|
|
%install
|
|
%make_install
|
|
%find_lang %{name}
|
|
|
|
|
|
%check
|
|
make check
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
%files -f %{name}.lang
|
|
%license COPYING COPYING.LIB
|
|
%doc AUTHORS ChangeLog FAQ NEWS README.md THANKS TODO
|
|
%{_bindir}/autotrace
|
|
%{_libdir}/*.so.*
|
|
%{_mandir}/man[^3]/*
|
|
|
|
|
|
%files devel
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/autotrace.pc
|
|
%{_includedir}/autotrace/
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|