libwpg/libwpg.spec

128 lines
4.3 KiB
RPMSpec

%define apiver %(echo %version | cut -d. -f1-2)
Name: libwpg
Version: 0.3.0
Release: 1mamba
Summary: A collection of library and tools to work with graphics in WPG (WordPerfect Graphics) format
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://libwpg.sourceforge.net/
Source: http://downloads.sourceforge.net/project/libwpg/libwpg/libwpg-%{version}/libwpg-%{version}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libwpd-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: libwpd-devel >= 0.10
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Libwpg project is a collection of library and tools to work with graphics in WPG (WordPerfect Graphics) format. WPG is the format used among others in Corel sofware, such as WordPerfect(tm) and Presentations(tm).
At the moment, libwpg comprises of:
* libwpg, C++ library for parsing WPG
* wpg2svg, command-line converter to SVG (Scalable Vector Graphics)
* wpg2odg, command-line converter to ODG (OpenDocument Graphics)
* Perfectspot, stand-alone WPG viewer and converter
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
Libwpg project is a collection of library and tools to work with graphics in WPG (WordPerfect Graphics) format. WPG is the format used among others in Corel sofware, such as WordPerfect(tm) and Presentations(tm).
At the moment, libwpg comprises of:
* libwpg, C++ library for parsing WPG
* wpg2svg, command-line converter to SVG (Scalable Vector Graphics)
* wpg2odg, command-line converter to ODG (OpenDocument Graphics)
* Perfectspot, stand-alone WPG viewer and converter
This package contains static libraries and header files need for development.
%package tools
Group: Applications/Publishing
Summary: Tools to convert WordPerfect Graphics images
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
Libwpg project is a collection of library and tools to work with graphics in WPG (WordPerfect Graphics) format. WPG is the format used among others in Corel sofware, such as WordPerfect(tm) and Presentations(tm).
At the moment, libwpg comprises of:
* libwpg, C++ library for parsing WPG
* wpg2svg, command-line converter to SVG (Scalable Vector Graphics)
* wpg2odg, command-line converter to ODG (OpenDocument Graphics)
* Perfectspot, stand-alone WPG viewer and converter
This package package contains various programs for manipulating WordPerfect Graphics images.
%prep
%setup -q
%build
%configure
%make
sed 's/\r//' -i ChangeLog
find docs/doxygen/html |xargs touch -r docs/doxygen/doxygen.cfg
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_libdir}/libwpg-%{apiver}.so.*
%doc AUTHORS
%files devel
%defattr(-,root,root)
%{_libdir}/libwpg-%{apiver}.so
%{_libdir}/libwpg-%{apiver}.la
%dir %{_includedir}/libwpg-%{apiver}/libwpg
%{_includedir}/libwpg-%{apiver}/libwpg/*.h
%{_libdir}/pkgconfig/*.pc
%dir %{_docdir}/libwpg
%dir %{_docdir}/libwpg/html
%{_docdir}/libwpg/html/*
%doc ChangeLog
%files tools
%defattr(-,root,root)
%{_bindir}/wpg2raw
%{_bindir}/wpg2svg
%{_bindir}/wpg2svgbatch.pl
%changelog
* Sat Jul 05 2014 Automatic Build System <autodist@mambasoft.it> 0.3.0-1mamba
- automatic version update by autodist
* Mon May 13 2013 Automatic Build System <autodist@mambasoft.it> 0.2.2-1mamba
- automatic version update by autodist
* Fri Jul 06 2012 Automatic Build System <autodist@mambasoft.it> 0.2.1-1mamba
- automatic version update by autodist
* Mon Apr 12 2011 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 0.2.0-3mamba
- rebuilt
* Tue Feb 01 2011 gil <puntogil@libero.it> 0.2.0-2mamba
- rebuilt with new libwpd
* Sun Jan 23 2011 gil <puntogil@libero.it> 0.2.0-1mamba
- update to 0.2.0
* Thu Jul 09 2009 Automatic Build System <autodist@mambasoft.it> 0.1.3-1mamba
- automatic update by autodist
* Mon Aug 27 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.0-1mamba
- package created by autospec