Author: glen                         Date: Mon May 11 16:32:31 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, based on fc spec

---- Files affected:
packages/tcl-bwidget:
   tcl-bwidget.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/tcl-bwidget/tcl-bwidget.spec
diff -u /dev/null packages/tcl-bwidget/tcl-bwidget.spec:1.1
--- /dev/null   Mon May 11 18:32:31 2009
+++ packages/tcl-bwidget/tcl-bwidget.spec       Mon May 11 18:32:26 2009
@@ -0,0 +1,57 @@
+# $Revision$, $Date$
+%define                package bwidget
+Summary:       Extended widget set for Tk
+Name:          tcl-%{package}
+Version:       1.8.0
+Release:       0.1
+License:       TCL
+Group:         Development/Libraries
+URL:           http://tcllib.sourceforge.net/
+Source0:       http://dl.sourceforge.net/tcllib/BWidget-%{version}.tar.bz2
+# Source0-md5: 5d2433c5fd93ab7f906f4c7ab225b0d8
+BuildRequires: tcl >= 8.4
+Requires:      tcl >= %{tcl_version}
+Requires:      tk
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                tcl_version             %(rpm -q --qf %{V} tcl-devel | 
cut -d. -f1,2)
+%define                tcl_sitelib             %{_datadir}/tcl%{tcl_version}
+
+%description
+An extended widget set for Tcl/Tk.
+
+%prep
+%setup -q -n BWidget-%{version}
+%{__sed} -i 's/\r//' LICENSE.txt
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# Don't bother with the included configure script and Makefile.  They
+# are missing a lot of pieces and won't work at all.  Installation is
+# pretty simple, so we can just do it here manually.
+install -d $RPM_BUILD_ROOT%{tcl_sitelib}/%{package}%{version}
+mkdir $RPM_BUILD_ROOT%{tcl_sitelib}/%{package}%{version}/lang
+mkdir $RPM_BUILD_ROOT%{tcl_sitelib}/%{package}%{version}/images
+
+cp -a *.tcl $RPM_BUILD_ROOT%{tcl_sitelib}/%{package}%{version}
+cp -a lang/*.rc $RPM_BUILD_ROOT%{tcl_sitelib}/%{package}%{version}/lang
+cp -a images/*.gif images/*.xbm 
$RPM_BUILD_ROOT%{tcl_sitelib}/%{package}%{version}/images
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt LICENSE.txt
+%doc BWman/*.html
+%{tcl_sitelib}/%{package}%{version}
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedb...@pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/05/11 16:32:26  glen
+- new, based on fc spec
================================================================
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to