File libstroke.spec of Package libstroke

# spec file for package libstroke
# Copyright (c) 2013 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

Name:           libstroke
BuildRequires:  libtool
BuildRequires:  xorg-x11
BuildRequires:  xorg-x11-devel
Version:        0.5.1
Release:        0
Patch:          libstroke-0.4.dif
Patch1:         no-gtk1.patch
Patch2:         fix-implicit-declarations.patch
# PATCH-FIX-UPSTREAM Fix quoting of AC_DEFUN args (bnc#794807) (2013-01-07)
Patch3:         libstroke-quote_m4_definitions.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        A Stroke Translation Library
License:        GPL-2.0+
Group:          System/Libraries

LibStroke is a stroke interface library.  Strokes are motions of the
mouse that can be interpreted by a program as a command.  Strokes are
used extensively in CAD programs.

%package     -n libstroke-devel
Summary:        Development package for libstroke
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       xorg-x11-libX11-devel

%description  -n libstroke-devel
This package is needed if you want to program or compile applications
that use libstroke.

%setup0 -q
%patch1 -p1
%patch2 -p1

rm -f config.cache
# update config.{guess,sub}
autoreconf --force --install
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

rm -f %{buildroot}%{_libdir}/*.la

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%defattr(-, root, root)

%files -n libstroke-devel
%defattr(-, root, root)

openSUSE Build Service is sponsored by