From 6c4c84a219e183faa0531e2996a6b395ff5e586a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:28:24 +0100 Subject: [PATCH] rebuilt with shared library [release 1.16-2mamba;Wed May 13 2020] --- potrace.spec | 47 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/potrace.spec b/potrace.spec index 9c6da99..944cd58 100644 --- a/potrace.spec +++ b/potrace.spec @@ -1,6 +1,6 @@ Name: potrace Version: 1.16 -Release: 1mamba +Release: 2mamba Summary: Transforms bitmaps into vector graphics Group: Graphical Desktop/Applications/Graphics Vendor: openmamba @@ -12,8 +12,10 @@ Patch: %{name}-1.8-xfig.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: ldconfig BuildRequires: libz-devel ## AUTOBUILDREQ-END +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -22,12 +24,33 @@ The input is a portable bitmap (PBM), and the default output is an encapsulated 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, and it can be scaled to any resolution. +%package -n lib%{name} +Group: System/Libraries +Summary: Shared library provided with %{name} + +%description -n lib%{name} +This package contains the shared library provided with %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + %prep %setup -q #%patch -p0 %build -%configure +%configure \ + --with-libpotrace \ + --enable-metric \ + --enable-a4 + %make %install @@ -37,6 +60,9 @@ The resulting image is not "jaggy" like a bitmap, but smooth, and it can be scal %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + %files %defattr(-,root,root) %{_bindir}//mkbitmap @@ -45,9 +71,24 @@ The resulting image is not "jaggy" like a bitmap, but smooth, and it can be scal %{_mandir}/man1/potrace.* %dir %{_docdir}/potrace %{_docdir}/potrace/placement.pdf -%doc AUTHORS COPYING ChangeLog NEWS README + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libpotrace.so.* +%doc AUTHORS COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/potracelib.h +%{_libdir}/libpotrace.a +%{_libdir}/libpotrace.la +%{_libdir}/libpotrace.so +%doc ChangeLog NEWS README %changelog +* Wed May 13 2020 Silvan Calarco 1.16-2mamba +- rebuilt with shared library + * Fri Sep 20 2019 Automatic Build System 1.16-1mamba - automatic version update by autodist