|
|
f7af6c |
%global apiversion 0.1
|
|
|
928f51 |
|
|
|
928f51 |
Name: libcdr
|
|
|
616645 |
Version: 0.1.4
|
|
|
f7af6c |
Release: 1%{?dist}
|
|
|
f7af6c |
Summary: A library for import of CorelDRAW drawings
|
|
|
928f51 |
|
|
|
f7af6c |
# the only Public Domain source is src/lib/CDRColorProfiles.h
|
|
|
f7af6c |
License: MPLv2.0 and Public Domain
|
|
|
f7af6c |
URL: http://wiki.documentfoundation.org/DLP/Libraries/libcdr
|
|
|
f7af6c |
Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
|
|
|
928f51 |
|
|
|
928f51 |
BuildRequires: boost-devel
|
|
|
928f51 |
BuildRequires: doxygen
|
|
|
f7af6c |
BuildRequires: help2man
|
|
|
616645 |
BuildRequires: pkgconfig(cppunit)
|
|
|
f7af6c |
BuildRequires: pkgconfig(icu-i18n)
|
|
|
f7af6c |
BuildRequires: pkgconfig(lcms2)
|
|
|
f7af6c |
BuildRequires: pkgconfig(librevenge-0.0)
|
|
|
f7af6c |
BuildRequires: pkgconfig(zlib)
|
|
|
928f51 |
|
|
|
928f51 |
%description
|
|
|
f7af6c |
Libcdr is library providing ability to interpret and import CorelDRAW
|
|
|
928f51 |
drawings into various applications. You can find it being used in
|
|
|
928f51 |
libreoffice.
|
|
|
928f51 |
|
|
|
928f51 |
%package devel
|
|
|
928f51 |
Summary: Development files for %{name}
|
|
|
928f51 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
928f51 |
|
|
|
928f51 |
%description devel
|
|
|
928f51 |
The %{name}-devel package contains libraries and header files for
|
|
|
928f51 |
developing applications that use %{name}.
|
|
|
928f51 |
|
|
|
928f51 |
%package doc
|
|
|
928f51 |
Summary: Documentation of %{name} API
|
|
|
928f51 |
BuildArch: noarch
|
|
|
928f51 |
|
|
|
928f51 |
%description doc
|
|
|
928f51 |
The %{name}-doc package contains documentation files for %{name}.
|
|
|
928f51 |
|
|
|
928f51 |
%package tools
|
|
|
f7af6c |
Summary: Tools to transform CorelDRAW drawings into other formats
|
|
|
928f51 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
928f51 |
|
|
|
928f51 |
%description tools
|
|
|
f7af6c |
Tools to transform CorelDRAW drawings into other formats.
|
|
|
928f51 |
Currently supported: XHTML, text, raw.
|
|
|
928f51 |
|
|
|
928f51 |
%prep
|
|
|
928f51 |
%setup -q
|
|
|
928f51 |
|
|
|
928f51 |
%build
|
|
|
616645 |
%configure --disable-silent-rules --disable-static --disable-werror
|
|
|
928f51 |
sed -i \
|
|
|
928f51 |
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
928f51 |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
928f51 |
libtool
|
|
|
616645 |
make %{?_smp_mflags}
|
|
|
928f51 |
|
|
|
928f51 |
%install
|
|
|
928f51 |
make install DESTDIR=%{buildroot}
|
|
|
928f51 |
rm -f %{buildroot}/%{_libdir}/*.la
|
|
|
f7af6c |
# rhbz#1001251 we install API docs directly from build
|
|
|
f7af6c |
rm -rf %{buildroot}/%{_docdir}/%{name}
|
|
|
928f51 |
|
|
|
616645 |
# generate and install man pages
|
|
|
616645 |
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
616645 |
for tool in cdr2raw cmx2raw cdr2xhtml cmx2xhtml cdr2text cmx2text; do
|
|
|
616645 |
help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
|
|
|
616645 |
done
|
|
|
f7af6c |
mkdir -p %{buildroot}/%{_mandir}/man1
|
|
|
f7af6c |
install -m 0644 cdr2*.1 cmx2*.1 %{buildroot}/%{_mandir}/man1
|
|
|
928f51 |
|
|
|
928f51 |
%post -p /sbin/ldconfig
|
|
|
928f51 |
%postun -p /sbin/ldconfig
|
|
|
928f51 |
|
|
|
616645 |
%check
|
|
|
616645 |
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
616645 |
make %{?_smp_mflags} check
|
|
|
616645 |
|
|
|
928f51 |
%files
|
|
|
616645 |
%doc AUTHORS ChangeLog README
|
|
|
616645 |
%license COPYING.MPL
|
|
|
928f51 |
%{_libdir}/%{name}-%{apiversion}.so.*
|
|
|
928f51 |
|
|
|
928f51 |
%files devel
|
|
|
928f51 |
%doc ChangeLog
|
|
|
928f51 |
%{_includedir}/%{name}-%{apiversion}
|
|
|
928f51 |
%{_libdir}/%{name}-%{apiversion}.so
|
|
|
928f51 |
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
|
|
|
928f51 |
|
|
|
928f51 |
%files doc
|
|
|
616645 |
%license COPYING.MPL
|
|
|
f7af6c |
%doc docs/doxygen/html
|
|
|
928f51 |
|
|
|
928f51 |
%files tools
|
|
|
928f51 |
%{_bindir}/cdr2raw
|
|
|
928f51 |
%{_bindir}/cdr2text
|
|
|
928f51 |
%{_bindir}/cdr2xhtml
|
|
|
928f51 |
%{_bindir}/cmx2raw
|
|
|
928f51 |
%{_bindir}/cmx2text
|
|
|
928f51 |
%{_bindir}/cmx2xhtml
|
|
|
f7af6c |
%{_mandir}/man1/cdr2raw.1*
|
|
|
f7af6c |
%{_mandir}/man1/cdr2text.1*
|
|
|
f7af6c |
%{_mandir}/man1/cdr2xhtml.1*
|
|
|
f7af6c |
%{_mandir}/man1/cmx2raw.1*
|
|
|
f7af6c |
%{_mandir}/man1/cmx2text.1*
|
|
|
f7af6c |
%{_mandir}/man1/cmx2xhtml.1*
|
|
|
928f51 |
|
|
|
928f51 |
%changelog
|
|
|
616645 |
* Sun Sep 17 2017 David Tardon <dtardon@redhat.com> - 0.1.4-1
|
|
|
616645 |
- Resolves: rhbz#1477221 rebase to 0.1.4
|
|
|
616645 |
|
|
|
f7af6c |
* Fri Apr 17 2015 David Tardon <dtardon@redhat.com> - 0.1.1-1
|
|
|
f7af6c |
- Resolves: rhbz#1207750 rebase to 0.1.1
|
|
|
f7af6c |
|
|
|
0cd22f |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.0.14-3
|
|
|
0cd22f |
- Mass rebuild 2014-01-24
|
|
|
0cd22f |
|
|
|
0cd22f |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.0.14-2
|
|
|
0cd22f |
- Mass rebuild 2013-12-27
|
|
|
0cd22f |
|
|
|
928f51 |
* Fri May 17 2013 David Tardon <dtardon@redhat.com> - 0.0.14-1
|
|
|
928f51 |
- new release
|
|
|
928f51 |
|
|
|
928f51 |
* Tue Apr 23 2013 David Tardon <dtardon@redhat.com> - 0.0.13-1
|
|
|
928f51 |
- new relese
|
|
|
928f51 |
|
|
|
928f51 |
* Mon Apr 08 2013 David Tardon <dtardon@redhat.com> - 0.0.12-1
|
|
|
928f51 |
- new release
|
|
|
928f51 |
|
|
|
928f51 |
* Sat Mar 02 2013 David Tardon <dtardon@redhat.com> - 0.0.11-1
|
|
|
928f51 |
- new release
|
|
|
928f51 |
|
|
|
928f51 |
* Thu Jan 31 2013 David Tardon <dtardon@redhat.com> - 0.0.10-2
|
|
|
928f51 |
- rebuild for ICU change
|
|
|
928f51 |
|
|
|
928f51 |
* Mon Jan 28 2013 David Tardon <dtardon@redhat.com> - 0.0.10-1
|
|
|
928f51 |
- new release
|
|
|
928f51 |
|
|
|
928f51 |
* Tue Jan 08 2013 David Tardon <dtardon@redhat.com> - 0.0.9-2
|
|
|
928f51 |
- Resolves: rhbz#891082 libreoffice Impress constantly crashes
|
|
|
928f51 |
|
|
|
928f51 |
* Mon Oct 08 2012 David Tardon <dtardon@redhat.com> - 0.0.9-1
|
|
|
928f51 |
- new upstream release
|
|
|
928f51 |
|
|
|
928f51 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-2
|
|
|
928f51 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
928f51 |
|
|
|
928f51 |
* Mon Jun 11 2012 David Tardon <dtardon@redhat.com> 0.0.8-1
|
|
|
928f51 |
- new upstream release
|
|
|
928f51 |
- adds basic initial primitive uncomplete text support
|
|
|
928f51 |
|
|
|
928f51 |
* Thu Apr 26 2012 David Tardon <dtardon@redhat.com> 0.0.7-1
|
|
|
928f51 |
- new upstream release
|
|
|
928f51 |
|
|
|
928f51 |
* Tue Apr 03 2012 David Tardon <dtardon@redhat.com> 0.0.6-1
|
|
|
928f51 |
- new upstream release
|
|
|
928f51 |
|
|
|
928f51 |
* Mon Mar 19 2012 David Tardon <dtardon@redhat.com> 0.0.5-1
|
|
|
928f51 |
- new upstream release
|
|
|
928f51 |
- fix license
|
|
|
928f51 |
|
|
|
928f51 |
* Sat Mar 10 2012 David Tardon <dtardon@redhat.com> 0.0.3-2
|
|
|
928f51 |
- remove Requires: of main package from -doc subpackage
|
|
|
928f51 |
|
|
|
928f51 |
* Thu Mar 01 2012 David Tardon <dtardon@redhat.com> 0.0.3-1
|
|
|
928f51 |
- initial import
|