Change in spec for review.

This commit is contained in:
Marcela Mašláňová 2007-02-20 15:33:10 +00:00
parent c258c5f2d9
commit f87eededd0

21
tk.spec
View File

@ -1,9 +1,9 @@
%define majorver 8.4
Summary: Tk graphical toolkit for the Tcl scripting language
Summary: The graphical toolkit for the Tcl scripting language
Name: tk
Version: %{majorver}.13
Release: 4%{?dist}
Release: 5%{?dist}
Epoch: 1
License: BSD
Group: Development/Languages
@ -30,7 +30,6 @@ way to create cross-platform GUI applications.
%package devel
Summary: Tk graphical toolkit development files
Group: Development/Languages
URL: http://tcl.sourceforge.net
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: tcl-devel = %{epoch}:%{version}
Requires: libX11-devel
@ -56,7 +55,6 @@ cd unix
autoconf
%build
TOPDIR=$PWD
cd unix
%configure
make %{?_smp_mflags} TK_LIBRARY=%{_datadir}/%{name}%{majorver}
@ -71,7 +69,7 @@ make %{?_smp_mflags} TK_LIBRARY=%{_datadir}/%{name}%{majorver}
%endif
%install
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
make install -C unix INSTALL_ROOT=%{buildroot} TK_LIBRARY=%{_datadir}/%{name}%{majorver}
ln -s wish%{majorver} %{buildroot}%{_bindir}/wish
@ -93,7 +91,7 @@ rm -rf %buildroot/%{_datadir}/%{name}%{majorver}/tkAppInit.c
rm -rf %buildroot/%{_datadir}/%{name}%{majorver}/prolog.ps
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%pre
[ ! -h %{_prefix}/%{_lib}/%{name}%{majorver} ] || rm %{_prefix}/%{_lib}/%{name}%{majorver}
@ -105,14 +103,11 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/wish*
%{_datadir}/%{name}%{majorver}/demos/
%{_datadir}/%{name}%{majorver}/images/
%{_datadir}/%{name}%{majorver}/msgs/
%{_datadir}/%{name}%{majorver}/*.tcl
%{_datadir}/%{name}%{majorver}/tclIndex
%{_datadir}/%{name}%{majorver}
%{_libdir}/lib%{name}%{majorver}.so
%{_libdir}/%{name}%{majorver}
%{_mandir}/man1/*
%{_mandir}/mann/*
%doc README changes license.terms
%files devel
@ -122,9 +117,11 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/lib%{name}stub%{majorver}.a
%{_libdir}/%{name}Config.sh
%{_mandir}/man3/*
%{_mandir}/mann/*
%changelog
* Thu Feb 20 2007 Marcela Maslanova <mmaslano@redhat.com> - 1:8.4.13-5
- rhbz#226494 review again
* Thu Feb 14 2007 Marcela Maslanova <mmaslano@redhat.com> - 1:8.4.13-4
- rhbz#226494 review