--- /dev/null
+--- autotrace-0.27a/Makefile.am.orig Sat Mar 24 19:56:35 2001
++++ autotrace-0.27a/Makefile.am Thu Oct 25 22:24:51 2001
+@@ -6,7 +6,7 @@
+ AUTOMAKE_OPTIONS = foreign no-dependencies
+
+ autotraceincludedir=$(includedir)/autotrace
+-lib_LIBRARIES=libautotrace.a
++lib_LTLIBRARIES=libautotrace.la
+ bin_PROGRAMS=autotrace
+
+ if HAVE_MAGICK
+@@ -42,7 +42,7 @@
+ output-emf.c output-emf.h \
+ $(output_swf_src)
+
+-libautotrace_a_SOURCES = version.c \
++libautotrace_la_SOURCES = version.c \
+ $(input_src) ${output_src} \
+ fit.c \
+ bitmap.c \
+@@ -100,7 +100,13 @@
+
++libautotrace_la_LIBADD = \
++ $(MAGICK_LDFLAGS) \
++ $(LIBPNG_LDFLAGS) \
++ $(LIBSWF_LDFLAGS) \
++ -lm
++
+ INCLUDES = $(MAGICK_CFLAGS)
+ autotrace_LDADD = \
+- libautotrace.a \
++ libautotrace.la \
+ $(MAGICK_LDFLAGS) \
+ $(LIBPNG_LDFLAGS) \
+ $(LIBSWF_LDFLAGS) \
+--- autotrace-0.27a/configure.in.orig Sat Mar 24 19:57:10 2001
++++ autotrace-0.27a/configure.in Thu Oct 25 22:31:17 2001
+@@ -8,7 +8,7 @@
+
+ AC_PROG_CC
+ AC_PROG_CPP
+-AC_PROG_RANLIB
++AM_PROG_LIBTOOL
+
+ dnl
+ dnl ImageMagick
--- /dev/null
+Summary: AutoTrace - convert bitmap to vector graphics
+Summary(pl): AutoTrace - konwersja grafiki rastrowej do wektorowej
+Name: autotrace
+Version: 0.27a
+Release: 1
+License: GPL
+Group: Applications
+Source0: ftp://ftp.sourceforge.net/pub/sourceforge/autotrace/%{name}-%{version}.tar.gz
+Patch0: %{name}-shared.patch
+Patch1: %{name}-magick.patch
+URL: http://autotrace.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libpng-devel >= 1.0.6
+BuildRequires: ming-devel
+BuildRequires: ImageMagick-devel >= 5.2.1
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+AutoTrace is a utility that converts bitmap to vector graphics.
+It can import p[nbgp]m, bmp, tga, png (and many more through
+ImageMagick) files and write to emf, eps, ai, er, fig, svg, sk and swf
+files.
+
+%description -l pl
+AutoTrace jest narzêdziem do konwersji grafiki rastrowej na wektorow±.
+Mo¿e wczytywaæ pliki p[nbgp]m, bmp, tga, png (i wiele innych przez
+ImageMagick, a zapisywaæ w formacie emf, eps, ai, er, fig, svg, sk
+oraz swf.
+
+%package devel
+Summary: AutoTrace library development files
+Summary(pl): Pliki dla programistów u¿ywaj±cych biblioteki AutoTrace
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+%description devel
+AutoTrace library header files.
+
+%description devel -l pl
+Pliki nag³ówkowe do biblioteki AutoTrace.
+
+%package static
+Summary: AutoTrace static library
+Summary(pl): Biblioteka statyczna AutoTrace
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}
+
+%description static
+AutoTrace static library.
+
+%description static -l pl
+Biblioteka statyczna AutoTrace.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+libtoolize --copy --force
+aclocal
+autoconf
+automake -a -c
+%configure \
+ --enable-shared
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+gzip -9nf AUTHORS NEWS README THANKS
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc *.gz
+%attr(755,root,root) %{_bindir}/autotrace
+%attr(755,root,root) %{_libdir}/*.so.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/*.so
+%attr(755,root,root) %{_libdir}/*.la
+%attr(755,root,root) %{_bindir}/autotrace-config
+%{_includedir}/autotrace
+%{_aclocaldir}/autotrace.m4
+
+%files static
+%defattr(644,root,root,755)