Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
windows:mingw:win64
mingw64-tk
mingw64-tk.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw64-tk.spec of Package mingw64-tk
# # spec file for package mingw64-tk # # Copyright (c) 2014 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/ # %define majorver1 8 %define majorver2 6 %define majorver %{majorver1}.%{majorver2} %define vers %{majorver}.12 %define name1 tk Name: mingw64-%{name1} Version: %{vers} Release: 0 Summary: Graphical User Interface Toolkit for Tcl License: TCL Group: Development/Languages Url: http://tcl.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/tcl/%{name1}%{version}-src.tar.gz Source1000: %{name}-rpmlintrc Patch4: tk-8.5.9-mingww64.patch #!BuildIgnore: post-build-checks BuildRequires: autoconf BuildRequires: file BuildRequires: m4 BuildRequires: mingw64-cross-gcc BuildRequires: mingw64-tcl-devel BuildRequires: net-tools %_mingw64_package_header_debug BuildArch: noarch %description Tk is a graphical user interface toolkit that takes developing desktop applications to a higher level than conventional approaches. Tk is the standard GUI not only for Tcl, but for many other dynamic languages, and can produce rich, native applications that run unchanged across Windows, Mac OS X, Linux and more. %package devel Summary: Header Files and import libraries for Tk License: BSD-3-Clause Group: Development/Libraries/Tcl %description devel This package contains header files and import libraries needed for writing Tk extensions in compiled languages like C, C++, etc., or for embedding Tk in programs written in such languages. This package is not needed for writing extensions or applications for Tk in the Tcl language itself. %_mingw64_debug_package %prep %autosetup -p1 -n %{name1}%{version} %build pushd win autoconf %{_mingw64_configure} --with-tcl=%{_mingw64_libdir} # builds fail sometimes with %{?_smp_mflags}, so don't use make TCL_LIBRARY=%{_mingw64_datadir}/%{name1}%{majorver} popd %install make install -C win INSTALL_ROOT=%{buildroot} TK_LIBRARY=%{_mingw64_datadir}/%{name1}%{majorver} cp %{buildroot}%{_mingw64_bindir}/wish%{majorver1}%{majorver2}.exe %{buildroot}%{_mingw64_bindir}/wish.exe # for linking with -lib%{name1} cp %{buildroot}%{_mingw64_libdir}/lib%{name1}%{majorver1}%{majorver2}.dll.a %{buildroot}%{_mingw64_libdir}/lib%{name1}.dll.a mkdir -p %{buildroot}/%{_mingw64_libdir}/%{name1}%{majorver} mkdir -p %{buildroot}/%{_mingw64_includedir}/%{name1}-private/{generic,win} find generic win -name "*.h" -exec cp -p '{}' %{buildroot}/%{_mingw64_includedir}/%{name1}-private/'{}' ';' ( cd %{buildroot}/%{_mingw64_includedir} for i in *.h ; do [ -f %{buildroot}/%{_mingw64_includedir}/%{name1}-private/generic/$i ] && ln -sf ../../$i %{buildroot}/%{_mingw64_includedir}/%{name1}-private/generic ; done ) || true # fix executable bits chmod a-x %{buildroot}/%{_mingw64_libdir}/*/pkgIndex.tcl # remove buildroot traces sed -i -e "s|$PWD/win|%{_mingw64_libdir}|" %{buildroot}/%{_mingw64_libdir}/%{name1}Config.sh sed -i -e "s|$PWD|%{_mingw64_includedir}/%{name1}-private|" %{buildroot}/%{_mingw64_libdir}/%{name1}Config.sh sed -i -e "s|lib%{name1}%{majorver1}%{majorver2}\.a|lib%{name1}%{majorver1}%{majorver2}\.dll\.a|" %{buildroot}/%{_mingw64_libdir}/%{name1}Config.sh rm -rf %{buildroot}/%{_mingw64_datadir}/%{name1}%{majorver}/tclAppInit.c rm -rf %{buildroot}/%{_mingw64_datadir}/%{name1}%{majorver}/ldAix %files %defattr(-,root,root,-) %{_mingw64_bindir}/wish* %{_mingw64_bindir}/%{name1}%{majorver1}%{majorver2}.dll %{_mingw64_libdir}/%{name1}%{majorver}/ %{_mingw64_datadir}/%{name1}%{majorver1}.%{majorver2} %files devel %defattr(-,root,root,-) %{_mingw64_libdir}/lib%{name1}%{majorver1}%{majorver2}.dll.a %{_mingw64_libdir}/lib%{name1}stub%{majorver1}%{majorver2}.a %{_mingw64_libdir}/lib%{name1}.dll.a %{_mingw64_libdir}/%{name1}Config.sh %{_mingw64_includedir}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor