|
|
755383 |
%global apiversion 0.0
|
|
|
755383 |
|
|
|
755383 |
Name: libzmf
|
|
|
755383 |
Version: 0.0.2
|
|
|
755383 |
Release: 3%{?dist}
|
|
|
755383 |
Summary: A library for import of Zoner document formats
|
|
|
755383 |
|
|
|
755383 |
License: MPLv2.0
|
|
|
755383 |
URL: http://wiki.documentfoundation.org/DLP/Libraries/libzmf
|
|
|
755383 |
Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
|
|
|
755383 |
|
|
|
755383 |
BuildRequires: boost-devel
|
|
|
755383 |
BuildRequires: doxygen
|
|
|
755383 |
BuildRequires: help2man
|
|
|
755383 |
BuildRequires: pkgconfig(cppunit)
|
|
|
755383 |
BuildRequires: pkgconfig(icu-uc)
|
|
|
755383 |
BuildRequires: pkgconfig(librevenge-0.0)
|
|
|
755383 |
BuildRequires: pkgconfig(libpng)
|
|
|
755383 |
BuildRequires: pkgconfig(zlib)
|
|
|
755383 |
|
|
|
755383 |
%description
|
|
|
755383 |
libzmf is library providing ability to interpret and import Zoner
|
|
|
755383 |
document formats into various applications. Currently it only supports
|
|
|
755383 |
Zoner Callisto/Draw v 4-5.
|
|
|
755383 |
|
|
|
755383 |
%package devel
|
|
|
755383 |
Summary: Development files for %{name}
|
|
|
755383 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
755383 |
|
|
|
755383 |
%description devel
|
|
|
755383 |
The %{name}-devel package contains libraries and header files for
|
|
|
755383 |
developing applications that use %{name}.
|
|
|
755383 |
|
|
|
755383 |
%package doc
|
|
|
755383 |
Summary: Documentation of %{name} API
|
|
|
755383 |
BuildArch: noarch
|
|
|
755383 |
|
|
|
755383 |
%description doc
|
|
|
755383 |
The %{name}-doc package contains documentation files for %{name}.
|
|
|
755383 |
|
|
|
755383 |
%package tools
|
|
|
755383 |
Summary: Tools to transform Zoner documents into other formats
|
|
|
755383 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
755383 |
|
|
|
755383 |
%description tools
|
|
|
755383 |
Tools to transform Zoner documents into other formats.
|
|
|
755383 |
Currently supported: SVG, raw.
|
|
|
755383 |
|
|
|
755383 |
%prep
|
|
|
755383 |
%autosetup -p1
|
|
|
755383 |
|
|
|
755383 |
%build
|
|
|
755383 |
%configure --disable-silent-rules --disable-static --disable-werror
|
|
|
755383 |
sed -i \
|
|
|
755383 |
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
755383 |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
755383 |
libtool
|
|
|
755383 |
make %{?_smp_mflags}
|
|
|
755383 |
|
|
|
755383 |
%install
|
|
|
755383 |
make install DESTDIR=%{buildroot}
|
|
|
755383 |
rm -f %{buildroot}/%{_libdir}/*.la
|
|
|
755383 |
# we install API docs directly from build
|
|
|
755383 |
rm -rf %{buildroot}/%{_docdir}/%{name}
|
|
|
755383 |
|
|
|
755383 |
# generate and install man pages
|
|
|
755383 |
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
755383 |
for tool in zmf2raw zmf2svg; do
|
|
|
755383 |
help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
|
|
|
755383 |
done
|
|
|
755383 |
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
|
|
755383 |
install -m 0644 zmf2*.1 %{buildroot}/%{_mandir}/man1
|
|
|
755383 |
|
|
|
755383 |
%ldconfig_scriptlets
|
|
|
755383 |
|
|
|
755383 |
%check
|
|
|
755383 |
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
755383 |
make %{?_smp_mflags} check
|
|
|
755383 |
|
|
|
755383 |
%files
|
|
|
755383 |
%doc AUTHORS NEWS
|
|
|
755383 |
%license COPYING
|
|
|
755383 |
%{_libdir}/%{name}-%{apiversion}.so.*
|
|
|
755383 |
|
|
|
755383 |
%files devel
|
|
|
755383 |
%doc ChangeLog
|
|
|
755383 |
%{_includedir}/%{name}-%{apiversion}
|
|
|
755383 |
%{_libdir}/%{name}-%{apiversion}.so
|
|
|
755383 |
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
|
|
|
755383 |
|
|
|
755383 |
%files doc
|
|
|
755383 |
%license COPYING
|
|
|
755383 |
%doc docs/doxygen/html
|
|
|
755383 |
|
|
|
755383 |
%files tools
|
|
|
755383 |
%{_bindir}/zmf2raw
|
|
|
755383 |
%{_bindir}/zmf2svg
|
|
|
755383 |
%{_mandir}/man1/zmf2raw.1*
|
|
|
755383 |
%{_mandir}/man1/zmf2svg.1*
|
|
|
755383 |
|
|
|
755383 |
%changelog
|
|
|
755383 |
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.2-3
|
|
|
755383 |
- Switch to %%ldconfig_scriptlets
|
|
|
755383 |
|
|
|
755383 |
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 0.0.2-2
|
|
|
755383 |
- Rebuild for ICU 60.1
|
|
|
755383 |
|
|
|
755383 |
* Thu Sep 14 2017 David Tardon <dtardon@redhat.com> - 0.0.2-1
|
|
|
755383 |
- new upstream release
|
|
|
755383 |
|
|
|
755383 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-5
|
|
|
755383 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
755383 |
|
|
|
755383 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-4
|
|
|
755383 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
755383 |
|
|
|
755383 |
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-3
|
|
|
755383 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
|
|
755383 |
|
|
|
755383 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-2
|
|
|
755383 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
755383 |
|
|
|
755383 |
* Wed Sep 07 2016 David Tardon <dtardon@redhat.com> - 0.0.1-1
|
|
|
755383 |
- new upstream release
|
|
|
755383 |
|
|
|
755383 |
* Thu Jun 23 2016 David Tardon <dtardon@redhat.com> 0.0.0-1
|
|
|
755383 |
- initial import
|