potrace/potrace.spec

127 lines
3.7 KiB
RPMSpec
Raw Normal View History

Name: potrace
Version: 1.16
Release: 2mamba
Summary: Transforms bitmaps into vector graphics
Group: Graphical Desktop/Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: http://potrace.sourceforge.net/
Source: http://potrace.sourceforge.net/download/%{version}/potrace-%{version}.tar.gz
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
potrace is a utility for tracing a bitmap, which means, transforming a bitmap into a smooth, scalable image.
The input is a portable bitmap (PBM), and the default output is an encapsulated PostScript file (EPS).
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 \
--with-libpotrace \
--enable-metric \
--enable-a4
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%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
%{_bindir}/potrace
%{_mandir}/man1/mkbitmap.*
%{_mandir}/man1/potrace.*
%dir %{_docdir}/potrace
%{_docdir}/potrace/placement.pdf
%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 <silvan.calarco@mambasoft.it> 1.16-2mamba
- rebuilt with shared library
* Fri Sep 20 2019 Automatic Build System <autodist@mambasoft.it> 1.16-1mamba
- automatic version update by autodist
* Sat Jan 13 2018 Automatic Build System <autodist@mambasoft.it> 1.15-1mamba
- automatic version update by autodist
* Thu Mar 16 2017 Automatic Build System <autodist@mambasoft.it> 1.14-1mamba
- automatic version update by autodist
* Sun Jan 31 2016 Automatic Build System <autodist@mambasoft.it> 1.13-1mamba
- automatic update by autodist
* Thu Apr 30 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.12-1mamba
- update to 1.12
* Wed Feb 20 2013 Automatic Build System <autodist@mambasoft.it> 1.11-1mamba
- automatic version update by autodist
* Tue Aug 30 2011 Automatic Build System <autodist@mambasoft.it> 1.10-1mamba
- automatic version update by autodist
* Fri Jan 28 2011 Automatic Build System <autodist@mambasoft.it> 1.9-1mamba
- update to 1.9
* Thu Jan 27 2011 Automatic Build System <autodist@mambasoft.it> 1.9.win64-1mamba
- automatic update by autodist
* Mon Nov 26 2007 Aleph0 <aleph0@openmamba.org> 1.8-1mamba
- update to 1.8
* Tue May 17 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.7-1qilnx
- new version
* Fri Sep 17 2004 Matteo Bernasconi <voyagernm@virgilio.it> 1.5-1qilnx
- first build