libwpg/libwpg.spec

109 lines
3.2 KiB
RPMSpec
Raw Normal View History

2014-05-26 18:10:43 +00:00
%global apiversion 0.3
2013-04-21 07:43:44 +00:00
2009-01-09 09:57:07 +00:00
Name: libwpg
2019-01-01 18:37:56 +00:00
Version: 0.3.3
2022-11-21 19:54:16 +00:00
Release: %autorelease
2014-07-01 17:25:35 +00:00
Summary: A library for import of WordPerfect Graphics images
2009-01-09 09:57:07 +00:00
2022-11-21 19:54:13 +00:00
License: LGPL-2.1-or-later OR MPL-2.0
2009-01-09 09:57:07 +00:00
URL: http://libwpg.sourceforge.net/
2013-06-25 12:50:59 +00:00
Source0: http://download.sourceforge.net/libwpg/%{name}-%{version}.tar.xz
2009-01-09 09:57:07 +00:00
BuildRequires: doxygen
2018-02-19 11:58:16 +00:00
BuildRequires: gcc-c++
2014-04-09 13:08:45 +00:00
BuildRequires: help2man
BuildRequires: perl-generators
2014-04-09 13:08:45 +00:00
BuildRequires: perl(Getopt::Std)
2014-05-26 18:10:43 +00:00
BuildRequires: pkgconfig(librevenge-0.0)
2018-02-19 12:25:26 +00:00
BuildRequires: pkgconfig(librevenge-generators-0.0)
BuildRequires: pkgconfig(librevenge-stream-0.0)
2014-05-26 18:10:43 +00:00
BuildRequires: pkgconfig(libwpd-0.10)
BuildRequires: make
2009-01-09 09:57:07 +00:00
%description
2014-07-01 17:25:35 +00:00
%{name} is a library for import of images in WPG
(WordPerfect Graphics) format. WPG is the format used among others in
Corel software, such as WordPerfect and Presentations.
2009-01-09 09:57:07 +00:00
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
2009-01-09 09:57:07 +00:00
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
2013-08-19 12:20:40 +00:00
%package doc
Summary: Documentation of %{name} API
BuildArch: noarch
%description doc
The %{name}-doc package contains API documentation for %{name}.
2009-01-09 09:57:07 +00:00
%package tools
2014-07-01 17:25:35 +00:00
Summary: Tools to convert WordPerfect Graphics images to other formats
2013-06-25 12:50:02 +00:00
# wpg2svgbatch.pl says "GPL", without specifying version, and points to
# http://www.gnu.org/copyleft/gpl.html . I assume this means "any
# version".
License: (LGPLv2+ or MPLv2.0) and GPL+
2013-04-21 07:40:03 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
2009-01-09 09:57:07 +00:00
%description tools
2014-07-01 17:25:35 +00:00
Tools to convert WordPerfect Graphics images to other formats. Supported
are: SVG, raw.
2009-01-09 09:57:07 +00:00
%prep
%setup -q
%build
2019-01-01 19:03:48 +00:00
%configure --disable-static --disable-silent-rules
2012-11-29 09:04:56 +00:00
sed -i \
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
libtool
2019-01-01 19:03:48 +00:00
make %{?_smp_mflags}
2009-01-09 09:57:07 +00:00
%install
2014-04-09 13:16:02 +00:00
make install DESTDIR=%{buildroot}
find %{buildroot} -name '*.la' -exec rm -f {} ';'
2013-08-19 12:20:40 +00:00
# we install API docs directly from build
2014-04-09 13:16:02 +00:00
rm -rf %{buildroot}/%{_docdir}/%{name}
2009-01-09 09:57:07 +00:00
2016-01-13 14:27:26 +00:00
# generate and install man pages
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
for tool in wpg2raw wpg2svg; do
help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
2016-01-13 14:27:26 +00:00
done
help2man -N -S '%{name} %{version}' -n 'batch convert WordPerfect Graphics files into SVG' \
2016-01-13 14:27:26 +00:00
--help-option=-h --version-string='wpg2svgbatch.pl %{version}' \
-o wpg2svgbatch.pl.1 ./src/conv/svg/wpg2svgbatch.pl
2014-04-09 13:08:45 +00:00
install -m 0755 -d %{buildroot}/%{_mandir}/man1
install -m 0644 wpg2*.1 %{buildroot}/%{_mandir}/man1
%ldconfig_scriptlets
2009-01-09 09:57:07 +00:00
%files
2015-12-27 15:38:29 +00:00
%doc AUTHORS NEWS
%license COPYING.LGPL COPYING.MPL
2013-04-21 07:43:44 +00:00
%{_libdir}/%{name}-%{apiversion}.so.*
2009-01-09 09:57:07 +00:00
%files devel
2013-04-21 07:43:44 +00:00
%{_includedir}/%{name}-%{apiversion}
%{_libdir}/%{name}-%{apiversion}.so
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
2009-01-09 09:57:07 +00:00
2013-08-19 12:20:40 +00:00
%files doc
2015-12-27 15:38:29 +00:00
%license COPYING.LGPL COPYING.MPL
2013-08-19 12:20:40 +00:00
%doc docs/doxygen/html
2009-01-09 09:57:07 +00:00
%files tools
2013-04-21 07:43:44 +00:00
%{_bindir}/wpg2raw
%{_bindir}/wpg2svg
%{_bindir}/wpg2svgbatch.pl
2014-04-09 13:08:45 +00:00
%{_mandir}/man1/wpg2raw.1*
%{_mandir}/man1/wpg2svg.1*
%{_mandir}/man1/wpg2svgbatch.pl.1*
2009-01-09 09:57:07 +00:00
%changelog
2022-11-21 19:54:16 +00:00
%autochangelog