2012-11-06 13:47:06 +00:00
|
|
|
#
|
2014-07-25 07:35:58 +00:00
|
|
|
# spec file for package libcdr
|
2012-11-06 13:47:06 +00:00
|
|
|
#
|
2015-11-11 11:35:38 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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-07-25 07:37:08 +00:00
|
|
|
%define libname libcdr-0_1-1
|
2014-07-25 07:35:58 +00:00
|
|
|
Name: libcdr
|
2015-12-26 13:09:34 +00:00
|
|
|
Version: 0.1.2
|
2014-01-25 21:27:56 +00:00
|
|
|
Release: 0
|
2014-07-25 07:35:58 +00:00
|
|
|
Summary: Library for parsing the Corel Draw file format structure
|
|
|
|
License: MPL-2.0
|
2014-01-25 21:27:56 +00:00
|
|
|
Group: Productivity/Publishing/Word
|
2014-07-25 07:35:58 +00:00
|
|
|
Url: http://www.freedesktop.org/wiki/Software/libcdr
|
2014-07-25 09:18:45 +00:00
|
|
|
Source0: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
|
2014-07-25 07:35:58 +00:00
|
|
|
# note: the main package is empty, it only sets a sane name for the source rpm
|
2014-11-28 08:49:05 +00:00
|
|
|
Patch0: libcdr-0.1.1-pkgconfig.patch
|
2013-04-22 13:52:32 +00:00
|
|
|
BuildRequires: boost-devel
|
2015-12-26 13:09:34 +00:00
|
|
|
BuildRequires: cppunit-devel
|
2012-11-06 13:47:06 +00:00
|
|
|
BuildRequires: doxygen
|
2014-07-25 07:37:08 +00:00
|
|
|
BuildRequires: fdupes
|
2013-03-01 13:42:53 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libicu-devel
|
2014-07-25 07:37:08 +00:00
|
|
|
BuildRequires: pkg-config
|
2013-03-01 13:42:53 +00:00
|
|
|
BuildRequires: xz
|
2014-07-25 07:37:08 +00:00
|
|
|
BuildRequires: pkgconfig(lcms2)
|
|
|
|
BuildRequires: pkgconfig(librevenge-0.0)
|
|
|
|
BuildRequires: pkgconfig(librevenge-generators-0.0)
|
|
|
|
BuildRequires: pkgconfig(librevenge-stream-0.0)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2012-11-06 13:47:06 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2014-07-25 07:35:58 +00:00
|
|
|
libcdr is a library for parsing the Corel Draw file format structure. It is
|
2012-11-06 13:47:06 +00:00
|
|
|
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}
|
2014-07-25 07:35:58 +00:00
|
|
|
Summary: Library for parsing the Corel Draw file format structure
|
2012-11-06 13:47:06 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2014-01-25 21:27:56 +00:00
|
|
|
%description -n %{libname}
|
2014-07-25 07:35:58 +00:00
|
|
|
libcdr is a library for parsing the Corel Draw file format structure. It is
|
2012-11-06 13:47:06 +00:00
|
|
|
cross-platform, at the moment it can be build on Microsoft Windows and Linux.
|
|
|
|
|
|
|
|
%package devel
|
2014-07-25 07:35:58 +00:00
|
|
|
Summary: Files for Developing with libcdr
|
2012-11-06 13:47:06 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-01-25 21:27:56 +00:00
|
|
|
Requires: %{libname} = %{version}
|
2012-11-06 13:47:06 +00:00
|
|
|
|
|
|
|
%description devel
|
2014-07-25 07:35:58 +00:00
|
|
|
libcdr is a library for parsing the Corel Draw file format structure. It is
|
2012-11-06 13:47:06 +00:00
|
|
|
cross-platform, at the moment it can be build on Microsoft Windows and Linux.
|
|
|
|
|
2014-07-25 07:35:58 +00:00
|
|
|
This package contains the libcdr development files.
|
2012-11-06 13:47:06 +00:00
|
|
|
|
|
|
|
%package devel-doc
|
2014-07-25 07:35:58 +00:00
|
|
|
Summary: Documentation for the libcdr API
|
2012-11-06 13:47:06 +00:00
|
|
|
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
|
2014-07-25 07:35:58 +00:00
|
|
|
This package contains documentation for the libcdr API.
|
2012-11-06 13:47:06 +00:00
|
|
|
|
|
|
|
%package tools
|
2014-07-25 07:35:58 +00:00
|
|
|
Summary: Tools to work with documents in Corel Draw file-format
|
2012-11-06 13:47:06 +00:00
|
|
|
Group: Productivity/Publishing/Word
|
|
|
|
|
|
|
|
%description tools
|
2014-07-25 07:35:58 +00:00
|
|
|
Tools to work with documents in Corel Draw file-format.
|
2012-11-06 13:47:06 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2014-07-25 07:37:08 +00:00
|
|
|
%patch0 -p1
|
2012-11-06 13:47:06 +00:00
|
|
|
|
|
|
|
%build
|
2014-01-25 21:27:56 +00:00
|
|
|
export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden"
|
2014-07-25 07:35:58 +00:00
|
|
|
%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
|
2014-07-25 07:35:58 +00:00
|
|
|
# documentation
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
cp -p AUTHORS COPYING.* ChangeLog %{buildroot}%{_docdir}/%{name}
|
2014-06-10 12:49:15 +00:00
|
|
|
|
2014-07-25 07:37:08 +00:00
|
|
|
%fdupes -s %{buildroot}
|
|
|
|
|
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)
|
2014-07-25 07:35:58 +00:00
|
|
|
%{_libdir}/*.so.*
|
2012-11-06 13:47:06 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so
|
2014-07-25 07:35:58 +00:00
|
|
|
%{_libdir}/pkgconfig/libcdr*.pc
|
|
|
|
%{_includedir}/libcdr-*
|
2012-11-06 13:47:06 +00:00
|
|
|
|
|
|
|
%files devel-doc
|
|
|
|
%defattr(-,root,root,-)
|
2014-07-25 07:35:58 +00:00
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/html
|
2012-11-06 13:47:06 +00:00
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*
|
2014-07-25 07:35:58 +00:00
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/[A-Z]*
|
2012-11-06 13:47:06 +00:00
|
|
|
|
|
|
|
%changelog
|