packages: iwidgets/iwidgets-standalone.patch (NEW), iwidgets/iwidgets.spec ...

qboosh qboosh at pld-linux.org
Sun Nov 27 14:41:29 CET 2011


Author: qboosh                       Date: Sun Nov 27 13:41:29 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- separated from itcl.spec; added standalone patch to avoid requiring itcl/itk sources, which are not required for anything used to build package

---- Files affected:
packages/iwidgets:
   iwidgets-standalone.patch (NONE -> 1.1)  (NEW), iwidgets.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/iwidgets/iwidgets-standalone.patch
diff -u /dev/null packages/iwidgets/iwidgets-standalone.patch:1.1
--- /dev/null	Sun Nov 27 14:41:29 2011
+++ packages/iwidgets/iwidgets-standalone.patch	Sun Nov 27 14:41:24 2011
@@ -0,0 +1,28 @@
+--- iwidgets/configure.in.orig	2005-04-11 22:34:09.000000000 +0200
++++ iwidgets/configure.in	2011-11-27 14:28:03.725046782 +0100
+@@ -35,20 +35,12 @@
+ #--------------------------------------------------------------------
+ 
+ AC_ARG_WITH(itcl, [  --with-itcl=DIR         use Itcl 3.0 binaries from DIR],
+-        itcl_search=$withval, itcl_search=`cd ${srcdir}/..; pwd`)
++        itcl_search=$withval, itcl_search=$libdir)
+ 
+-ITCL_LIB_DIR=""
+-if test -r $itcl_search/itcl/library/itcl.tcl \
+-	-a -r $itcl_search/itk/library/itk.tcl; then
+-    ITCL_LIB_DIR=$itcl_search/itcl/library
+-    ITCL_SRC_DIR=$itcl_search/itcl
+-    ITK_LIB_DIR=$itcl_search/itk/library
+-    ITK_SRC_DIR=$itcl_search/itk
+-fi
+-
+-if test -z "$ITCL_LIB_DIR"; then
+-    AC_MSG_ERROR([Can't find Itcl source.  Use --with-itcl to specify the the toplevel [incr Tcl] directory on your system.  This directory should contain itcl/library/itcl.tcl, itk/library/itk.tcl.])
+-fi
++ITCL_LIB_DIR="$itcl_search"
++ITCL_SRC_DIR="$itcl_search"
++ITK_LIB_DIR="$itcl_search"
++ITK_SRC_DIR="$itcl_search"
+ 
+ #--------------------------------------------------------------------
+ # Handle the --prefix=... option by defaulting to what Tcl gave.

================================================================
Index: packages/iwidgets/iwidgets.spec
diff -u /dev/null packages/iwidgets/iwidgets.spec:1.1
--- /dev/null	Sun Nov 27 14:41:29 2011
+++ packages/iwidgets/iwidgets.spec	Sun Nov 27 14:41:24 2011
@@ -0,0 +1,112 @@
+# $Revision$, $Date$
+Summary:	[incr Widgets] - object-oriented widget set based in [incr Tcl] and [incr Tk]
+Summary(pl.UTF-8):	[incr Widgets] - zbiór obiektowo zorientowanych widgetów opartych na [incr Tcl] i [incr Tk]
+Name:		iwidgets
+Version:	4.0.2
+%define snap	20080403
+Release:	1
+License:	distributable
+Group:		Development/Languages/Tcl
+#Source0:	http://downloads.sourceforge.net/incrtcl/iwidgets%{iwidgets_version}.tar.gz
+Source0:	%{name}-CVS-%{snap}.tar.bz2
+# Source0-md5:	7741d7e0b231a4875b0998d6b5c00615
+Patch0:		%{name}-standalone.patch
+URL:		http://incrtcl.sourceforge.net/iwidgets/index.html
+BuildRequires:	autoconf >= 2.13
+BuildRequires:	tcl >= 8.4.6
+BuildRequires:	tk >= 8.4.6
+Requires:	itcl >= 3.2
+Requires:	itk >= 3.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_ulibdir	%{_prefix}/lib
+
+%description
+[incr Widgets] is an object-oriented mega-widget set which extends
+Tcl/Tk and is based on [incr Tcl] and [incr Tk]. This set of
+mega-widgets delivers many new, general purpose widgets like option
+menus, comboboxes, selection boxes, and various dialogs whose
+couterparts are found in Motif and Windows. Since [incr Widgets] is
+based on the [incr Tk] extension, the Tk framework of configuration
+options, widget commands, and default bindings is maintained. In other
+words, each [incr Widgets] mega-widget seamlessly blends with the
+standard Tk widgets. They look, act and feel like Tk widgets. In
+addition, all [incr Widgets] mega-widgets are object oriented and may
+themselves be extended, using either inheritance or composition.
+
+%description -l pl.UTF-8
+[incr Widgets] to zbiór zorientowanych obiektowo mega-widgetów
+rozszerzający Tcl/Tk, oparty na [incr Tcl] i [incr Tk]. Ten zbiór
+mega-widgetów zawiera wiele nowych widgetów ogólnego przeznaczenia,
+takich jak menu opcji, kontrolki combobox, kontrolki wyboru oraz różne
+okna dialogowe, których odpowiedniki można znaleźć w Motifie lub
+Windows. Jako że [incr Widgets] jest oparty na rozszerzeniu [incr Tk],
+zachowany jest szkielet Tk opcji konfiguracyjnych, polecenia widgetów
+oraz domyślne powiązania. Innymi słowy, każdy mega-widget [incr
+Widgets] komponują się idealnie ze standardowymi widgetami Tk.
+Wyglądają i zachowują się tak samo, jak widgety Tk. Ponadto wszystkie
+mega-widgety [incr Widgets] są zorientowane obiektowo i mogą być
+rozszerzane - poprzez dziedziczenie lub składanie.
+
+%package examples
+Summary:	Examples for iwidgets
+Summary(pl.UTF-8):	Przykłady dla biblioteki iwidgets
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description examples
+Examples for iwidgets.
+
+%description examples -l pl.UTF-8
+Przykłady dla biblioteki iwidgets.
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1
+
+%build
+%{__autoconf}
+%configure \
+	--libdir=%{_ulibdir} \
+	--with-itcl=%{_ulibdir}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+ln -sf %{_ulibdir}/iwidgets%{version} $RPM_BUILD_ROOT%{_ulibdir}/iwidgets
+
+mv -f $RPM_BUILD_ROOT%{_ulibdir}/iwidgets%{version}/demos/* \
+	$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES ChangeLog README license.terms
+%{_ulibdir}/iwidgets
+%dir %{_ulibdir}/iwidgets%{version}
+%{_ulibdir}/iwidgets%{version}/*.tcl
+%{_ulibdir}/iwidgets%{version}/scripts
+%{_mandir}/mann/iwidgets_*.n*
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/11/27 13:41:24  qboosh
+- separated from itcl.spec; added standalone patch to avoid requiring itcl/itk sources, which are not required for anything used to build package
================================================================


More information about the pld-cvs-commit mailing list