a2b046
%global apiversion 0.3
a2b046
a2b046
Name:           libwpg
a2b046
Version:        0.3.2
a2b046
Release:        1%{?dist}
a2b046
Summary:        A library for import of WordPerfect Graphics images
a2b046
a2b046
License:        LGPLv2+ or MPLv2.0
a2b046
URL:            http://libwpg.sourceforge.net/
a2b046
Source0:        http://download.sourceforge.net/libwpg/%{name}-%{version}.tar.xz
a2b046
a2b046
BuildRequires:  doxygen
a2b046
BuildRequires:  help2man
a2b046
BuildRequires:  perl-generators
a2b046
BuildRequires:  perl(Getopt::Std)
a2b046
BuildRequires:  pkgconfig(librevenge-0.0)
a2b046
BuildRequires:  pkgconfig(libwpd-0.10)
a2b046
a2b046
%description
a2b046
%{name} is a library for import of images in WPG
a2b046
(WordPerfect Graphics) format. WPG is the format used among others in
a2b046
Corel software, such as WordPerfect and Presentations.
a2b046
a2b046
%package devel
a2b046
Summary:        Development files for %{name}
a2b046
Requires:       %{name}%{?_isa} = %{version}-%{release}
a2b046
a2b046
%description devel
a2b046
The %{name}-devel package contains libraries and header files for
a2b046
developing applications that use %{name}.
a2b046
a2b046
%package doc
a2b046
Summary: Documentation of %{name} API
a2b046
BuildArch: noarch
a2b046
a2b046
%description doc
a2b046
The %{name}-doc package contains API documentation for %{name}.
a2b046
a2b046
%package tools
a2b046
Summary:        Tools to convert WordPerfect Graphics images to other formats
a2b046
# wpg2svgbatch.pl says "GPL", without specifying version, and points to
a2b046
# http://www.gnu.org/copyleft/gpl.html . I assume this means "any
a2b046
# version".
a2b046
License:        (LGPLv2+ or MPLv2.0) and GPL+
a2b046
Requires:       %{name}%{?_isa} = %{version}-%{release}
a2b046
a2b046
%description tools
a2b046
Tools to convert WordPerfect Graphics images to other formats. Supported
a2b046
are: SVG, raw.
a2b046
a2b046
%prep
a2b046
%setup -q
a2b046
a2b046
%build
a2b046
%configure --disable-static --disable-werror
a2b046
sed -i \
a2b046
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
a2b046
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
a2b046
    libtool
a2b046
make %{?_smp_mflags} V=1
a2b046
a2b046
%install
a2b046
make install DESTDIR=%{buildroot}
a2b046
find %{buildroot} -name '*.la' -exec rm -f {} ';'
a2b046
# we install API docs directly from build
a2b046
rm -rf %{buildroot}/%{_docdir}/%{name}
a2b046
a2b046
# generate and install man pages
a2b046
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
a2b046
for tool in wpg2raw wpg2svg; do
a2b046
    help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
a2b046
done
a2b046
help2man -N -S '%{name} %{version}' -n 'batch convert WordPerfect Graphics files into SVG' \
a2b046
    --help-option=-h --version-string='wpg2svgbatch.pl %{version}' \
a2b046
    -o wpg2svgbatch.pl.1 ./src/conv/svg/wpg2svgbatch.pl
a2b046
install -m 0755 -d %{buildroot}/%{_mandir}/man1
a2b046
install -m 0644 wpg2*.1 %{buildroot}/%{_mandir}/man1
a2b046
a2b046
%post -p /sbin/ldconfig
a2b046
%postun -p /sbin/ldconfig
a2b046
a2b046
%files
a2b046
%doc AUTHORS NEWS
a2b046
%license COPYING.LGPL COPYING.MPL
a2b046
%{_libdir}/%{name}-%{apiversion}.so.*
a2b046
a2b046
%files devel
a2b046
%{_includedir}/%{name}-%{apiversion}
a2b046
%{_libdir}/%{name}-%{apiversion}.so
a2b046
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
a2b046
a2b046
%files doc
a2b046
%license COPYING.LGPL COPYING.MPL
a2b046
%doc docs/doxygen/html
a2b046
a2b046
%files tools
a2b046
%{_bindir}/wpg2raw
a2b046
%{_bindir}/wpg2svg
a2b046
%{_bindir}/wpg2svgbatch.pl
a2b046
%{_mandir}/man1/wpg2raw.1*
a2b046
%{_mandir}/man1/wpg2svg.1*
a2b046
%{_mandir}/man1/wpg2svgbatch.pl.1*
a2b046
a2b046
%changelog
a2b046
* Tue Sep 12 2017 David Tardon <dtardon@redhat.com> - 0.3.2-1
a2b046
- new upstream release
a2b046
a2b046
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-6
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a2b046
a2b046
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-5
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a2b046
a2b046
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-4
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
a2b046
a2b046
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-3
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a2b046
a2b046
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a2b046
a2b046
* Sun Dec 27 2015 David Tardon <dtardon@redhat.com> - 0.3.1-1
a2b046
- new upstream release
a2b046
a2b046
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-5
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a2b046
a2b046
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.3.0-4
a2b046
- Rebuilt for GCC 5 C++11 ABI change
a2b046
a2b046
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a2b046
a2b046
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a2b046
a2b046
* Mon May 26 2014 David Tardon <dtardon@redhat.com> - 0.3.0-1
a2b046
- new upstream release
a2b046
a2b046
* Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.2.2-6
a2b046
- generate man pages
a2b046
a2b046
* Mon Aug 19 2013 David Tardon <dtardon@redhat.com> - 0.2.2-5
a2b046
- bump revision
a2b046
a2b046
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-4
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a2b046
a2b046
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 0.2.2-3
a2b046
- Perl 5.18 rebuild
a2b046
a2b046
* Tue Jun 25 2013 David Tardon <dtardon@redhat.com> - 0.2.2-2
a2b046
- bump release
a2b046
a2b046
* Thu Apr 18 2013 David Tardon <dtardon@redhat.com> - 0.2.2-1
a2b046
- new release
a2b046
a2b046
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-2
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a2b046
a2b046
* Thu Nov 29 2012 David Tardon <dtardon@redhat.com> - 0.2.1-1
a2b046
- new upstream release
a2b046
a2b046
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-5
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a2b046
a2b046
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-4
a2b046
- Rebuilt for c++ ABI breakage
a2b046
a2b046
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-3
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a2b046
a2b046
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a2b046
a2b046
* Sun Dec 05 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.0-1
a2b046
- latest version
a2b046
a2b046
* Tue Jul 28 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.1.3-4
a2b046
- Fix multilib problem with doxygen documentation (#508940)
a2b046
a2b046
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a2b046
a2b046
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
a2b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a2b046
a2b046
* Tue Jan 6 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.1.3-1
a2b046
- Initial packaging