c01c1aa6ec
- tcl's license is BSD-3-Clause - add autoconf as buildrequire to avoid implicit dependency (forwarded request 97552 from coolo) OBS-URL: https://build.opensuse.org/request/show/97584 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tix?expand=0&rev=12
89 lines
2.4 KiB
RPMSpec
89 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package tix
|
|
#
|
|
# Copyright (c) 2011 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
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
|
|
Summary: Tools for tk
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/Tcl
|
|
Source: Tix%version-src.tar.bz2
|
|
Patch0: %name.patch
|
|
Summary: Tools for tk
|
|
Provides: tixwish tixwish%V_TIX
|
|
|
|
%description
|
|
The Tix library has, by far, the greatest collection of widgets for
|
|
programming with Tcl/Tk. Highlights include: hierarchical list box,
|
|
directory list/tree view, spreadsheet, tabular list box, combo box,
|
|
Motif style file select box, MS Windows style file select box, paned
|
|
window, note book, spin control widget and many more. With these new
|
|
widgets, your applications will look great and interact with your users
|
|
in intuitive ways.
|
|
|
|
|
|
|
|
%prep
|
|
%setup -q -n Tix%version
|
|
%patch0
|
|
find docs -type f | xargs chmod a-x
|
|
|
|
%build
|
|
autoreconf
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
./configure \
|
|
--with-tcl=%_libdir \
|
|
--with-tk=%_libdir \
|
|
--prefix=%_prefix \
|
|
--libdir=%_libdir \
|
|
--mandir=%_mandir
|
|
make
|
|
|
|
%install
|
|
make install \
|
|
DESTDIR=%buildroot \
|
|
libdir=%_libdir/tcl
|
|
MANN=%buildroot/%_mandir/mann
|
|
mkdir -p $MANN
|
|
pushd man
|
|
for f in *.n; do
|
|
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' $f > $MANN/$f
|
|
done
|
|
popd
|
|
|
|
%clean
|
|
rm -rf %buildroot
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc ABOUT* README* ChangeLog license.terms index.html
|
|
%doc docs/Release* docs/*html docs/img docs/pdf/* demos
|
|
%doc %_mandir/*/*
|
|
%_libdir/tcl
|
|
|
|
%changelog
|