File libevdev.spec of Package libevdev

#
# spec file for package 
#
# Copyright (c) specCURRENT_YEAR 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:           libevdev
Version:	20121031
Release:	0
License:	BSD-3-Clause
Summary:	Needed for Chromebook touchpad
Url:		http://git.chromium.org/gitweb/?p=chromiumos/platform/libevdev.git;a=summary
Group:		System/Libraries
Source0:	%{name}-%{version}.tar.bz2
Source1:	50-touchpad.conf
Patch0:		common.mk.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Package needed for Chromebook touchpad

%package devel
Summary:        Dev library for libevdev
Group:          Development/Libraries/Other
Requires:       libevdev1 = %version

%description devel
Development files for libevdev needed for Chromebook touchpad

%package -n libevdev0
Summary:        Library for Chromebook touchpad
Group:          System/Libraries

%description -n libevdev0
Library needed for Chromebook touchpad

%prep
%setup -q
%patch0 -p1

%build
export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror -fno-strict-aliasing"
make %{?_smp_mflags}

%install
%make_install
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/

install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/

%post -n libevdev0 -p /sbin/ldconfig

%postun -n libevdev0 -p /sbin/ldconfig

%files -n libevdev0
%defattr(-,root,root)
%_libdir/libevdev.so.0
%_libdir/libevdev_hollow.so.0
%dir %_sysconfdir/X11/xorg.conf.d
%_sysconfdir/X11/xorg.conf.d/50-touchpad.conf
%config %_sysconfdir/X11/xorg.conf.d/50-touchpad.conf

%files devel
%defattr(-,root,root)
%_includedir/libevdev
%_libdir/libevdev.so
%_libdir/libevdev_hollow.so

%changelog

openSUSE Build Service is sponsored by