From ae11bd217825d0032563c8b45078c72fe8bea496 Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Wed, 9 Jan 2008 16:35:36 +0000 Subject: [PATCH] - specfile update to comply with tcl packaging guidelines --- brltty.spec | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/brltty.spec b/brltty.spec index ae4e475..cf5083b 100644 --- a/brltty.spec +++ b/brltty.spec @@ -1,12 +1,15 @@ %define pkg_version 3.9 %define api_version 0.5.1 -%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") -%define pyver %(%{__python} -c "import sys; v=sys.version_info[:2]; print '%d.%d'%v") +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%{!?pyver: %define pyver %(%{__python} -c "import sys; v=sys.version_info[:2]; print '%d.%d'%v")} + +%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)} +%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}} Name: brltty Version: %{pkg_version} -Release: 1%{?dist} +Release: 1.1%{?dist} License: GPLv2+ Group: System Environment/Daemons URL: http://mielke.cc/brltty/ @@ -81,7 +84,7 @@ Version: %{api_version} Group: Development/System License: LGPLv2+ Requires: brlapi = %{api_version} -BuildRequires: tcl-devel +BuildRequires: tcl-devel tcl Summary: Tcl binding for BrlAPI. %description -n tcl-brlapi This package provides the Tcl binding for BrlAPI. @@ -197,8 +200,8 @@ exit 0 %files -n tcl-brlapi %defattr(-,root,root) -%{_libdir}/tcl*/brlapi-%{api_version}/libbrlapi_tcl.so -%{_libdir}/tcl*/brlapi-%{api_version}/pkgIndex.tcl +%{tcl_sitearch}/brlapi-%{api_version}/libbrlapi_tcl.so +%{tcl_sitearch}/brlapi-%{api_version}/pkgIndex.tcl %files -n python-brlapi %defattr(-,root,root) @@ -212,6 +215,9 @@ exit 0 %changelog +* Wed Jan 09 2008 Tomas Janousek - 3.9-1.1 +- specfile update to comply with tcl packaging guidelines + * Mon Jan 07 2008 Tomas Janousek - 3.9-1 - update to latest upstream (3.9)