File dxflib.spec of Package dxflib
#
# spec file for package dxflib
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: dxflib
%define lname libdxflib-2_5_0_0_1
Summary: Parser library for the Drawing Exchange Format (DXF)
Version: 2.5.0.0.1
%define unver 2.5.0.0-1
Release: 0
URL: http://www.qcad.org/dxflib_downloads.html
License: GPL-2.0
Group: Development/Libraries/C and C++
Source: %name-%unver.src.tar.xz
Patch1: dxflib-automake.diff
Patch2: dxflib-type92.diff
BuildRoot: %_tmppath/%name-%version-build
BuildRequires: gcc-c++, libtool, xz
%description
dxflib is a C++ library mainly for parsing and writing DXF files.
%package -n %lname
Summary: Parser library for the Drawing Exchange Format (DXF)
Group: System/Libraries
%description -n %lname
dxflib is a C++ library mainly for parsing and writing DXF files.
QCAD/LibreCAD uses dxflib to import DXF files.
%package devel
Summary: Development files for dxflib, a DXF parsing library
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
dxflib is a C++ library mainly for parsing and writing DXF files.
This package contains the development library symlink and header
files.
%prep
%setup -qn %name-%unver.src
%patch -P 1 -p1
%patch -P 2 -p2
%build
autoreconf -fi;
%configure --disable-static
make %{?_smp_mflags};
%install
%make_install
rm -f "%buildroot/%_libdir"/*.la;
%check
make check %{?_smp_mflags};
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%_libdir/libdxflib-%version.so
%files devel
%defattr(-,root,root)
%_includedir/%name
%_libdir/libdxflib.so
%changelog