auto-import changelog data from tk-8.4.5-7.src.rpm

Tue Mar 16 2004 Mike A. Harris <mharris@redhat.com> - 8.4.5-7
- Removed Requires: XFree86-libs and replaced with Buildrequires:
    XFree86-devel so that the package is X11 implementation agnostic for
    the inclusion of xorg-x11 (#118482)
- Added Requires(post,postun): /sbin/ldconfig
- Added BuildRequires: perl, as perl is used during %install
Thu Mar 11 2004 Jens Petersen <petersen@redhat.com> - 8.4.5-6
- generate compat symlink instead in %post if /usr/lib/tk8.4 does not exist
Wed Mar 10 2004 Jens Petersen <petersen@redhat.com> - 8.4.5-5
- add tk-8.4.5-autoconf.patch and build with autoconf 2.5x (Robert Scheck,
    #116776)
- add tk-8.4.5-pkgIndex-loc.patch to install pkgIndex.tcl in the script dir
- use %{name} throughout for greater portability
- add a "--with check" rpmbuild option
- use "mkdir -p" instead of "mkdirhier" (Robert Scheck, #116774)
- /usr/lib/tk8.4 is now a compat symlink to /usr/share/tk8.4
- include all the private header files under /usr/include/tk-private
- add doc files
Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
This commit is contained in:
cvsdist 2004-09-09 13:21:18 +00:00
parent 5fe2c71cc1
commit 36d5f4a559

97
tk.spec
View File

@ -3,17 +3,21 @@
Summary: Tk graphical toolkit for the Tcl scripting language
Name: tk
Version: %{majorver}.5
Release: 3
Release: 7
License: BSD
Group: Development/Languages
URL: http://tcl.sourceforge.net/
Source0: http://prdownloads.sourceforge.net/tcl/%{name}%{version}-src.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: tcl = %{version}, XFree86-libs
Buildrequires: tcl-devel = %{version}, autoconf213
Requires: tcl = %{version}
Requires(post,postun): /sbin/ldconfig
BuildRequires: tcl-devel = %{version}, autoconf
BuildRequires: XFree86-devel, perl
Patch1: tk-8.3.5-tclm4-soname.patch
Patch2: tk-8.4.4-lib-perm.patch
Patch3: tk-8.4.5-no_rpath.patch
Patch4: tk-8.4.5-autoconf.patch
Patch5: tk-8.4.5-pkgIndex-loc.patch
%description
When paired with the Tcl scripting language, Tk provides a fast and powerful
@ -24,7 +28,7 @@ Version: %{version}
Summary: Tk graphical toolkit development files
Group: Development/Languages
URL: http://tcl.sourceforge.net/
Requires: tk = %{version}-%{release}, XFree86-devel
Requires: %{name} = %{version}-%{release}, XFree86-devel
%description devel
When paired with the Tcl scripting language, Tk provides a fast and powerful
@ -39,30 +43,46 @@ The package contains the development files and man pages for tk.
%patch1 -p1 -b .soname
%patch2 -p1 -b .rolib
%patch3 -p1 -b .no_rpath
%patch4 -p1 -b .ac213
%patch5 -p1 -b .pkgIdx
# patch1 touches tcl.m4
cd unix
autoconf-2.13
autoconf
%build
TOPDIR=$PWD
cd unix
%configure
make %{?_smp_mflags} TK_LIBRARY=%{_datadir}/tk%{majorver}
make %{?_smp_mflags} TK_LIBRARY=%{_datadir}/%{name}%{majorver}
# do not run "make test" by default since it requires an X display
%{?_with_check: %define _with_check 1}
%{!?_with_check: %define _with_check 0}
%if %{_with_check}
make test
%endif
%install
rm -rf $RPM_BUILD_ROOT
make install -C unix INSTALL_ROOT=%{buildroot} TK_LIBRARY=%{_datadir}/tk%{majorver}
make install -C unix INSTALL_ROOT=%{buildroot} TK_LIBRARY=%{_datadir}/%{name}%{majorver}
ln -s wish%{majorver} %{buildroot}%{_bindir}/wish
# for linking with -ltk
ln -s libtk%{majorver}.so %{buildroot}%{_libdir}/libtk.so
# for linking with -l%{name}
ln -s lib%{name}%{majorver}.so %{buildroot}%{_libdir}/lib%{name}.so
mkdirhier %buildroot/%{_includedir}/tk-private/{generic,unix}
cp -p generic/{default,tkInt,tkIntDecls,tkPort}.h %buildroot/%{_includedir}/tk-private/generic
cp -p unix/tkUnix{Default,Port}.h %buildroot/%{_includedir}/tk-private/unix
mkdir -p %buildroot/%{_includedir}/%{name}-private/{generic,unix}
find generic unix -name "*.h" -exec cp -p '{}' %buildroot/%{_includedir}/%{name}-private/'{}' ';'
( cd %buildroot/%{_includedir}
for i in *.h ; do
[ -f %buildroot/%{_includedir}/%{name}-private/generic/$i ] && ln -sf ../../$i %buildroot/%{_includedir}/%{name}-private/generic ;
done
)
# remove buildroot traces
perl -pi -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/tk-private|" %buildroot/%{_libdir}/tkConfig.sh
perl -pi -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/%{name}-private|" %buildroot/%{_libdir}/%{name}Config.sh
%clean
rm -rf $RPM_BUILD_ROOT
@ -70,33 +90,64 @@ rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
# try to make a backward compatible symlink for legacy tk packages
# that hardcode lib path to prefix/lib/%{name}%{majorver}
[ -d %{_prefix}/lib/%{name}%{majorver} ] || ln -s %{_datadir}/%{name}%{majorver} %{_prefix}/lib/%{name}%{majorver}
%postun
/sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/wish*
%{_datadir}/tk%{majorver}
%{_libdir}/libtk%{majorver}.so
%{_libdir}/tk%{majorver}
%{_libdir}/tkConfig.sh
%{_datadir}/%{name}%{majorver}
%{_libdir}/lib%{name}%{majorver}.so
%{_libdir}/%{name}Config.sh
%{_mandir}/man1/*
%doc
%doc README changes license.terms
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/libtk.so
%{_libdir}/libtkstub%{majorver}.a
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}stub%{majorver}.a
%{_mandir}/man3/*
%{_mandir}/mann/*
%changelog
* Tue Mar 16 2004 Mike A. Harris <mharris@redhat.com> - 8.4.5-7
- Removed Requires: XFree86-libs and replaced with Buildrequires: XFree86-devel
so that the package is X11 implementation agnostic for the inclusion of
xorg-x11 (#118482)
- Added Requires(post,postun): /sbin/ldconfig
- Added BuildRequires: perl, as perl is used during %%install
* Thu Mar 11 2004 Jens Petersen <petersen@redhat.com> - 8.4.5-6
- generate compat symlink instead in %%post if /usr/lib/tk%{majorver}
does not exist
* Wed Mar 10 2004 Jens Petersen <petersen@redhat.com> - 8.4.5-5
- add tk-8.4.5-autoconf.patch and build with autoconf 2.5x
(Robert Scheck, #116776)
- add tk-8.4.5-pkgIndex-loc.patch to install pkgIndex.tcl in the script dir
- use %%{name} throughout for greater portability
- add a "--with check" rpmbuild option
- use "mkdir -p" instead of "mkdirhier" (Robert Scheck, #116774)
- /usr/lib/tk8.4 is now a compat symlink to %{_datadir}/tk8.4
- include all the private header files under /usr/include/tk-private
- add doc files
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Fri Dec 12 2003 Jens Petersen <petersen@redhat.com> - 8.4.5-3
- add private header files needed to build tix in /usr/include/tk-private
- add private header files needed to build tix in %{_includedir}/%{name}-private
* Mon Dec 1 2003 Thomas Woerner <twoerner@redhat.com> 8.4.5-2
- removed rpath (patch 3)
- remove rpath with tk-8.4.5-no_rpath.patch
* Thu Nov 27 2003 Jens Petersen <petersen@redhat.com> - 8.4.5-1
- new package split out from tcltk
@ -105,8 +156,6 @@ rm -rf $RPM_BUILD_ROOT
- buildrequire autoconf213 (#110583) [mvd@mylinux.com.ua]
- remove build remnants from tkConfig.sh
* Wed Oct 15 2003 Jens Petersen <petersen@redhat.com> - 8.3.5-93
* Wed Sep 17 2003 Matt Wilson <msw@redhat.com> 8.3.5-92
- rebuild again for #91211