libcdr/libcdr.spec

116 lines
3.1 KiB
RPMSpec
Raw Normal View History

2014-05-26 15:50:27 +00:00
%global apiversion 0.1
2013-04-21 07:51:02 +00:00
2012-03-20 13:02:16 +00:00
Name: libcdr
2021-03-26 17:22:35 +00:00
Version: 0.1.7
2022-11-21 19:21:26 +00:00
Release: %autorelease
2014-07-01 16:56:34 +00:00
Summary: A library for import of CorelDRAW drawings
2012-03-20 13:02:16 +00:00
2013-05-21 11:56:21 +00:00
# the only Public Domain source is src/lib/CDRColorProfiles.h
2022-11-21 19:21:24 +00:00
License: MPL-2.0 AND LicenseRef-Fedora-Public-Domain
2014-07-01 16:31:27 +00:00
URL: http://wiki.documentfoundation.org/DLP/Libraries/libcdr
Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
2012-03-20 13:02:16 +00:00
2013-04-23 03:56:17 +00:00
BuildRequires: boost-devel
2012-03-20 13:02:16 +00:00
BuildRequires: doxygen
2018-02-19 11:58:16 +00:00
BuildRequires: gcc-c++
2014-04-09 12:06:43 +00:00
BuildRequires: help2man
2021-03-29 19:20:30 +00:00
BuildRequires: make
2015-12-27 15:39:49 +00:00
BuildRequires: pkgconfig(cppunit)
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(lcms2)
2014-05-26 15:50:27 +00:00
BuildRequires: pkgconfig(librevenge-0.0)
BuildRequires: pkgconfig(librevenge-generators-0.0)
BuildRequires: pkgconfig(librevenge-stream-0.0)
BuildRequires: pkgconfig(zlib)
2012-03-20 13:02:16 +00:00
%description
2014-04-10 10:48:51 +00:00
Libcdr is library providing ability to interpret and import CorelDRAW
2012-03-20 13:02:16 +00:00
drawings into various applications. You can find it being used in
libreoffice.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package doc
Summary: Documentation of %{name} API
BuildArch: noarch
%description doc
The %{name}-doc package contains documentation files for %{name}.
%package tools
2014-04-10 10:48:51 +00:00
Summary: Tools to transform CorelDRAW drawings into other formats
2012-03-20 13:02:16 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tools
2014-04-10 10:48:51 +00:00
Tools to transform CorelDRAW drawings into other formats.
2013-04-08 04:19:00 +00:00
Currently supported: XHTML, text, raw.
2012-03-20 13:02:16 +00:00
%prep
%setup -q
%build
2016-07-21 13:44:52 +00:00
%configure --disable-silent-rules --disable-static --disable-werror
2012-03-20 13:02:16 +00:00
sed -i \
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
libtool
%make_build
2012-03-20 13:02:16 +00:00
%install
%make_install
2012-03-20 13:02:16 +00:00
rm -f %{buildroot}/%{_libdir}/*.la
# rhbz#1001251 we install API docs directly from build
rm -rf %{buildroot}/%{_docdir}/%{name}
2012-03-20 13:02:16 +00:00
2016-01-13 14:16:35 +00:00
# generate and install man pages
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
for tool in cdr2raw cmx2raw cdr2xhtml cmx2xhtml cdr2text cmx2text; do
help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
2016-01-13 14:16:35 +00:00
done
2014-04-09 12:06:43 +00:00
mkdir -p %{buildroot}/%{_mandir}/man1
install -m 0644 cdr2*.1 cmx2*.1 %{buildroot}/%{_mandir}/man1
2012-03-20 13:02:16 +00:00
%ldconfig_scriptlets
2012-03-20 13:02:16 +00:00
2015-12-27 15:39:49 +00:00
%check
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
%make_build check
2015-12-27 15:39:49 +00:00
2012-03-20 13:02:16 +00:00
%files
2015-12-27 15:28:49 +00:00
%doc AUTHORS ChangeLog README
%license COPYING.MPL
2013-04-21 07:51:02 +00:00
%{_libdir}/%{name}-%{apiversion}.so.*
2012-03-20 13:02:16 +00:00
%files devel
2013-04-21 07:52:13 +00:00
%doc ChangeLog
2013-04-21 07:51:02 +00:00
%{_includedir}/%{name}-%{apiversion}
%{_libdir}/%{name}-%{apiversion}.so
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
2012-03-20 13:02:16 +00:00
%files doc
2015-12-27 15:28:49 +00:00
%license COPYING.MPL
%doc docs/doxygen/html
2012-03-20 13:02:16 +00:00
%files tools
%{_bindir}/cdr2raw
2013-04-08 04:19:00 +00:00
%{_bindir}/cdr2text
2012-03-20 13:02:16 +00:00
%{_bindir}/cdr2xhtml
2013-04-08 04:19:00 +00:00
%{_bindir}/cmx2raw
%{_bindir}/cmx2text
%{_bindir}/cmx2xhtml
2014-04-09 12:06:43 +00:00
%{_mandir}/man1/cdr2raw.1*
%{_mandir}/man1/cdr2text.1*
%{_mandir}/man1/cdr2xhtml.1*
%{_mandir}/man1/cmx2raw.1*
%{_mandir}/man1/cmx2text.1*
%{_mandir}/man1/cmx2xhtml.1*
2012-03-20 13:02:16 +00:00
%changelog
2022-11-21 19:21:26 +00:00
%autochangelog