Blame SPECS/libqxp.spec

17b699
%global apiversion 0.0
17b699
17b699
Name: libqxp
17b699
Version: 0.0.2
17b699
Release: 11%{?dist}
17b699
Summary: Library for import of QuarkXPress documents
17b699
17b699
License: MPLv2.0
17b699
URL: http://wiki.documentfoundation.org/DLP/Libraries/libqxp
17b699
Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
17b699
17b699
BuildRequires: boost-devel
17b699
BuildRequires: doxygen
17b699
BuildRequires: gcc-c++
17b699
BuildRequires: help2man
17b699
BuildRequires: pkgconfig(cppunit)
17b699
BuildRequires: pkgconfig(icu-uc)
17b699
BuildRequires: pkgconfig(librevenge-0.0)
17b699
BuildRequires: pkgconfig(librevenge-generators-0.0)
17b699
BuildRequires: pkgconfig(librevenge-stream-0.0)
17b699
BuildRequires: make
17b699
17b699
%description
17b699
libqxp is library providing ability to interpret and import QuarkXPress
17b699
document formats into various applications. Currently it only supports
17b699
QuarkXPress 3.1-4.1.
17b699
17b699
%package devel
17b699
Summary: Development files for %{name}
17b699
Requires: %{name}%{?_isa} = %{version}-%{release}
17b699
17b699
%description devel
17b699
The %{name}-devel package contains libraries and header files for
17b699
developing applications that use %{name}.
17b699
17b699
%package doc
17b699
Summary: Documentation of %{name} API
17b699
BuildArch: noarch
17b699
17b699
%description doc
17b699
The %{name}-doc package contains documentation files for %{name}.
17b699
17b699
%package tools
17b699
Summary: Tools to transform QuarkXPress documents into other formats
17b699
Requires: %{name}%{?_isa} = %{version}-%{release}
17b699
17b699
%description tools
17b699
Tools to transform QuarkXPress documents into other formats.
17b699
Currently supported: SVG, plain text, raw.
17b699
17b699
%prep
17b699
%autosetup -p1
17b699
17b699
%build
17b699
%configure --disable-silent-rules --disable-static
17b699
sed -i \
17b699
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
17b699
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
17b699
    libtool
17b699
make %{?_smp_mflags}
17b699
17b699
%install
17b699
make install DESTDIR=%{buildroot}
17b699
rm -f %{buildroot}/%{_libdir}/*.la
17b699
# we install API docs directly from build
17b699
rm -rf %{buildroot}/%{_docdir}/%{name}
17b699
17b699
# generate and install man pages
17b699
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
17b699
for tool in qxp2raw qxp2svg qxp2text; do
17b699
    help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
17b699
done
17b699
install -m 0755 -d %{buildroot}/%{_mandir}/man1
17b699
install -m 0644 qxp2*.1 %{buildroot}/%{_mandir}/man1
17b699
17b699
%ldconfig_scriptlets
17b699
17b699
%check
17b699
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
17b699
make %{?_smp_mflags} check
17b699
17b699
%files
17b699
%doc AUTHORS NEWS README
17b699
%license COPYING
17b699
%{_libdir}/%{name}-%{apiversion}.so.*
17b699
17b699
%files devel
17b699
%doc ChangeLog
17b699
%{_includedir}/%{name}-%{apiversion}
17b699
%{_libdir}/%{name}-%{apiversion}.so
17b699
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
17b699
17b699
%files doc
17b699
%license COPYING
17b699
%doc docs/doxygen/html
17b699
17b699
%files tools
17b699
%{_bindir}/qxp2raw
17b699
%{_bindir}/qxp2svg
17b699
%{_bindir}/qxp2text
17b699
%{_mandir}/man1/qxp2raw.1*
17b699
%{_mandir}/man1/qxp2svg.1*
17b699
%{_mandir}/man1/qxp2text.1*
17b699
17b699
%changelog
17b699
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.2-11
17b699
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
17b699
  Related: rhbz#1991688
17b699
17b699
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.2-10
17b699
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
17b699
17b699
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-9
17b699
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
17b699
17b699
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-8
17b699
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
17b699
17b699
* Sat May 16 2020 Pete Walter <pwalter@fedoraproject.org> - 0.0.2-7
17b699
- Rebuild for ICU 67
17b699
17b699
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-6
17b699
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
17b699
17b699
* Fri Nov 01 2019 Pete Walter <pwalter@fedoraproject.org> - 0.0.2-5
17b699
- Rebuild for ICU 65
17b699
17b699
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-4
17b699
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
17b699
17b699
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-3
17b699
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
17b699
17b699
* Wed Jan 23 2019 Pete Walter <pwalter@fedoraproject.org> - 0.0.2-2
17b699
- Rebuild for ICU 63
17b699
17b699
* Sat Dec 29 2018 David Tardon <dtardon@redhat.com> - 0.0.2-1
17b699
- new upstream release
17b699
17b699
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-5
17b699
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
17b699
17b699
* Tue Jul 10 2018 Pete Walter <pwalter@fedoraproject.org> - 0.0.1-4
17b699
- Rebuild for ICU 62
17b699
17b699
* Mon Apr 30 2018 Pete Walter <pwalter@fedoraproject.org> - 0.0.1-3
17b699
- Rebuild for ICU 61.1
17b699
17b699
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-2
17b699
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
17b699
17b699
* Tue Jan 02 2018 David Tardon <dtardon@redhat.com> - 0.0.1-1
17b699
- new upstream release
17b699
17b699
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 0.0.0-2
17b699
- Rebuild for ICU 60.1
17b699
17b699
* Sun Aug 27 2017 David Tardon <dtardon@redhat.com> - 0.0.0-1
17b699
- initial import
17b699