|
|
36f633 |
%global apiversion 0.3
|
|
|
36f633 |
|
|
|
36f633 |
Name: libwpg
|
|
|
36f633 |
Version: 0.3.0
|
|
|
36f633 |
Release: 1%{?dist}
|
|
|
36f633 |
Summary: A library for import of WordPerfect Graphics images
|
|
|
36f633 |
|
|
|
36f633 |
License: LGPLv2+ or MPLv2.0
|
|
|
36f633 |
URL: http://libwpg.sourceforge.net/
|
|
|
36f633 |
Source0: http://download.sourceforge.net/libwpg/%{name}-%{version}.tar.xz
|
|
|
36f633 |
|
|
|
36f633 |
BuildRequires: doxygen
|
|
|
36f633 |
BuildRequires: help2man
|
|
|
36f633 |
BuildRequires: perl(Getopt::Std)
|
|
|
36f633 |
BuildRequires: pkgconfig(librevenge-0.0)
|
|
|
36f633 |
BuildRequires: pkgconfig(libwpd-0.10)
|
|
|
36f633 |
|
|
|
36f633 |
%description
|
|
|
36f633 |
%{name} is a library for import of images in WPG
|
|
|
36f633 |
(WordPerfect Graphics) format. WPG is the format used among others in
|
|
|
36f633 |
Corel software, such as WordPerfect and Presentations.
|
|
|
36f633 |
|
|
|
36f633 |
%package devel
|
|
|
36f633 |
Summary: Development files for %{name}
|
|
|
36f633 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
36f633 |
|
|
|
36f633 |
%description devel
|
|
|
36f633 |
The %{name}-devel package contains libraries and header files for
|
|
|
36f633 |
developing applications that use %{name}.
|
|
|
36f633 |
|
|
|
36f633 |
%package doc
|
|
|
36f633 |
Summary: Documentation of %{name} API
|
|
|
36f633 |
BuildArch: noarch
|
|
|
36f633 |
|
|
|
36f633 |
%description doc
|
|
|
36f633 |
The %{name}-doc package contains API documentation for %{name}.
|
|
|
36f633 |
|
|
|
36f633 |
%package tools
|
|
|
36f633 |
Summary: Tools to convert WordPerfect Graphics images to other formats
|
|
|
36f633 |
# wpg2svgbatch.pl says "GPL", without specifying version, and points to
|
|
|
36f633 |
# http://www.gnu.org/copyleft/gpl.html . I assume this means "any
|
|
|
36f633 |
# version".
|
|
|
36f633 |
License: (LGPLv2+ or MPLv2.0) and GPL+
|
|
|
36f633 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
36f633 |
|
|
|
36f633 |
%description tools
|
|
|
36f633 |
Tools to convert WordPerfect Graphics images to other formats. Supported
|
|
|
36f633 |
are: SVG, raw.
|
|
|
36f633 |
|
|
|
36f633 |
%prep
|
|
|
36f633 |
%setup -q
|
|
|
36f633 |
|
|
|
36f633 |
%build
|
|
|
36f633 |
%configure --disable-static --disable-werror
|
|
|
36f633 |
sed -i \
|
|
|
36f633 |
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
36f633 |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
36f633 |
libtool
|
|
|
36f633 |
make %{?_smp_mflags} V=1
|
|
|
36f633 |
sed 's/\r//' -i ChangeLog
|
|
|
36f633 |
find docs/doxygen/html |xargs touch -r docs/doxygen/doxygen.cfg
|
|
|
36f633 |
|
|
|
36f633 |
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
36f633 |
help2man -N -n 'debug the conversion library' -o wpg2raw.1 ./src/conv/raw/.libs/wpg2raw
|
|
|
36f633 |
help2man -N -n 'convert WordPerfect Graphics into SVG' -o wpg2svg.1 ./src/conv/svg/.libs/wpg2svg
|
|
|
36f633 |
help2man -N -n 'batch convert WordPerfect Graphics files into SVG' \
|
|
|
36f633 |
--help-option=-h --no-discard-stderr \
|
|
|
36f633 |
-o wpg2svgbatch.pl.1 ./src/conv/svg/wpg2svgbatch.pl
|
|
|
36f633 |
|
|
|
36f633 |
%install
|
|
|
36f633 |
make install DESTDIR=%{buildroot}
|
|
|
36f633 |
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
36f633 |
# we install API docs directly from build
|
|
|
36f633 |
rm -rf %{buildroot}/%{_docdir}/%{name}
|
|
|
36f633 |
|
|
|
36f633 |
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
|
|
36f633 |
install -m 0644 wpg2*.1 %{buildroot}/%{_mandir}/man1
|
|
|
36f633 |
|
|
|
36f633 |
%post -p /sbin/ldconfig
|
|
|
36f633 |
%postun -p /sbin/ldconfig
|
|
|
36f633 |
|
|
|
36f633 |
%files
|
|
|
36f633 |
%doc AUTHORS ChangeLog COPYING.LGPL COPYING.MPL
|
|
|
36f633 |
%{_libdir}/%{name}-%{apiversion}.so.*
|
|
|
36f633 |
|
|
|
36f633 |
%files devel
|
|
|
36f633 |
%{_includedir}/%{name}-%{apiversion}
|
|
|
36f633 |
%{_libdir}/%{name}-%{apiversion}.so
|
|
|
36f633 |
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
|
|
|
36f633 |
|
|
|
36f633 |
%files doc
|
|
|
36f633 |
%doc COPYING.LGPL COPYING.MPL
|
|
|
36f633 |
%doc docs/doxygen/html
|
|
|
36f633 |
|
|
|
36f633 |
%files tools
|
|
|
36f633 |
%{_bindir}/wpg2raw
|
|
|
36f633 |
%{_bindir}/wpg2svg
|
|
|
36f633 |
%{_bindir}/wpg2svgbatch.pl
|
|
|
36f633 |
%{_mandir}/man1/wpg2raw.1*
|
|
|
36f633 |
%{_mandir}/man1/wpg2svg.1*
|
|
|
36f633 |
%{_mandir}/man1/wpg2svgbatch.pl.1*
|
|
|
36f633 |
|
|
|
36f633 |
%changelog
|
|
|
36f633 |
* Fri Apr 17 2015 David Tardon <dtardon@redhat.com> - 0.3.0-1
|
|
|
36f633 |
- Resolves: rhbz#1207767 rebase to 0.3.0
|
|
|
36f633 |
|
|
|
36f633 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.2.2-4
|
|
|
36f633 |
- Mass rebuild 2014-01-24
|
|
|
36f633 |
|
|
|
36f633 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.2.2-3
|
|
|
36f633 |
- Mass rebuild 2013-12-27
|
|
|
36f633 |
|
|
|
36f633 |
* Tue Jun 25 2013 David Tardon <dtardon@redhat.com> - 0.2.2-2
|
|
|
36f633 |
- bump release
|
|
|
36f633 |
|
|
|
36f633 |
* Thu Apr 18 2013 David Tardon <dtardon@redhat.com> - 0.2.2-1
|
|
|
36f633 |
- new release
|
|
|
36f633 |
|
|
|
36f633 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-2
|
|
|
36f633 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
36f633 |
|
|
|
36f633 |
* Thu Nov 29 2012 David Tardon <dtardon@redhat.com> - 0.2.1-1
|
|
|
36f633 |
- new upstream release
|
|
|
36f633 |
|
|
|
36f633 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-5
|
|
|
36f633 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
36f633 |
|
|
|
36f633 |
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-4
|
|
|
36f633 |
- Rebuilt for c++ ABI breakage
|
|
|
36f633 |
|
|
|
36f633 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-3
|
|
|
36f633 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
36f633 |
|
|
|
36f633 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
|
|
|
36f633 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
36f633 |
|
|
|
36f633 |
* Sun Dec 05 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.0-1
|
|
|
36f633 |
- latest version
|
|
|
36f633 |
|
|
|
36f633 |
* Tue Jul 28 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.1.3-4
|
|
|
36f633 |
- Fix multilib problem with doxygen documentation (#508940)
|
|
|
36f633 |
|
|
|
36f633 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3
|
|
|
36f633 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
36f633 |
|
|
|
36f633 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
|
|
|
36f633 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
36f633 |
|
|
|
36f633 |
* Tue Jan 6 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.1.3-1
|
|
|
36f633 |
- Initial packaging
|