]> git.pld-linux.org Git - packages/crossmingw32-libtiff.git/blame - crossmingw32-libtiff.spec
- initial based on libtiff.spec
[packages/crossmingw32-libtiff.git] / crossmingw32-libtiff.spec
CommitLineData
aaf747bd 1#
2# Conditional build:
3%bcond_without opengl # do not build OpenGL viewer
4#
5Summary: Library for handling TIFF files - cross Mingw32 version
6Summary(de.UTF-8):Library zum Verwalten von TIFF-Dateien
7Summary(fr.UTF-8):Bibliothèque de gestion des fichiers TIFF - wersja skrośna Mingw32
8Summary(pl.UTF-8):Bibliteka do manipulacji plikami w formacie TIFF
9Summary(tr.UTF-8):TIFF dosyalarını işleme kitaplığı
10%define _realname libtiff
11Name: crossmingw32-%{_realname}
12Version: 3.8.2
13Release: 1
14License: BSD-like
15Group: Libraries
16Source0: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
17# Source0-md5: fbb6f446ea4ed18955e2714934e5b698
18Patch0: %{_realname}-sec.patch
19URL: http://www.remotesensing.org/libtiff/
20%{?with_opengl:BuildRequires: OpenGL-glut-devel}
21BuildRequires: autoconf >= 2.59
22BuildRequires: automake
23BuildRequires: crossmingw32-libjpeg
24BuildRequires: crossmingw32-zlib
25BuildRequires: libtool
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%define _noautoreqdep libGL.so.1 libGLU.so.1
29
30%define no_install_post_strip 1
31
32%define target i386-mingw32
33%define target_platform i386-pc-mingw32
34%define arch %{_prefix}/%{target}
35%define gccarch %{_prefix}/lib/gcc-lib/%{target}
36%define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version}
37
38%define _sysprefix /usr
39%define _prefix %{_sysprefix}/%{target}
40%define _pkgconfigdir %{_prefix}/lib/pkgconfig
41%define __cc %{target}-gcc
42%define __cxx %{target}-g++
43
44%description
45This package is a library of functions that manipulate TIFF images.
46
47%description -l de.UTF-8
48Eine Library von Funktionen zur Manipulation von TIFFs.
49
50%description -l fr.UTF-8
51Bibliothèque de fonctions pour manipuler des images TIFF.
52
53%description -l pl.UTF-8
54Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w
55formacie TIFF.
56
57%description -l tr.UTF-8
58Bu paket TIFF resimlerini işleyen fonksiyonlardan oluşan bir
59kitaplıktır.
60
61%package cxx
62Summary: libtiff C++ streams library
63Summary(pl.UTF-8):Biblioteka strumieni C++ dla libtiff
64Group: Libraries
65Requires: %{name} = %{version}-%{release}
66
67%description cxx
68libtiff C++ streams library.
69
70%description cxx -l pl.UTF-8
71Biblioteka strumieni C++ dla libtiff.
72
73%prep
74%setup -q -n tiff-%{version}
75
76%patch0 -p1
77
78rm -f m4/{libtool,lt*}.m4
79
80%build
81export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig
82%{__libtoolize}
83%{__aclocal} -I m4
84%{__autoconf}
85%{__autoheader}
86%{__automake}
87%configure \
88 AR="%{target}-ar" \
89 RANLIB="%{target}-ranlib" \
90 --target=%{target} \
91 --host=%{target}
92
93%{__make}
94
95%install
96rm -rf $RPM_BUILD_ROOT
97install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_bindir},%{_mandir}/man1}
98
99%{__make} install \
100 DESTDIR=$RPM_BUILD_ROOT
101
102rm -rf html{,/*}/Makefile* $RPM_BUILD_ROOT%{_docdir}/tiff-%{version}
103
104%clean
105rm -rf $RPM_BUILD_ROOT
106
107%files
108%defattr(644,root,root,755)
109%doc COPYRIGHT ChangeLog README TODO
110%{_libdir}/libtiff.la
111%{_libdir}/libtiff.a
112%{_includedir}/tiff*.h
113
114%files cxx
115%defattr(644,root,root,755)
116%{_libdir}/libtiffxx.la
117%{_libdir}/libtiffxx.a
118%{_includedir}/tiffio.hxx
This page took 0.060431 seconds and 4 git commands to generate.