forked from pool/tkimg
- Update to version 1.4.16 * Several security and stability related changes. * Extended test suite. OBS-URL: https://build.opensuse.org/request/show/1153990 OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/tkimg?expand=0&rev=18
84 lines
2.5 KiB
RPMSpec
84 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package tkimg
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: tkimg
|
|
Version: 1.4.16
|
|
Release: 0
|
|
Summary: More Image Formats for Tk
|
|
Group: Development/Libraries/Tcl
|
|
License: BSD-3-Clause
|
|
URL: https://sourceforge.net/projects/tkimg
|
|
Source0: https://sourceforge.net/projects/tkimg/files/tkimg/1.4/tkimg%%20%{version}/Img-%{version}-Source.tar.gz
|
|
Patch0: tests-add-destdir-tcllibpath.patch
|
|
BuildRequires: dos2unix
|
|
BuildRequires: tcllib
|
|
BuildRequires: tk-devel
|
|
BuildRequires: xvfb-run
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
%description
|
|
This package contains a collection of image format handlers for the Tk
|
|
photo image type, and a new image type, pixmaps.
|
|
|
|
The provided format handlers include bmp, gif, ico, jpeg, pcx, png,
|
|
ppm, ps, sgi, sun, tga, tiff, xbm, and xpm.
|
|
|
|
%package devel
|
|
Summary: Header Files and C API Documentation for tkimg
|
|
Group: Development/Libraries/Tcl
|
|
|
|
%description devel
|
|
Files needed to compile/link C code against tkimg.
|
|
|
|
%prep
|
|
%autosetup -p1 -n Img-%{version}
|
|
# Source archive is likly created on Windows, so fix some issues
|
|
# 1. Fix file permissions: Executable bit is set on every file, fix that
|
|
find . -type f -not -name configure -exec chmod 0644 \{\} +
|
|
# 2. Fix line ending
|
|
dos2unix ANNOUNCE ChangeLog README Reorganization.Notes.txt changes doc/*.htm demo.tcl license.terms base/pkgIndex.tcl.in
|
|
|
|
%build
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
|
%configure \
|
|
--libdir=%tcl_archdir \
|
|
--with-tcl=%_libdir \
|
|
--with-tk=%_libdir
|
|
%make_build
|
|
|
|
%install
|
|
%make_install INSTALL_ROOT=%buildroot
|
|
# Fix file permissions
|
|
chmod a-x %buildroot%tcl_archdir/*/*.a
|
|
|
|
%check
|
|
xvfb-run make test DESTDIR=%buildroot
|
|
|
|
%files
|
|
%doc ANNOUNCE ChangeLog README Reorganization.Notes.txt changes doc/*.htm demo.tcl
|
|
%license license.terms
|
|
%doc %_mandir/*/*
|
|
%tcl_archdir/*
|
|
%exclude %tcl_archdir/*/*.a
|
|
|
|
%files devel
|
|
%_includedir/*
|
|
%tcl_archdir/*/*.a
|
|
|
|
%changelog
|