|
|
89d06f |
%global apiversion 0.1
|
|
|
89d06f |
|
|
|
89d06f |
Name: libfreehand
|
|
|
89d06f |
Version: 0.1.1
|
|
|
89d06f |
Release: 1%{?dist}
|
|
|
89d06f |
Summary: A library for import of Macromedia/Adobe FreeHand documents
|
|
|
89d06f |
|
|
|
89d06f |
License: MPLv2.0
|
|
|
89d06f |
URL: http://wiki.documentfoundation.org/DLP/Libraries/libfreehand
|
|
|
89d06f |
Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
|
|
|
89d06f |
|
|
|
89d06f |
BuildRequires: doxygen
|
|
|
89d06f |
BuildRequires: gperf
|
|
|
89d06f |
BuildRequires: help2man
|
|
|
89d06f |
BuildRequires: pkgconfig(icu-i18n)
|
|
|
89d06f |
BuildRequires: pkgconfig(librevenge-0.0)
|
|
|
89d06f |
BuildRequires: pkgconfig(lcms2)
|
|
|
89d06f |
BuildRequires: pkgconfig(zlib)
|
|
|
89d06f |
|
|
|
89d06f |
%description
|
|
|
89d06f |
libfreehand is library providing ability to interpret and import
|
|
|
89d06f |
Macromedia/Adobe FreeHand documents into various applications.
|
|
|
89d06f |
|
|
|
89d06f |
%package devel
|
|
|
89d06f |
Summary: Development files for %{name}
|
|
|
89d06f |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
89d06f |
|
|
|
89d06f |
%description devel
|
|
|
89d06f |
The %{name}-devel package contains libraries and header files for
|
|
|
89d06f |
developing applications that use %{name}.
|
|
|
89d06f |
|
|
|
89d06f |
%package doc
|
|
|
89d06f |
Summary: Documentation of %{name} API
|
|
|
89d06f |
BuildArch: noarch
|
|
|
89d06f |
|
|
|
89d06f |
%description doc
|
|
|
89d06f |
The %{name}-doc package contains documentation files for %{name}.
|
|
|
89d06f |
|
|
|
89d06f |
%package tools
|
|
|
89d06f |
Summary: Tools to transform Macromedia/Adobe FreeHand documents into other formats
|
|
|
89d06f |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
89d06f |
|
|
|
89d06f |
%description tools
|
|
|
89d06f |
Tools to transform Macromedia/Adobe FreeHand documents into other formats.
|
|
|
89d06f |
Currently supported: SVG, raw, text.
|
|
|
89d06f |
|
|
|
89d06f |
%prep
|
|
|
89d06f |
%autosetup -p1
|
|
|
89d06f |
|
|
|
89d06f |
%build
|
|
|
89d06f |
%configure --disable-silent-rules --disable-static --disable-werror
|
|
|
89d06f |
sed -i \
|
|
|
89d06f |
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
89d06f |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
89d06f |
libtool
|
|
|
89d06f |
make %{?_smp_mflags}
|
|
|
89d06f |
|
|
|
89d06f |
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
89d06f |
help2man -N -n 'debug the conversion library' -o fh2raw.1 ./src/conv/raw/.libs/fh2raw
|
|
|
89d06f |
help2man -N -n 'convert FreeHand document into SVG' -o fh2svg.1 ./src/conv/svg/.libs/fh2svg
|
|
|
89d06f |
help2man -N -n 'convert FreeHand document into plain text' -o fh2text.1 ./src/conv/text/.libs/fh2text
|
|
|
89d06f |
|
|
|
89d06f |
%install
|
|
|
89d06f |
make install DESTDIR=%{buildroot}
|
|
|
89d06f |
rm -f %{buildroot}/%{_libdir}/*.la
|
|
|
89d06f |
# we install API docs directly from build
|
|
|
89d06f |
rm -rf %{buildroot}/%{_docdir}/%{name}
|
|
|
89d06f |
|
|
|
89d06f |
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
|
|
89d06f |
install -m 0644 fh2*.1 %{buildroot}/%{_mandir}/man1
|
|
|
89d06f |
|
|
|
89d06f |
%post -p /sbin/ldconfig
|
|
|
89d06f |
|
|
|
89d06f |
%postun -p /sbin/ldconfig
|
|
|
89d06f |
|
|
|
89d06f |
%files
|
|
|
89d06f |
%doc AUTHORS COPYING
|
|
|
89d06f |
%{_libdir}/%{name}-%{apiversion}.so.*
|
|
|
89d06f |
|
|
|
89d06f |
%files devel
|
|
|
89d06f |
%doc ChangeLog
|
|
|
89d06f |
%{_includedir}/%{name}-%{apiversion}
|
|
|
89d06f |
%{_libdir}/%{name}-%{apiversion}.so
|
|
|
89d06f |
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
|
|
|
89d06f |
|
|
|
89d06f |
%files doc
|
|
|
89d06f |
%doc COPYING
|
|
|
89d06f |
%doc docs/doxygen/html
|
|
|
89d06f |
|
|
|
89d06f |
%files tools
|
|
|
89d06f |
%{_bindir}/fh2raw
|
|
|
89d06f |
%{_bindir}/fh2svg
|
|
|
89d06f |
%{_bindir}/fh2text
|
|
|
89d06f |
%{_mandir}/man1/fh2raw.1*
|
|
|
89d06f |
%{_mandir}/man1/fh2svg.1*
|
|
|
89d06f |
%{_mandir}/man1/fh2text.1*
|
|
|
89d06f |
|
|
|
89d06f |
%changelog
|
|
|
89d06f |
* Thu Jun 11 2015 David Tardon <dtardon@redhat.com> - 0.1.1-1
|
|
|
89d06f |
- Resolves: rhbz#1207753 rebase to 0.1.1
|
|
|
89d06f |
|
|
|
89d06f |
* Fri Apr 17 2015 David Tardon <dtardon@redhat.com> - 0.1.0-1
|
|
|
89d06f |
- Resolves: rhbz#1207753 rebase to 0.1.0
|
|
|
89d06f |
|
|
|
89d06f |
* Mon Nov 04 2013 David Tardon <dtardon@redhat.com> - 0.0.0-3
|
|
|
89d06f |
- fix memory leak
|
|
|
89d06f |
|
|
|
89d06f |
* Thu Oct 31 2013 David Tardon <dtardon@redhat.com> 0.0.0-2
|
|
|
89d06f |
- add gperf to BuildRequires
|
|
|
89d06f |
|
|
|
89d06f |
* Thu Oct 31 2013 David Tardon <dtardon@redhat.com> 0.0.0-1
|
|
|
89d06f |
- initial import
|