File libOIS1_2_0.spec of Package ois

# norootforbuild

BuildRequires: gcc-c++ xorg-x11-devel

Name:         libOIS1_2_0
License:      zlib/libpng
Group:        System/Library
Summary:      Object Oriented Input System
Requires:     xorg-x11
Version:      1.2.0
Release:      0
URL:          http://sourceforge.net/projects/wgois
Packager:     Matt Williams <matt@milliams.com>
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Source0:      ois_%{version}.tar.bz2

%description
Object Oriented Input System (OIS) is meant to be a cross platform, simple solution for using all kinds of Input Devices (KeyBoards, Mice, Joysticks, etc) and feedback devices (e.g. forcefeedback).

%package -n libOIS-devel
Group:        Development/Languages/C and C++
Summary:      Object Oriented Input System development package
Requires:     %{name} = %{version}
%description -n libOIS-devel
Object Oriented Input System (OIS) is meant to be a cross platform, simple solution for using all kinds of Input Devices (KeyBoards, Mice, Joysticks, etc) and feedback devices (e.g. forcefeedback).

%prep
%setup -q -n ois
chmod -x ReadMe.txt

%build
./bootstrap
%if 0%{?suse_version} <= 1010
export LDFLAGS="$LDFLAGS -L/usr/X11R6/%{_lib}"
%endif
%configure --disable-static
make %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/lib*.la

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(0644,root,root)
%{_libdir}/libOIS-%{version}.so

%files -n libOIS-devel
%defattr(-,root,root)
%doc ReadMe.txt
%{_includedir}/OIS
%{_libdir}/libOIS.so
%{_libdir}/pkgconfig/OIS.pc

%changelog
openSUSE Build Service is sponsored by