Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37889754
en ru br
ALT Linux repos
S:1.4.14-alt1
5.0: 1.3.0-alt5
4.1: 1.3.0-alt5
4.0: 1.3.0-alt5
3.0: 1.3.0-alt2

Group :: Development/Tcl
RPM: tcl-img

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# -*- rpm-spec -*-
# $Id: tcl-img,v 1.7 2004/11/03 16:15:02 me Exp $

%define teaname img
%define snapshot 20040818
%define major 1.3

Name: tcl-%teaname
Version: %major.0
Release: alt2

Summary: Tcl Image Formats (Img)
License: BSD
Group: Development/Tcl
Url: http://purl.oclc.org/net/nijtmans/

Provides: %teaname = %version-%release
Obsoletes: %teaname

%ifdef snapshot
Source0: %name-%snapshot.tar.bz2
%else
Source0: http://download.sourceforge.net/%teaname/%teaname%version.tar.bz2
%endif

Patch0: %name-%snapshot-alt-syslibs.patch
Patch1: %name-%snapshot-alt-tea.patch

BuildRequires: autoconf_2.13 libjpeg-devel libpng3-devel libtiff-devel zlib-devel
BuildRequires: tk-devel >= 8.4.0-alt1 rpm-build >= 4.0.4-alt41

%description
%name is a Tk enhancement, adding support for many other Image formats:
BMP, XBM, XPM, GIF, PNG, JPEG, TIFF, postscript and others.

%prep
%setup -q %{?snapshot:-c}%{!?snapshot:-n %teaname%version}
%patch0 -p0
%patch1 -p0
%set_autoconf_version 2.13
find . -name configure.in |while read f; do
       (cd "${f%/*}" && [ configure.in -nt configure ] && autoconf)
done

%build
%configure
%make_build

%install
%make_install DESTDIR=%buildroot install
for h in jpeg png tiff; do
%__grep -v ^\# %buildroot%_tcldatadir/${h}tcl*/pkgIndex.tcl \
>> %buildroot%_tcldatadir/tkimg${h}%major/pkgIndex.tcl
done
%__rm -rf %buildroot%_tcldatadir/{jpeg,png,tiff}tcl*
# not yet
find %buildroot '(' -path \*%_includedir/\* -o -path \*%_libdir/\*.sh \
-o -path \*%_libdir/\*.a ')' -delete

%files
%doc doc/*
%_tcllibdir/*.so
%_tcldatadir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin