rpms/funtools/devel funtools.spec,1.10,1.11

Sergio Pascual (sergiopr) fedora-extras-commits at redhat.com
Fri Jan 4 14:38:05 UTC 2008


Author: sergiopr

Update of /cvs/pkgs/rpms/funtools/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16448

Modified Files:
	funtools.spec 
Log Message:
* Fri Jan 04 2008 Sergio Pascual <sergiopr at fedoraproject.org> 1.4.0-6
- Tcl files in a separate subpackage
- Following PackagingDrafts/Tcl



Index: funtools.spec
===================================================================
RCS file: /cvs/pkgs/rpms/funtools/devel/funtools.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- funtools.spec	3 Jan 2008 12:37:31 -0000	1.10
+++ funtools.spec	4 Jan 2008 14:37:21 -0000	1.11
@@ -1,6 +1,9 @@
+%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
+%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}}
+
 Name: funtools
 Version: 1.4.0
-Release: 5%{?dist}
+Release: 6%{?dist}
 Summary: FITS library and utilities
 
 # Upstream version
@@ -19,6 +22,8 @@
 Requires: gnuplot
 Requires: %{name}-libs = %{version}-%{release}
 
+Requires: tcl(abi) = 8.5
+
 %description
 Funtools, is a "minimal buy-in" FITS library and utility package from 
 the SAO/HEAD R&D group. The Funtools library provides simplified access to 
@@ -45,6 +50,14 @@
  Transport System) files.
 This package contains the %{name} run-time library
 
+%package tcl
+Summary: Funtools TCL interface
+Group: System Environment/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+Provides: tcl-funtools = %{version}-%{release}
+%description tcl
+This package contains the %{name} TCL interface
+
 %prep
 %setup -q -n %{name}-%{upversion}
 %patch0 -p1
@@ -64,6 +77,10 @@
 mv %{buildroot}/%{_bindir}/funcalc.sed %{buildroot}/%{_datadir}/funtools
 # Bug #329741
 %{__install} -p -m 644 fitsy/*.h %{buildroot}%{_includedir}/%{name}/fitsy
+# Tcl
+%{__mkdir_p} %{buildroot}%{tcl_sitearch}/tclfuntools
+%{__cp} -a pkgIndex.tcl %{buildroot}%{tcl_sitearch}/tclfuntools
+%{__mv} %{buildroot}%{_libdir}/libtcl* %{buildroot}%{tcl_sitearch}/tclfuntools
 
 
 %clean
@@ -83,7 +100,11 @@
 %files libs
 %defattr(-,root,root,-)
 %doc COPYING
-%{_libdir}/*so.*
+%{_libdir}/libfuntools*so.*
+
+%files tcl
+%defattr(-,root,root,-)
+%{tcl_sitearch}/tclfuntools
 
 %files devel
 %defattr(-,root,root,-)
@@ -97,6 +118,10 @@
 %{_mandir}/mann/*
 
 %changelog
+* Fri Jan 04 2008 Sergio Pascual <sergiopr at fedoraproject.org> 1.4.0-6
+- Tcl files in a separate subpackage
+- Following PackagingDrafts/Tcl
+
 * Thu Jan 03 2008 Sergio Pascual <sergiopr at fedoraproject.org> 1.4.0-5
 - Rebuilt for tcl 8.5
 




More information about the fedora-extras-commits mailing list