Version: 3.7.0
Release: 1
Group: X11/Applications/Networking
-Copyright: Distributable provided copyright and permission notices are included
-URL: http://ccwf.cc.utexas.edu/~zvonler/dxpc/
-Source: http://ccwf.cc.utexas.edu/~zvonler/dxpc/%{name}-%{version}.tar.gz
+Group(pl): X11/Aplikacje/Sieciowe
+License: Distributable provided copyright and permission notices are included
+Source0: http://ccwf.cc.utexas.edu/~zvonler/dxpc/%{name}-%{version}.tar.gz
Patch0: dxpc-DESTDIR.patch
Patch1: dxpc-socklen_t.patch
+URL: http://ccwf.cc.utexas.edu/~zvonler/dxpc/
Icon: dxpc.logo-smaller-t.gif
+BuildRequires: libstdc++-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _prefix /usr/X11R6
%define _mandir %{_prefix}/man
%description
-dxpc is an X protocol compressor designed to improve the
-speed of X11 applications run over low-bandwidth links.
+dxpc is an X protocol compressor designed to improve the speed of X11
+applications run over low-bandwidth links.
%prep
%setup -q
%patch1 -p1
%build
+LDFLAGS="-s"
+CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions"
+export LDFLAGS CXXFLAGS
%configure
make
%install
-make install DESTDIR=$RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
-strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/*
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
gzip -9nf CHANGES README TODO dxpc-3.7.0.lsm \
$RPM_BUILD_ROOT%{_mandir}/man1/*
+%clean
+rm -rf $RPM_BUILD_ROOT
+
%files
%defattr(644,root,root,755)
-%doc CHANGES.gz README.gz TODO.gz dxpc-3.7.0.lsm.gz
+%doc *.gz
%doc dxpc.logo.jpg dxpc.logo-small.jpg
%attr(755,root,root) %{_bindir}/dxpc
-%{_mandir}/man1/dxpc.1*
+%{_mandir}/man1/*