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