rpms/xpa/devel xpa.spec,1.19,1.20

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


Author: sergiopr

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

Modified Files:
	xpa.spec 
Log Message:
* Thu Jan 03 2008 Sergio Pascual <sergiopr at fedoraproject.org> 2.1.8-5
- Following PackagingDrafts/Tcl



Index: xpa.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xpa/devel/xpa.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- xpa.spec	3 Jan 2008 12:28:20 -0000	1.19
+++ xpa.spec	4 Jan 2008 14:42:55 -0000	1.20
@@ -1,3 +1,6 @@
+%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
+%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}}
+
 Name: xpa
 Version: 2.1.8
 Release: 4%{?dist}
@@ -18,6 +21,8 @@
 BuildRequires: tcl-devel libXt-devel
 BuildRequires: /bin/awk
 
+Requires: tcl(abi) = 8.5
+
 %description
 The XPA messaging system provides seamless communication between many kinds 
 of Unix programs, including X programs and Tcl/Tk programs. 
@@ -53,6 +58,7 @@
 Summary: The XPA messaging system TCL interface
 Group: System Environment/Libraries
 Requires: %{name}-libs = %{version}-%{release}
+Provides: tcl-xpa = %{version}-%{release}
 %description tcl
 The XPA messaging system provides seamless communication between many kinds 
 of Unix programs, including X programs and Tcl/Tk programs. 
@@ -72,10 +78,10 @@
 
 %install
 %{__rm} -fr %{buildroot}
-%{__mkdir_p} %{buildroot}%{_libdir}/tclxpa
 %{__make} INSTALL_ROOT=%{buildroot} install
-%{__cp} -a pkgIndex.tcl %{buildroot}%{_libdir}/tclxpa
-%{__mv} %{buildroot}%{_libdir}/libtcl* %{buildroot}%{_libdir}/tclxpa
+%{__mkdir_p} %{buildroot}%{tcl_sitearch}/tclxpa
+%{__cp} -a pkgIndex.tcl %{buildroot}%{tcl_sitearch}/tclxpa
+%{__mv} %{buildroot}%{_libdir}/libtcl* %{buildroot}%{tcl_sitearch}/tclxpa
 
 %clean
 %{__rm} -fr %{buildroot}
@@ -98,20 +104,23 @@
 
 %files tcl
 %defattr(-,root,root,-)
-%{_libdir}/tclxpa
+%{tcl_sitearch}/tclxpa
 
 %files devel
 %defattr(-,root,root,-)
 %doc doc/*.html
 %doc doc/*.pdf
 %{_libdir}/*.so
-%{_libdir}/tclxpa/*.so
+#%{_libdir}/tclxpa/*.so
 %{_includedir}/*
 %{_mandir}/man3/*
 %{_mandir}/mann/*
 %exclude %{_libdir}/*.a
 
 %changelog
+* Thu Jan 03 2008 Sergio Pascual <sergiopr at fedoraproject.org> 2.1.8-5
+- Following PackagingDrafts/Tcl
+
 * Thu Jan 03 2008 Sergio Pascual <sergiopr at fedoraproject.org> 2.1.8-4
 - Rebuilt for tcl 8.5
 




More information about the fedora-extras-commits mailing list