- Fix build with Tcl 8.6.0.

- Cleanup spec file.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/tix?expand=0&rev=5
This commit is contained in:
Reinhard Max 2013-06-20 14:43:04 +00:00 committed by Git OBS Bridge
parent c01c1aa6ec
commit 6ea8ec0212
2 changed files with 12 additions and 18 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 20 14:42:27 UTC 2013 - max@suse.com
- Fix build with Tcl 8.6.0.
- Cleanup spec file.
-------------------------------------------------------------------
Wed Dec 21 10:46:44 UTC 2011 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package tix
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,12 +19,8 @@
Name: tix
BuildRequires: autoconf
BuildRequires: fdupes
BuildRequires: itcl
BuildRequires: tk-devel
BuildRequires: xorg-x11-devel
%define V_TIX 8.1.%tcl_version
%define prefix /usr
%define mandir /usr/share/man
Version: 8.4.3
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -34,7 +30,7 @@ Group: Development/Libraries/Tcl
Source: Tix%version-src.tar.bz2
Patch0: %name.patch
Summary: Tools for tk
Provides: tixwish tixwish%V_TIX
Group: Development/Libraries/Tcl
%description
The Tix library has, by far, the greatest collection of widgets for
@ -54,19 +50,14 @@ find docs -type f | xargs chmod a-x
%build
autoreconf
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
./configure \
export CFLAGS="$RPM_OPT_FLAGS -DUSE_INTERP_RESULT -fno-strict-aliasing"
%configure \
--with-tcl=%_libdir \
--with-tk=%_libdir \
--prefix=%_prefix \
--libdir=%_libdir \
--mandir=%_mandir
--with-tk=%_libdir
make
%install
make install \
DESTDIR=%buildroot \
libdir=%_libdir/tcl
make install DESTDIR=%buildroot libdir=%_libdir/tcl
MANN=%buildroot/%_mandir/mann
mkdir -p $MANN
pushd man
@ -75,9 +66,6 @@ for f in *.n; do
done
popd
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%doc ABOUT* README* ChangeLog license.terms index.html