File dxpc.spec of Package dxpc

# vim: set ts=4 sw=4 et:

%if %suse_version < 1020
%define _prefix	/usr/X11R6
%define _mandir	%{_prefix}/man
%endif

Name:           dxpc
Version:        3.9.2
Release:        0
Summary:        X Protocol Compressor
Source:         http://www.vigor.nu/dxpc/%{version}/dxpc-%{version}.tgz
URL:            http://www.vigor.nu/dxpc/
Group:          System/X11/Utilities
License:        BSD-3-Clause
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
BuildRequires:  lzo-devel
%if %suse_version >= 920
BuildRequires:  xorg-x11-devel
%else
BuildRequires:  XFree86-devel
%endif
BuildRequires:  gcc-c++ libstdc++-devel make glibc-devel

%description
dxpc, the Differential X Protocol Compressor, improves X11 performance over
low-bandwidth network connections.

%prep
%setup -q

%build
%configure
%__make %{?_smp_flags}

%install
%makeinstall \
    bindir="%{buildroot}%{_bindir}" \
    man1dir="%{buildroot}%{_mandir}/man1"

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc CHANGES README TODO
%doc *.jpg
%{_bindir}/dxpc
%doc %{_mandir}/man1/dxpc.1*

%changelog
openSUSE Build Service is sponsored by