%{!?tcl_version: %global tcl_version %((echo '8.5'; echo 'puts $tcl_version' | tclsh 2>/dev/null) | tail -1)} %global _tcldir /usr/lib64/tcl%{tcl_version} %global name tcl-unixsockets %global version 0.2 %global release 1h Summary: unix_sockets for Tcl Name: %{name} Version: %{version} Release: %{release} URL: https://sourceforge.net/projects/tcl-unixsockets/ Source0: ftp://tcl-unixsockets.sourceforge.net/pub/tcl-unixsockets/%{name}_%{version}.tar.gz Patch0: tcl-unixsockets-tcl9.patch License: BSD Group: System/Libraries # Automatically added by buildreq on Thu Apr 26 2001 # BuildRequires: libreadline-devel ncurses-devel tcl-devel tk XFree86-devel XFree86-libs BuildRequires: autoconf automake libtool BuildRequires: tcl, tcl-devel >= %{tcl_version} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} %description This package contains unix_sockets for tcl. %prep %setup -q -n %{name}_%{version} %patch 0 -p1 %build autoreconf -fvi %configure --with-tcl=%{_tcldir} make %install rm -rf $RPM_BUILD_ROOT make DESTDIR="$RPM_BUILD_ROOT" install \ pkglibdir=%{_tcldir}/%{name}%{version} %clean %files %{_tcldir}/%{name}%{version}/* %{_mandir}/mann/unix_sockets.n* %changelog * Tue Aug 2 2011 KOBAYASHI Hiroaki - 2.1.0-2h - Init