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