2012-11-06 13:47:06 +00:00
|
|
|
#
|
|
|
|
# spec file for package libcdr
|
|
|
|
#
|
2014-01-18 18:13:11 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-11-06 13:47:06 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2013-03-01 13:42:53 +00:00
|
|
|
|
|
|
|
|
2014-01-25 21:27:56 +00:00
|
|
|
%define libname libcdr-0_0-0
|
2012-11-06 13:47:06 +00:00
|
|
|
Name: libcdr
|
2014-04-14 09:49:36 +00:00
|
|
|
Version: 0.0.16
|
2014-01-25 21:27:56 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for parsing the Corel Draw file format structure
|
2014-04-14 09:49:36 +00:00
|
|
|
License: MPL-2.0
|
2014-01-25 21:27:56 +00:00
|
|
|
Group: Productivity/Publishing/Word
|
|
|
|
Url: http://www.freedesktop.org/wiki/Software/libcdr
|
|
|
|
Source0: http://dev-www.libreoffice.org/src/libcdr-%{version}.tar.xz
|
2012-11-06 13:47:06 +00:00
|
|
|
# note: the main package is empty, it only sets a sane name for the source rpm
|
2013-04-22 13:52:32 +00:00
|
|
|
BuildRequires: boost-devel
|
2012-11-06 13:47:06 +00:00
|
|
|
BuildRequires: doxygen
|
2013-03-01 13:42:53 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
BuildRequires: liblcms2-devel
|
2013-07-26 07:23:22 +00:00
|
|
|
BuildRequires: libwpd-devel >= 0.9.5
|
2013-03-01 13:42:53 +00:00
|
|
|
BuildRequires: libwpg-devel >= 0.2.0
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xz
|
|
|
|
BuildRequires: zlib-devel
|
2012-11-06 13:47:06 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
libcdr is a library for parsing the Corel Draw file format structure. It is
|
|
|
|
cross-platform, at the moment it can be build on Microsoft Windows and Linux.
|
|
|
|
|
2014-01-25 21:27:56 +00:00
|
|
|
%package -n %{libname}
|
2012-11-06 13:47:06 +00:00
|
|
|
Summary: Library for parsing the Corel Draw file format structure
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2014-01-25 21:27:56 +00:00
|
|
|
%description -n %{libname}
|
2012-11-06 13:47:06 +00:00
|
|
|
libcdr is a library for parsing the Corel Draw file format structure. It is
|
|
|
|
cross-platform, at the moment it can be build on Microsoft Windows and Linux.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Files for Developing with libcdr
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-01-25 21:27:56 +00:00
|
|
|
Requires: %{libname} = %{version}
|
2013-03-01 13:42:53 +00:00
|
|
|
Requires: libwpd-devel
|
|
|
|
Requires: libwpg-devel
|
2012-11-06 13:47:06 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libcdr is a library for parsing the Corel Draw file format structure. It is
|
|
|
|
cross-platform, at the moment it can be build on Microsoft Windows and Linux.
|
|
|
|
|
|
|
|
This package contains the libcdr development files.
|
|
|
|
|
|
|
|
%package devel-doc
|
|
|
|
Summary: Documentation for the libcdr API
|
|
|
|
Group: Documentation/HTML
|
2014-01-25 21:27:56 +00:00
|
|
|
%if 0%{?suse_version} > 1200
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2012-11-06 13:47:06 +00:00
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
This package contains documentation for the libcdr API.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Tools to work with documents in Corel Draw file-format
|
|
|
|
Group: Productivity/Publishing/Word
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Tools to work with documents in Corel Draw file-format.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2014-01-25 21:27:56 +00:00
|
|
|
export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden"
|
|
|
|
%configure --disable-werror --disable-static --docdir=%{_docdir}/%{name}
|
2013-11-01 09:09:24 +00:00
|
|
|
make %{?_smp_mflags} V=1
|
2012-11-06 13:47:06 +00:00
|
|
|
|
|
|
|
%install
|
2014-01-25 21:27:56 +00:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-11-06 13:47:06 +00:00
|
|
|
# documentation
|
2013-11-01 09:09:24 +00:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
cp -p AUTHORS COPYING.* ChangeLog %{buildroot}%{_docdir}/%{name}
|
2012-11-06 13:47:06 +00:00
|
|
|
|
2014-01-25 21:27:56 +00:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
2012-11-06 13:47:06 +00:00
|
|
|
|
2014-01-25 21:27:56 +00:00
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2012-11-06 13:47:06 +00:00
|
|
|
|
2014-01-25 21:27:56 +00:00
|
|
|
%files -n %{libname}
|
2012-11-06 13:47:06 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/libcdr*.pc
|
|
|
|
%{_includedir}/libcdr-*
|
|
|
|
|
|
|
|
%files devel-doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/html
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*
|
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/[A-Z]*
|
|
|
|
|
|
|
|
%changelog
|