|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
%global apiversion 0.1
|
|
|
|
|
|
|
|
|
|
Name: libcdr
|
|
|
|
|
Version: 0.1.1
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
Version: 0.1.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A library for import of CorelDRAW drawings
|
|
|
|
|
|
|
|
|
|
# the only Public Domain source is src/lib/CDRColorProfiles.h
|
|
|
|
@ -50,8 +50,6 @@ Currently supported: XHTML, text, raw.
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# rhbz#1258127 fix build with boost 1.59
|
|
|
|
|
export CPPFLAGS=-DBOOST_ERROR_CODE_HEADER_ONLY
|
|
|
|
|
%configure --disable-static --disable-werror
|
|
|
|
|
sed -i \
|
|
|
|
|
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
|
@ -59,13 +57,9 @@ sed -i \
|
|
|
|
|
libtool
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
|
help2man -N -n 'debug the conversion library' -o cdr2raw.1 ./src/conv/raw/.libs/cdr2raw
|
|
|
|
|
help2man -N -n 'convert CorelDRAW document into HTML' -o cdr2xhtml.1 ./src/conv/svg/.libs/cdr2xhtml
|
|
|
|
|
help2man -N -n 'convert CorelDRAW document into plain text' -o cdr2text.1 ./src/conv/text/.libs/cdr2text
|
|
|
|
|
help2man -N -n 'debug the conversion library' -o cmx2raw.1 ./src/conv/raw/.libs/cmx2raw
|
|
|
|
|
help2man -N -n 'convert Corel Presentation Exchange file into HTML' -o cmx2xhtml.1 ./src/conv/svg/.libs/cmx2xhtml
|
|
|
|
|
help2man -N -n 'convert Corel Presentation Exchange file into plain text' -o cmx2text.1 ./src/conv/text/.libs/cmx2text
|
|
|
|
|
for tool in raw/cdr2raw raw/cmx2raw svg/cdr2xhtml svg/cmx2xhtml text/cdr2text text/cmx2text; do
|
|
|
|
|
help2man -N -o `basename $tool`.1 ./src/conv/$tool
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
@ -108,6 +102,9 @@ install -m 0644 cdr2*.1 cmx2*.1 %{buildroot}/%{_mandir}/man1
|
|
|
|
|
%{_mandir}/man1/cmx2xhtml.1*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Dec 27 2015 David Tardon <dtardon@redhat.com> - 0.1.2-1
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 0.1.1-9
|
|
|
|
|
- rebuild for ICU 56.1
|
|
|
|
|
|
|
|
|
|