92b115
%global apiversion 0.0
92b115
92b115
Name: libqxp
92b115
Version: 0.0.1
92b115
Release: 2%{?dist}
92b115
Summary: Library for import of QuarkXPress documents
92b115
92b115
License: MPLv2.0
92b115
URL: http://wiki.documentfoundation.org/DLP/Libraries/libqxp
92b115
Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
92b115
92b115
BuildRequires: boost-devel
92b115
BuildRequires: doxygen
92b115
BuildRequires: help2man
92b115
BuildRequires: pkgconfig(cppunit)
92b115
BuildRequires: pkgconfig(icu-uc)
92b115
BuildRequires: pkgconfig(librevenge-0.0)
92b115
BuildRequires: pkgconfig(librevenge-generators-0.0)
92b115
BuildRequires: pkgconfig(librevenge-stream-0.0)
92b115
92b115
%description
92b115
libqxp is library providing ability to interpret and import QuarkXPress
92b115
document formats into various applications. Currently it only supports
92b115
QuarkXPress 3.1-4.1.
92b115
92b115
%package devel
92b115
Summary: Development files for %{name}
92b115
Requires: %{name}%{?_isa} = %{version}-%{release}
92b115
92b115
%description devel
92b115
The %{name}-devel package contains libraries and header files for
92b115
developing applications that use %{name}.
92b115
92b115
%package doc
92b115
Summary: Documentation of %{name} API
92b115
BuildArch: noarch
92b115
92b115
%description doc
92b115
The %{name}-doc package contains documentation files for %{name}.
92b115
92b115
%package tools
92b115
Summary: Tools to transform QuarkXPress documents into other formats
92b115
Requires: %{name}%{?_isa} = %{version}-%{release}
92b115
92b115
%description tools
92b115
Tools to transform QuarkXPress documents into other formats.
92b115
Currently supported: SVG, plain text, raw.
92b115
92b115
%prep
92b115
%autosetup -p1
92b115
92b115
%build
92b115
%configure --disable-silent-rules --disable-static
92b115
sed -i \
92b115
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
92b115
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
92b115
    libtool
92b115
make %{?_smp_mflags}
92b115
92b115
%install
92b115
make install DESTDIR=%{buildroot}
92b115
rm -f %{buildroot}/%{_libdir}/*.la
92b115
# we install API docs directly from build
92b115
rm -rf %{buildroot}/%{_docdir}/%{name}
92b115
92b115
# generate and install man pages
92b115
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
92b115
for tool in qxp2raw qxp2svg qxp2text; do
92b115
    help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
92b115
done
92b115
install -m 0755 -d %{buildroot}/%{_mandir}/man1
92b115
install -m 0644 qxp2*.1 %{buildroot}/%{_mandir}/man1
92b115
92b115
%post -p /sbin/ldconfig
92b115
%postun -p /sbin/ldconfig
92b115
92b115
%check
92b115
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
92b115
make %{?_smp_mflags} check
92b115
92b115
%files
92b115
%doc AUTHORS NEWS README
92b115
%license COPYING
92b115
%{_libdir}/%{name}-%{apiversion}.so.*
92b115
92b115
%files devel
92b115
%doc ChangeLog
92b115
%{_includedir}/%{name}-%{apiversion}
92b115
%{_libdir}/%{name}-%{apiversion}.so
92b115
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
92b115
92b115
%files doc
92b115
%license COPYING
92b115
%doc docs/doxygen/html
92b115
92b115
%files tools
92b115
%{_bindir}/qxp2raw
92b115
%{_bindir}/qxp2svg
92b115
%{_bindir}/qxp2text
92b115
%{_mandir}/man1/qxp2raw.1*
92b115
%{_mandir}/man1/qxp2svg.1*
92b115
%{_mandir}/man1/qxp2text.1*
92b115
92b115
%changelog
92b115
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-2
92b115
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
92b115
92b115
* Tue Jan 02 2018 David Tardon <dtardon@redhat.com> - 0.0.1-1
92b115
- new upstream release
92b115
92b115
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 0.0.0-2
92b115
- Rebuild for ICU 60.1
92b115
92b115
* Sun Aug 27 2017 David Tardon <dtardon@redhat.com> - 0.0.0-1
92b115
- initial import
92b115