| 1 | Summary: Library of functions for manipulating TIFF format image files
|
|---|
| 2 | Name: libtiff
|
|---|
| 3 | Version: 3.9.5
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 |
|
|---|
| 6 | License: libtiff
|
|---|
| 7 | Group: System Environment/Libraries
|
|---|
| 8 | URL: http://www.remotesensing.org/libtiff/
|
|---|
| 9 |
|
|---|
| 10 | Source: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
|
|---|
| 11 |
|
|---|
| 12 | Patch0: libtiff-os2.patch
|
|---|
| 13 |
|
|---|
| 14 | BuildRequires: zlib-devel libjpeg-devel pkgconfig
|
|---|
| 15 | #BuildRequires: libtool automake autoconf jbigkit-devel
|
|---|
| 16 |
|
|---|
| 17 | %description
|
|---|
| 18 | The libtiff package contains a library of functions for manipulating
|
|---|
| 19 | TIFF (Tagged Image File Format) image format files. TIFF is a widely
|
|---|
| 20 | used file format for bitmapped images. TIFF files usually end in the
|
|---|
| 21 | .tif extension and they are often quite large.
|
|---|
| 22 |
|
|---|
| 23 | The libtiff package should be installed if you need to manipulate TIFF
|
|---|
| 24 | format image files.
|
|---|
| 25 |
|
|---|
| 26 | %package devel
|
|---|
| 27 | Summary: Development tools for programs which will use the libtiff library
|
|---|
| 28 | Group: Development/Libraries
|
|---|
| 29 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 30 | Requires: pkgconfig%{?_isa}
|
|---|
| 31 |
|
|---|
| 32 | %description devel
|
|---|
| 33 | This package contains the header files and documentation necessary for
|
|---|
| 34 | developing programs which will manipulate TIFF format image files
|
|---|
| 35 | using the libtiff library.
|
|---|
| 36 |
|
|---|
| 37 | If you need to develop programs which will manipulate TIFF format
|
|---|
| 38 | image files, you should install this package. You'll also need to
|
|---|
| 39 | install the libtiff package.
|
|---|
| 40 |
|
|---|
| 41 | %package static
|
|---|
| 42 | Summary: Static TIFF image format file library
|
|---|
| 43 | Group: Development/Libraries
|
|---|
| 44 | Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|---|
| 45 |
|
|---|
| 46 | %description static
|
|---|
| 47 | The libtiff-static package contains the statically linkable version of libtiff.
|
|---|
| 48 | Linking to static libraries is discouraged for most applications, but it is
|
|---|
| 49 | necessary for some boot packages.
|
|---|
| 50 |
|
|---|
| 51 | %package tools
|
|---|
| 52 | Summary: Command-line utility programs for manipulating TIFF files
|
|---|
| 53 | Group: Development/Libraries
|
|---|
| 54 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 55 |
|
|---|
| 56 | %description tools
|
|---|
| 57 | This package contains command-line programs for manipulating TIFF format
|
|---|
| 58 | image files using the libtiff library.
|
|---|
| 59 |
|
|---|
| 60 | %package debug
|
|---|
| 61 | Summary: HLL debug data for exception handling support.
|
|---|
| 62 |
|
|---|
| 63 | %description debug
|
|---|
| 64 | HLL debug data for exception handling support.
|
|---|
| 65 |
|
|---|
| 66 | %prep
|
|---|
| 67 | %setup -q -n tiff-%{version}
|
|---|
| 68 | %patch0 -p1
|
|---|
| 69 |
|
|---|
| 70 | # Use build system's libtool.m4, not the one in the package.
|
|---|
| 71 | #rm -f libtool.m4
|
|---|
| 72 | #libtoolize --force --copy
|
|---|
| 73 | #aclocal -I . -I m4
|
|---|
| 74 | #automake --add-missing --copy
|
|---|
| 75 | #autoconf
|
|---|
| 76 | #autoheader
|
|---|
| 77 |
|
|---|
| 78 | %build
|
|---|
| 79 | export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
|
|---|
| 80 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
|
|---|
| 81 | export LIBS="-lurpo -lmmap -lpthread" ; \
|
|---|
| 82 | export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|---|
| 83 | %configure
|
|---|
| 84 | make %{?_smp_mflags}
|
|---|
| 85 |
|
|---|
| 86 | %install
|
|---|
| 87 | make DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 88 |
|
|---|
| 89 | cp -p libtiff/*.dll %{buildroot}%{_libdir}
|
|---|
| 90 | cp -p libtiff/.libs/tiff.a %{buildroot}%{_libdir}
|
|---|
| 91 | cp -p libtiff/.libs/tiff.lib %{buildroot}%{_libdir}
|
|---|
| 92 | cp -p libtiff/.libs/tiff_s.a %{buildroot}%{_libdir}
|
|---|
| 93 |
|
|---|
| 94 | # remove what we didn't want installed
|
|---|
| 95 | rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|---|
| 96 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
|
|---|
| 97 |
|
|---|
| 98 | # no libGL dependency, please
|
|---|
| 99 | rm -f $RPM_BUILD_ROOT%{_bindir}/tiffgt
|
|---|
| 100 |
|
|---|
| 101 | # no sgi2tiff or tiffsv, either
|
|---|
| 102 | rm -f $RPM_BUILD_ROOT%{_bindir}/sgi2tiff
|
|---|
| 103 | rm -f $RPM_BUILD_ROOT%{_bindir}/tiffsv
|
|---|
| 104 |
|
|---|
| 105 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffgt.1
|
|---|
| 106 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
|
|---|
| 107 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffsv.1
|
|---|
| 108 | #rm -f html/man/tiffgt.1.html
|
|---|
| 109 | #rm -f html/man/sgi2tiff.1.html
|
|---|
| 110 | #rm -f html/man/tiffsv.1.html
|
|---|
| 111 |
|
|---|
| 112 |
|
|---|
| 113 | %files
|
|---|
| 114 | %doc COPYRIGHT README RELEASE-DATE VERSION
|
|---|
| 115 | %{_libdir}/tiff.dll
|
|---|
| 116 |
|
|---|
| 117 | %files devel
|
|---|
| 118 | %doc TODO ChangeLog html
|
|---|
| 119 | %{_includedir}/*
|
|---|
| 120 | %{_libdir}/tiff.a
|
|---|
| 121 | %{_libdir}/tiff.lib
|
|---|
| 122 | %{_libdir}/tiffxx.a
|
|---|
| 123 | #%{_libdir}/pkgconfig/libtiff*.pc
|
|---|
| 124 | %{_mandir}/man3/*
|
|---|
| 125 |
|
|---|
| 126 | %files static
|
|---|
| 127 | %{_libdir}/*.a
|
|---|
| 128 |
|
|---|
| 129 | %files tools
|
|---|
| 130 | %{_bindir}/*.exe
|
|---|
| 131 | %{_mandir}/man1/*
|
|---|
| 132 |
|
|---|
| 133 | %files debug
|
|---|
| 134 | %defattr(-,root,root)
|
|---|
| 135 | %{_bindir}/*.dbg
|
|---|
| 136 | %{_libdir}/*.dbg
|
|---|
| 137 |
|
|---|
| 138 | %changelog
|
|---|
| 139 | * Thu Apr 17 2014 yd
|
|---|
| 140 | - first public build.
|
|---|