]> git.pld-linux.org Git - packages/crossmingw32-libtiff.git/blob - crossmingw32-libtiff.spec
3a3c22c7266f092f1e0bd8b20b3c5b51d8bfff4a
[packages/crossmingw32-libtiff.git] / crossmingw32-libtiff.spec
1 #
2 # Conditional build:
3 %bcond_without opengl # do not build OpenGL viewer
4 #
5 Summary:        Library for handling TIFF files - cross Mingw32 version
6 Summary(de.UTF-8):Library zum Verwalten von TIFF-Dateien
7 Summary(fr.UTF-8):Bibliothèque de gestion des fichiers TIFF - wersja skrośna Mingw32
8 Summary(pl.UTF-8):Bibliteka do manipulacji plikami w formacie TIFF
9 Summary(tr.UTF-8):TIFF dosyalarını işleme kitaplığı
10 %define         _realname   libtiff
11 Name:           crossmingw32-%{_realname}
12 Version:        3.8.2
13 Release:        1
14 License:        BSD-like
15 Group:          Libraries
16 Source0:        ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
17 # Source0-md5:  fbb6f446ea4ed18955e2714934e5b698
18 Patch0:         %{_realname}-sec.patch
19 URL:            http://www.remotesensing.org/libtiff/
20 %{?with_opengl:BuildRequires:  OpenGL-glut-devel}
21 BuildRequires:  autoconf >= 2.59
22 BuildRequires:  automake
23 BuildRequires:  crossmingw32-libjpeg
24 BuildRequires:  crossmingw32-zlib
25 BuildRequires:  libtool
26 BuildRoot:      %{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
45 This package is a library of functions that manipulate TIFF images.
46
47 %description -l de.UTF-8
48 Eine Library von Funktionen zur Manipulation von TIFFs.
49
50 %description -l fr.UTF-8
51 Bibliothèque de fonctions pour manipuler des images TIFF.
52
53 %description -l pl.UTF-8
54 Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w
55 formacie TIFF.
56
57 %description -l tr.UTF-8
58 Bu paket TIFF resimlerini işleyen fonksiyonlardan oluşan bir
59 kitaplıktır.
60
61 %package cxx
62 Summary:        libtiff C++ streams library
63 Summary(pl.UTF-8):Biblioteka strumieni C++ dla libtiff
64 Group:          Libraries
65 Requires:       %{name} = %{version}-%{release}
66
67 %description cxx
68 libtiff C++ streams library.
69
70 %description cxx -l pl.UTF-8
71 Biblioteka strumieni C++ dla libtiff.
72
73 %prep
74 %setup -q -n tiff-%{version}
75
76 %patch0 -p1
77
78 rm -f m4/{libtool,lt*}.m4
79
80 %build
81 export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig
82 %{__libtoolize}
83 %{__aclocal} -I m4
84 %{__autoconf}
85 %{__autoheader}
86 %{__automake}
87 %configure \
88         --target=%{target} \
89         --host=%{target} \
90         --enable-static
91 %{__sed} -i -e 's/^deplibs_check_method=.*/deplibs_check_method="pass_all"/' libtool
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_bindir},%{_mandir}/man1}
97
98 %{__make} install \
99         DESTDIR=$RPM_BUILD_ROOT
100
101 rm -rf html{,/*}/Makefile* $RPM_BUILD_ROOT%{_docdir}/tiff-%{version}
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %files
107 %defattr(644,root,root,755)
108 %doc COPYRIGHT ChangeLog README TODO
109 %{_libdir}/libtiff.la
110 %{_libdir}/libtiff*.a
111 %{_bindir}/*.dll
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.054594 seconds and 3 git commands to generate.