From cc005083675bc030416afc0f006e36e90e71262e Mon Sep 17 00:00:00 2001 From: Marek Mahut Date: Oct 23 2007 09:26:34 +0000 Subject: Proving devel package. --- diff --git a/blt.spec b/blt.spec index 1134d7b..acca8f8 100644 --- a/blt.spec +++ b/blt.spec @@ -1,7 +1,7 @@ Summary: BLT widget extension to Tcl/Tk scripting language development Name: blt Version: 2.4 -Release: 15.z%{?dist} +Release: 16%{?dist} License: MIT Group: Development/Libraries @@ -9,8 +9,8 @@ Source: http://download.sourceforge.net/blt/BLT2.4z.tar.gz Patch0: http://download.sourceforge.net/blt/blt2.4z-patch-2 Patch1: http://jfontain.free.fr/blt2.4z-patch-64 URL: http://sourceforge.net/projects/blt/ -BuildRequires: tk-devel >= 8.4.7, tk-devel < 8.5 -Requires: tk >= 8.4.7, tk < 8.5 +BuildRequires: tk-devel >= 8.4.7 +Requires: tk >= 8.4.7 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%__id_u -n) %description @@ -22,6 +22,21 @@ bitmap command and miscellaneous commands. Note: this version is stubs enabled and therefore should be compatible with Tcl/Tk versions after and including 8.3.1. + +%package devel +Summary: Development package for BLT +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +BLT is an extension to the Tk toolkiy. BLT's most useful feature is the +provision of more widgets for Tk, but it also provides more geometry managers +and miscellaneous other commands. Note that you won't need to any patching +of the Tcl or Tk source file to use BLT, but you will need to have Tcl/Tk +installed in order to use BLT. + +This package provides headers needed to build packages based on BLT. + %prep %setup -q -n %{name}%{version}z %patch0 -p1 @@ -38,6 +53,8 @@ DIRECTORY=$RPM_BUILD_ROOT%{_libdir}/%{name}%{version} install -d $DIRECTORY install -m 755 -p src/shared/libBLT24.so src/shared/libBLTlite24.so $DIRECTORY install -m 644 -p library/*.{pro,tcl,xbm} library/tclIndex $DIRECTORY +install -d $RPM_BUILD_ROOT%{_includedir}/%{name} +install -m 644 -p src/blt.h $RPM_BUILD_ROOT%{_includedir}/%{name} echo 'package ifneeded BLT 2.4 "if {[llength [info commands tk]] > 0} {load [file join $dir libBLT24.so]} else {load [file join $dir libBLTlite24.so] BLT}"' > $DIRECTORY/pkgIndex.tcl cp -p -r library/dd_protocols $DIRECTORY rm -f html/Makefile.vc @@ -50,7 +67,13 @@ rm -rf $RPM_BUILD_ROOT %doc README INSTALL PROBLEMS html/ %{_libdir}/%{name}%{version}/ +%files devel +%defattr(-,root,root,-) +%{_includedir}/blt + %changelog +* Mon Oct 22 2007 Marek Mahut 2.4-16 +- Providing devel package as per request in BZ#249812 * Thu Feb 8 2007 Jean-Luc Fontaine 2.4-15.z - require tk < 8.5