Blob Blame History Raw
Summary: Collection of widgets and other packages for Tk
Name: tklib
Version: 0.4.1
Release: 5%{?dist}
License: BSD
Group: Development/Libraries
Source: http://download.sourceforge.net/tcllib/tklib-0.4.1.tar.gz
Patch0: tklib-0.4.1-makecheck.patch
URL: http://tcllib.sourceforge.net/
BuildArch: noarch
Requires: tk >= 0:8.3.1 tcllib
BuildRequires: tk >= 0:8.3.1 tcllib
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
This package is intended to be a collection of Tcl packages that provide
Tk utility functions and widgets useful to a large collection of Tcl/Tk
programmers.

%prep
%setup -q
%patch0 -p1
# Remove some execute permission bits on files that aren't executable
# to suppress some rpmlint warnings.
chmod a-x modules/plotchart/*.tcl
chmod a-x modules/swaplist/*.tcl

%build
# Override the setting for 'libdir'.  If this isn't done then the
# platform-independent script files will get installed in a platform-specific
# directory (such as /usr/lib or /usr/lib64).
%configure --libdir=%{_datadir}
# Don't bother running 'make' because there's nothing to build.

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%check
make check

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc PACKAGES README README-0.4.txt ChangeLog license.terms
%{_datadir}/tklib*
%{_mandir}/*/*

%changelog
* Mon Aug 28 2006 Wart <wart at kobold.org> 0.4.1-5
- Rebuild for FC-6

* Thu Feb 16 2006 Wart <wart at kobold.org> 0.4.1-4
- Rebuild for FC-5

* Fri Dec 2 2005 Wart <wart at kobold.org> 0.4.1-3
- Minor specfile improvements.

* Thu Dec 1 2005 Wart <wart at kobold.org> 0.4.1-2
- Add check stage after the install, as well as a patch to the check script
  included in the package.

* Sun Nov 27 2005 Wart <wart at kobold.org> 0.4.1-1
- Initial spec file.