[iwidgets] Reimport sources and spec

Dmitrij S. Kryzhevich krege at fedoraproject.org
Wed Feb 29 04:34:20 UTC 2012


commit 16d9e24c6d9766338f962ee7177f2af8c62aafb2
Author: Dmitrij S. Kryzhevich <krege at land.ru>
Date:   Wed Feb 29 11:34:17 2012 +0700

    Reimport sources and spec

 iwidgets-4.0.2-tkversion.patch |   11 ++++
 iwidgets.spec                  |  115 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 3 files changed, 127 insertions(+), 0 deletions(-)
---
diff --git a/iwidgets-4.0.2-tkversion.patch b/iwidgets-4.0.2-tkversion.patch
new file mode 100644
index 0000000..f46c80e
--- /dev/null
+++ b/iwidgets-4.0.2-tkversion.patch
@@ -0,0 +1,11 @@
+--- iwidgets.tcl.in.orig	2009-12-05 11:52:33.000000000 -0800
++++ iwidgets.tcl.in	2009-12-05 11:52:39.000000000 -0800
+@@ -14,7 +14,7 @@
+ # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
+ 
+ package require Tcl 8.0
+-package require Tk 8.0
++package require Tk
+ package require Itcl @ITCL_VERSION@
+ package require Itk @ITCL_VERSION@
+ 
diff --git a/iwidgets.spec b/iwidgets.spec
new file mode 100644
index 0000000..3f8b982
--- /dev/null
+++ b/iwidgets.spec
@@ -0,0 +1,115 @@
+%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
+%{!?tcl_sitelib: %define tcl_sitelib %{_datadir}/tcl%{tcl_version}}
+
+Name:           iwidgets
+Version:        4.0.2
+Release:        6%{?dist}
+Summary:        A set of useful widgets based on itcl and itk
+
+Group:          Development/Libraries
+License:        MIT
+URL:            http://incrtcl.sourceforge.net/
+Source0:        http://downloads.sourceforge.net/sourceforge/incrtcl/iwidgets4.0.1.tar.gz
+Patch0:         iwidgets-4.0.2-tkversion.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+Requires:       tcl(abi) = 8.5 itk
+BuildRequires:  tcl
+
+%description
+A set of useful widgets based on itcl and itk.
+
+%prep
+%setup -q -n iwidgets4.0.1
+%patch0 -p0
+
+%build
+# The configure script and Makefile for this package is horribly broken.
+# Installation is simple enough that it's easier to manually install the
+# files than try to patch the configure script and Makefile to work.
+
+sed -e "s#@ITCL_VERSION@#3.2#" -e "s#@VERSION@#%{version}#" < iwidgets.tcl.in > iwidgets.tcl
+sed -e "s#@VERSION@#%{version}#" < pkgIndex.tcl.in > pkgIndex.tcl
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}
+install -p -m 644 generic/*.* $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}
+install -p -m 644 generic/tclIndex $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}
+install -p -m 644 iwidgets.tcl $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}
+install -p -m 644 pkgIndex.tcl $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}
+
+mkdir -p $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/demos
+for i in demos/* ; do
+    if [ -f $i ] ; then
+        install -p -m 644 $i $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/demos
+    fi
+done
+chmod 755 $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/demos/catalog
+# Remove rpmlint warning.
+chmod 755 $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/demos/scopedobject
+
+mkdir -p $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/demos/images
+install -p -m 644 demos/images/*.* $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/demos/images
+
+# These html pages are part of the demonstration scripts, so they aren't
+# packaged with the rest of the documentation.
+mkdir -p $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/demos/html
+install -p -m 644 demos/html/*.html $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/demos/html
+
+mkdir -p $RPM_BUILD_ROOT/%{_mandir}/mann
+install -p -m 644 doc/*.n $RPM_BUILD_ROOT/%{_mandir}/mann/
+# This file conflicts with the one from tk-devel
+rm $RPM_BUILD_ROOT/%{_mandir}/mann/panedwindow.n
+# This file conflicts with the one from tklib
+rm $RPM_BUILD_ROOT/%{_mandir}/mann/datefield.n
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%{tcl_sitelib}/iwidgets%{version}
+%{_mandir}/mann/*
+%doc README license.terms doc/iwidgets.ps
+
+%changelog
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.0.2-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.0.2-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sat Dec 5 2009 Wart <wart at kobold.org> - 4.0.2-4
+- Remove version requirement on Tk
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.0.2-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.0.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Fri Jan 11 2008 Wart <wart at kobold.org> - 4.0.2-1
+- Update to 4.0.2 using a patch from CVS
+- Rebuild for tcl 8.5
+
+* Sun Aug 19 2007 Wart <wart at kobold.org> - 4.0.1-5
+- License tag clarification
+- Better download URL
+
+* Mon Aug 28 2006 Wart <wart at kobold.org> - 4.0.1-4
+- Rebuild for Fedora Extras
+
+* Fri Dec 29 2005 Wart <wart at kobold.org> - 4.0.1-3
+- Updated source url
+- Change Requires: based on bz #174265
+- Manually install all files instead of depending on the broken
+  configure script and Makefile.
+
+* Fri Nov 25 2005 Wart <wart at kobold.org> - 4.0.1-2
+- Initial spec file for Fedora Extras
+
+* Thu Nov 24 2005 Wart <wart at kobold.org> - 4.0.1-1
+- Initial spec file for personal use
diff --git a/sources b/sources
new file mode 100644
index 0000000..05c19d3
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0e9c140e81ea6015b56130127c7deb03  iwidgets4.0.1.tar.gz


More information about the scm-commits mailing list