tk/tk.spec

122 lines
3.4 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 11:18:32 -04:00
%define majorver 8.6
%define epoch 1
Name: tk
2024-02-29 17:10:47 +08:00
Version: 8.6.14
2022-04-19 15:09:56 +08:00
Release: 1
2019-09-30 11:18:32 -04:00
Summary: The graphical toolkit for the Tcl scripting language
Epoch: 1
License: TCL
URL: http://tcl.sourceforge.net
Source0: http://download.sourceforge.net/sourceforge/tcl/%{name}%{version}-src.tar.gz
2022-04-19 15:09:56 +08:00
2019-09-30 11:18:32 -04:00
Requires: tcl = %{epoch}:%{version} glibc
2021-05-27 10:10:26 +08:00
BuildRequires: gcc
2019-09-30 11:18:32 -04:00
BuildRequires: tcl-devel = %{epoch}:%{version} autoconf libX11-devel libXft-devel
Conflicts: itcl <= 3.2
Obsoletes: tile <= 0.8.2
Provides: tile = 0.8.2
2022-04-19 15:09:56 +08:00
Patch0001: tk-8.6.10-make.patch
Patch0002: tk-8.6.10-conf.patch
Patch0003: tk-8.6.10-font-sizes-fix.patch
2019-09-30 11:18:32 -04:00
%description
TK is a widget toolkit that creates graphical user interface(GUI). It's
especially easy to program a GUI application using tcl script language.
%package devel
Summary: Tk graphical toolkit development files
Requires: %{name} = %{epoch}:%{version}-%{release} libX11-devel libXft-devel tcl-devel = %{epoch}:%{version}
%description devel
Package devel includes files for developing with tk.
%package help
Summary: Documents for tf
%description help
Includes Man pages for tf.
%prep
%autosetup -n %{name}%{version} -p1
%build
cd unix
autoconf
%configure --enable-threads
%make_build CFLAGS="%{optflags}" TK_LIBRARY=%{_datadir}/%{name}%{majorver}
%install
%make_install -C unix INSTALL_ROOT=%{buildroot} TK_LIBRARY=%{_datadir}/%{name}%{majorver}
ln -s wish%{majorver} %{buildroot}%{_bindir}/wish
ln -s lib%{name}%{majorver}.so %{buildroot}%{_libdir}/lib%{name}.so
install -d %{buildroot}/%{_includedir}/%{name}-private/{generic/ttk,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
)
sed -i -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/%{name}-private|" %{buildroot}/%{_libdir}/%{name}Config.sh
%pre
[ ! -h %{_prefix}/%{_lib}/%{name}%{majorver} ] || rm %{_prefix}/%{_lib}/%{name}%{majorver}
%ldconfig_post
%ldconfig_postun
%files
%defattr(-,root,root,-)
%doc README.md changes license.terms
2019-09-30 11:18:32 -04:00
%{_bindir}/wish*
%{_datadir}/%{name}%{majorver}
%exclude %{_datadir}/%{name}%{majorver}/tkAppInit.c
%{_libdir}/%{name}%{majorver}
2020-01-13 20:17:11 +08:00
%{_libdir}/lib%{name}%{majorver}.so
2019-09-30 11:18:32 -04:00
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/lib%{name}.so
%{_libdir}/%{name}Config.sh
%{_libdir}/pkgconfig/tk.pc
2020-01-13 20:17:11 +08:00
%{_libdir}/lib%{name}stub%{majorver}.a
2019-09-30 11:18:32 -04:00
%{_datadir}/%{name}%{majorver}/tkAppInit.c
%files help
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/mann/*
2019-09-30 11:18:32 -04:00
%changelog
2024-02-29 17:10:47 +08:00
* Thu Feb 29 2024 wangqia <wangqia@uniontech.com> - 1:8.6.14-1
- Update to version 8.6.14
2023-02-07 07:06:14 +00:00
* Tue Feb 07 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 1:8.6.13-1
- update to 1:8.6.13-1
2022-04-19 15:09:56 +08:00
* Tue Apr 19 2022 wangkerong<wangkerong@h-partners.com> - 1:8.6.12-1
- Upgrade to 1:8.6.12-1
2021-05-27 10:10:26 +08:00
* Thu May 27 2021 liuyumeng<liuyumeng5@huawei.com> - 1:8.6.10-2
- Add a BuildRequires for gcc
* Thu Jul 30 2020 chengguipeng<chengguipeng1@huawei.com> - 1:8.6.10-1
- Upgrade to 1:8.6.10-1
2020-01-13 20:15:43 +08:00
* Mon Jan 13 2020 zhangrui <zhangrui182@huawei.com> - 1:8.6.8-4
- del patches to be consistent with open source
* Sat Jan 11 2020 zhangrui <zhangrui182@huawei.com> - 1:8.6.8-3
- del patches to be consistent with open source
2019-09-30 11:18:32 -04:00
* Wed Sep 18 2019 Zaiwang Li<lizaiwang1@huawei.com> - 1:8.6.8-2
- Init package