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