File libxsio.spec of Package libxsio
#
# spec file for package libxsio (Version 0.1.2)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: libxsio
BuildRequires: pkg-config xorg-x11-devel xorg-x11-libxcb-devel
Summary: X Selection IO Library
Version: 0.1.2
Release: 1
License: X11/MIT
Group: System/Libraries
Source: libxsio-%{version}.tar.bz2
%define debug_package_requires libdmxview0 = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Library for bidirectional IO using X selections.
%package -n libxsio0
License: X11/MIT
Group: System/Libraries
Summary: X Selection IO Library
%description -n libxsio0
Library for bidirectional IO using X selections.
%package devel
Requires: xorg-x11-libxcb-devel libxsio0 = %{version}
Summary: X Selection IO Library
License: X11/MIT
Group: Development/Libraries/X11
%description devel
Library for bidirectional IO using X selections.
%package -n xcat
License: X11/MIT
Group: System/Utilities
Summary: A Simple But Powerful X11 Tool
%description -n xcat
Xcat is a simple Unix utility that reads and writes data across
X selection channels. It is designed to be a reliable back-end tool
that can be used directly or easily driven by other programs and
scripts.
%prep
%setup -q -n libxsio-%{version}
%build
autoreconf -f -i
%configure --disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall
find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
%post -n libxsio0 -p /sbin/ldconfig
%postun -n libxsio0 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -n libxsio0
%defattr(-,root,root)
%{_libdir}/libxsio.so.*
%files devel
%defattr(-, root, root)
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libxsio.so
%dir %{_includedir}/libxsio-0
%{_includedir}/libxsio-0/*.h
%files -n xcat
%defattr(-, root, root)
%{_bindir}/xcat
%changelog
* Thu Oct 23 2008 davidr@novell.com
- Initial release.