Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37516920
en ru br
Репозитории ALT
S:4.4.0-alt4
5.1: 3.9.5-alt1.M50P.1
4.1: 3.8.2-alt2.M41.4
4.0: 3.8.2-alt2
+updates:3.8.2-alt2
3.0: 3.7.2-alt5
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libtiff

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: libtiff
Version: 3.7.2
Release: alt5

Summary: A library of functions for manipulating TIFF format image files
License: BSD-like
Group: System/Libraries
Url: http://www.libtiff.org/

%define srcname tiff-%version
Source: ftp://ftp.remotesensing.org/pub/libtiff/%srcname.tar.bz2

Patch0: libtiff-3.7.2-cvs-20050506-CheckDirCount.patch
Patch1: libtiff-3.7.0beta2-alt-tif_print-size.patch
Patch2: libtiff-3.7.2-alt-soname.patch
Patch3: libtiff-3.7.0beta2-alt-gl-fixes.patch
Patch4: libtiff-3.7.0-alt-configure.patch
Patch5: libtiff-3.7.2-cvs-tiff2ps.patch
Patch6: libtiff-3.7.2-cvs-tiff2pdf.patch

%def_disable static
%def_disable cxx

BuildPreReq: libglut-devel libjpeg-devel xorg-x11-devel zlib-devel

%package utils
Summary: Programs for manipulating TIFF format image files
Group: Graphics
Requires: %name = %version-%release

%package -n tiffgt
Summary: Program for viewing TIFF format image files
Group: Graphics
Requires: %name = %version-%release

%package devel
Summary: Development tools for programs which will use the tiff library
Group: Development/C
Requires: %name = %version-%release

%package devel-static
Summary: Static tiff library
Group: Development/C
Requires: %name-devel = %version-%release

%description
This package contains a library of functions for manipulating
TIFF (Tagged Image File Format) image format files.  TIFF is a widely
used file format for bitmapped images.  TIFF files usually end in the
.tif extension and they are often quite large.

%description utils
This package contains simple client programs for accessing
the tiff functions.

%description -n tiffgt
This package contains tiffgt - a TIFF file display program.

%description devel
This package contains the header files for developing programs which
will manipulate TIFF format image files using the tiff library.

%description devel-static
This package contains static %name library.

%prep
%setup -q -n %srcname
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p0
%patch6 -p0

find -type f -name \*.orig -delete -print
subst 's/\([[:space:]]*\)\((float).*\),$/\1{\2},/' libtiff/uvcode.h

%build
autoreconf -fisv
%configure %{subst_enable static} %{subst_enable cxx}
%make_build X_PRE_LIBS= GLUT_CFLAGS= GLUT_CFLAGS= GLUT_LIBS=-lglut GLU_CFLAGS= GLU_LIBS= GL_CFLAGS= GL_LIBS=
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%make_build -k check}}}

%install
%makeinstall

%define docdir %_docdir/%name-%version
mv %buildroot%_docdir/tiff-%version %buildroot%docdir
bzip2 -9 %buildroot%docdir/ChangeLog

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
%_libdir/%name.so.?*
%dir %docdir
%docdir/[A-Z]*

%files utils
%_bindir/*
%_man1dir/*.*
%exclude %_bindir/tiffgt
%exclude %_man1dir/tiffgt.*

%files -n tiffgt
%_bindir/tiffgt
%_man1dir/tiffgt.*

%files devel
%_libdir/%name.so
%_includedir/*.h*
%_man3dir/*.*
%dir %docdir
%docdir/html

%if_enabled static
%files devel-static
%_libdir/%name.a
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin