Projects
home:pandora:RobinOS23
tk
_service:download_src_package:tk.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:tk.spec of Package tk
%define anolis_release 1 %define majorver 8.6 %define vers %{majorver}.12 Summary: The graphical toolkit for the Tcl scripting language Name: tk Version: %{vers} Release: %{anolis_release}%{?dist} Epoch: 1 License: TCL URL: http://tcl.sourceforge.net Source0: http://download.sourceforge.net/sourceforge/tcl/%{name}%{version}-src.tar.gz Requires: tcl = %{epoch}:%{vers} BuildRequires: make BuildRequires: gcc BuildRequires: tcl-devel = %{epoch}:%{vers}, autoconf BuildRequires: libX11-devel BuildRequires: libXft-devel # panedwindow.n from itcl conflicts Conflicts: itcl <= 3.2 Obsoletes: tile <= 0.8.2 Provides: tile = 0.8.2 Patch1: tk-8.6.12-make.patch Patch2: tk-8.6.12-conf.patch # https://core.tcl-lang.org/tk/tktview/dccd82bdc70dc25bb6709a6c14880a92104dda43 Patch4: tk-8.6.10-font-sizes-fix.patch %description When paired with the Tcl scripting language, Tk provides a fast and powerful way to create cross-platform GUI applications. %package devel Summary: Tk graphical toolkit development files Requires: %{name} = %{epoch}:%{version}-%{release} Requires: tcl-devel = %{epoch}:%{vers} Requires: libX11-devel libXft-devel %description devel When paired with the Tcl scripting language, Tk provides a fast and powerful way to create cross-platform GUI applications. The package contains the development files and man pages for tk. %prep %autosetup -n %{name}%{vers} -p1 %build cd unix autoconf %configure --enable-threads %make_build CFLAGS="%{optflags}" TK_LIBRARY=%{_datadir}/%{name}%{majorver} %check # 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 make install -C unix INSTALL_ROOT=%{buildroot} TK_LIBRARY=%{_datadir}/%{name}%{majorver} ln -s wish%{majorver} %{buildroot}%{_bindir}/wish # for linking with -l%%{name} ln -s lib%{name}%{majorver}.so %{buildroot}%{_libdir}/lib%{name}.so mkdir -p %{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 ) # remove buildroot traces 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_scriptlets %files %{_bindir}/wish* %{_datadir}/%{name}%{majorver} %exclude %{_datadir}/%{name}%{majorver}/tkAppInit.c %{_libdir}/lib%{name}%{majorver}.so %{_libdir}/%{name}%{majorver} %{_mandir}/man1/* %{_mandir}/mann/* %doc README.md changes license.terms %files devel %{_includedir}/* %{_libdir}/lib%{name}.so %{_libdir}/lib%{name}stub%{majorver}.a %{_libdir}/%{name}Config.sh %{_libdir}/pkgconfig/tk.pc %{_mandir}/man3/* %{_datadir}/%{name}%{majorver}/tkAppInit.c %changelog * Tue Jul 12 2022 happy_orange <songnannan@linux.alibaba.com> - 1:8.6.12-1 - Init pcakage from upstream
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2