libwpd/libwpd.spec

99 lines
2.5 KiB
RPMSpec
Raw Normal View History

2014-05-26 16:46:12 +00:00
%global apiversion 0.10
2013-04-21 07:37:01 +00:00
Name: libwpd
2014-07-01 17:20:44 +00:00
Summary: A library for import of WordPerfect documents
2018-12-29 14:29:36 +00:00
Version: 0.10.3
2022-11-21 19:54:12 +00:00
Release: %autorelease
2013-05-14 10:58:26 +00:00
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
2020-11-04 22:46:33 +00:00
Patch0: %{name}-gcc11.patch
URL: http://libwpd.sf.net/
2022-11-21 19:54:09 +00:00
License: LGPL-2.1-or-later OR MPL-2.0
2013-04-21 07:21:30 +00:00
2017-09-12 19:34:07 +00:00
BuildRequires: boost-devel
2013-08-19 11:38:37 +00:00
BuildRequires: doxygen
2018-02-19 11:58:16 +00:00
BuildRequires: gcc-c++
2014-04-09 13:03:32 +00:00
BuildRequires: help2man
2014-05-26 16:46:12 +00:00
BuildRequires: pkgconfig(librevenge-0.0)
2018-02-19 12:24:41 +00:00
BuildRequires: pkgconfig(librevenge-generators-0.0)
BuildRequires: pkgconfig(librevenge-stream-0.0)
BuildRequires: pkgconfig(zlib)
BuildRequires: make
%description
2014-07-01 17:20:44 +00:00
%{name} is a library for import of WordPerfect documents.
%package tools
2014-07-01 17:20:44 +00:00
Summary: Tools to transform WordPerfect documents into other formats
2013-04-21 07:37:18 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tools
2014-07-01 17:20:44 +00:00
Tools to transform WordPerfect documents into other formats.
2010-07-19 13:25:43 +00:00
Currently supported: HTML, raw, text.
%package devel
Requires: %{name}%{?_isa} = %{version}-%{release}
2007-01-11 11:35:02 +00:00
Summary: Files for developing with libwpd
%description devel
Includes and definitions for developing with libwpd.
2013-08-19 10:59:11 +00:00
%package doc
Summary: Documentation of %{name} API
BuildArch: noarch
%description doc
The %{name}-doc package contains API documentation for %{name}.
%prep
2017-09-07 13:15:50 +00:00
%autosetup -p1
%build
2018-12-29 14:29:36 +00:00
%configure --disable-static --disable-silent-rules
2010-07-19 13:25:43 +00:00
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install
%make_install
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
2013-08-19 11:38:37 +00:00
# we install API docs directly from build
rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}
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 wpd2html wpd2raw wpd2text; do
help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
2016-01-13 14:27:26 +00:00
done
2014-04-09 13:03:32 +00:00
install -m 0755 -d %{buildroot}/%{_mandir}/man1
install -m 0644 wpd2*.1 %{buildroot}/%{_mandir}/man1
%ldconfig_scriptlets
%files
2015-12-30 15:39:19 +00:00
%doc CREDITS NEWS README
2015-12-27 16:01:31 +00:00
%license COPYING.LGPL COPYING.MPL
2013-04-21 07:37:01 +00:00
%{_libdir}/%{name}-%{apiversion}.so.*
%files tools
2013-04-21 07:37:01 +00:00
%{_bindir}/wpd2html
%{_bindir}/wpd2raw
%{_bindir}/wpd2text
2014-04-09 13:03:32 +00:00
%{_mandir}/man1/wpd2html.1*
%{_mandir}/man1/wpd2raw.1*
%{_mandir}/man1/wpd2text.1*
%files devel
2007-01-11 11:35:02 +00:00
%doc HACKING TODO
2013-04-21 07:37:01 +00:00
%{_libdir}/%{name}-%{apiversion}.so
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
%{_includedir}/%{name}-%{apiversion}
2013-08-19 10:59:11 +00:00
%files doc
2015-12-27 16:01:31 +00:00
%license COPYING.LGPL COPYING.MPL
2013-08-19 11:38:37 +00:00
%doc docs/doxygen/html
%doc docs/%{name}.dia
%doc docs/%{name}.png
2013-08-19 10:59:11 +00:00
%changelog
2022-11-21 19:54:12 +00:00
%autochangelog