File libgaminggear.spec of Package libgaminggear
#
# spec file for package libgaminggear
#
# Copyright (c) 2014 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/
#
%define majorversion 0
Name: libgaminggear
Version: 0.5.0
Release: 0
Summary: Library for gaming input devices
License: GPL-2.0 and CC-BY-3.0
Group: Development/Libraries/C and C++
Url: https://sourceforge.net/projects/libgaminggear/
Source: http://downloads.sourceforge.net/project/%{name}/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM 0001-fix_libgaminggearwidget_libs.patch sfalken@opensuse.org -- Adds library dependencies to libgaminggearwidget, so it will build properly (sf#/p/libgaminggear/patches/1/)
Patch0: 0001-fix_libgaminggearwidget_libs.patch
BuildRequires: cmake >= 2.6.4
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: pkg-config
BuildRequires: xz
BuildRequires: pkgconfig(gtk+-2.0) >= 2.20
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(libcanberra)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(sqlite3) >= 3.7
Requires(pre): %fillup_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A shared library initiated by the Roccat Linux driver project.
%package devel
Summary: Development files for gaming input devices
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
This package contains the header files, static libraries and
development documentation for libgaminggear. If you like to develop
programs using libgaminggear, you will need to install this package.
%prep
%setup -q
%patch0 -p1
%build
%cmake
make %{?_smp_mflags}
%install
cd build
make DESTDIR=%{buildroot} install
%fdupes %{buildroot}%{_datadir}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc README COPYING Changelog
%dir %{_libdir}/gaminggear-%{majorversion}
%{_libdir}/gaminggear-%{majorversion}/*.so.*
%dir %{_datadir}/gaminggear
%{_datadir}/gaminggear/icons
%config %{_sysconfdir}/ld.so.conf.d/gaminggear-%{majorversion}.conf
%files devel
%defattr(-, root, root)
%dir %{_includedir}/gaminggear-%{majorversion}
%{_includedir}/gaminggear-%{majorversion}/gaminggear
%dir %{_libdir}/gaminggear-%{majorversion}
%{_libdir}/gaminggear-%{majorversion}/*.so
%dir %{_datadir}/gaminggear
%{_datadir}/gaminggear/html
%{_datadir}/pkgconfig/gaminggear-%{majorversion}.pc
%{_datadir}/cmake/Modules/FindGAMINGGEAR%{majorversion}.cmake
%changelog