| 1 | Summary: Library of functions for manipulating TIFF format image files
|
|---|
| 2 | Name: libtiff
|
|---|
| 3 | Version: 4.0.6
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 |
|
|---|
| 6 | License: libtiff
|
|---|
| 7 | Group: System Environment/Libraries
|
|---|
| 8 | URL: http://www.remotesensing.org/libtiff/
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 |
|
|---|
| 11 | #define svn_url e:/trees/libtiff/trunk
|
|---|
| 12 | %define svn_url http://svn.netlabs.org/repos/ports/libtiff/trunk
|
|---|
| 13 | %define svn_rev 1251
|
|---|
| 14 |
|
|---|
| 15 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
|---|
| 16 |
|
|---|
| 17 | BuildRequires: zlib-devel libjpeg-devel pkgconfig
|
|---|
| 18 | BuildRequires: libtool automake autoconf
|
|---|
| 19 |
|
|---|
| 20 | # @todo Temporary enforce dependency on the legacy package
|
|---|
| 21 | # to have it installed. This should be dropped at some point.
|
|---|
| 22 | Requires: libtiff-legacy
|
|---|
| 23 |
|
|---|
| 24 | %description
|
|---|
| 25 | The libtiff package contains a library of functions for manipulating
|
|---|
| 26 | TIFF (Tagged Image File Format) image format files. TIFF is a widely
|
|---|
| 27 | used file format for bitmapped images. TIFF files usually end in the
|
|---|
| 28 | .tif extension and they are often quite large.
|
|---|
| 29 |
|
|---|
| 30 | The libtiff package should be installed if you need to manipulate TIFF
|
|---|
| 31 | format image files.
|
|---|
| 32 |
|
|---|
| 33 | %package devel
|
|---|
| 34 | Summary: Development tools for programs which will use the libtiff library
|
|---|
| 35 | Group: Development/Libraries
|
|---|
| 36 | Requires: %{name} = %{version}-%{release}
|
|---|
| 37 | Requires: pkgconfig
|
|---|
| 38 |
|
|---|
| 39 | %description devel
|
|---|
| 40 | This package contains the header files and documentation necessary for
|
|---|
| 41 | developing programs which will manipulate TIFF format image files
|
|---|
| 42 | using the libtiff library.
|
|---|
| 43 |
|
|---|
| 44 | If you need to develop programs which will manipulate TIFF format
|
|---|
| 45 | image files, you should install this package. You'll also need to
|
|---|
| 46 | install the libtiff package.
|
|---|
| 47 |
|
|---|
| 48 | %package static
|
|---|
| 49 | Summary: Static TIFF image format file library
|
|---|
| 50 | Group: Development/Libraries
|
|---|
| 51 | Requires: %{name}-devel = %{version}-%{release}
|
|---|
| 52 |
|
|---|
| 53 | %description static
|
|---|
| 54 | The libtiff-static package contains the statically linkable version of libtiff.
|
|---|
| 55 | Linking to static libraries is discouraged for most applications, but it is
|
|---|
| 56 | necessary for some boot packages.
|
|---|
| 57 |
|
|---|
| 58 | %package tools
|
|---|
| 59 | Summary: Command-line utility programs for manipulating TIFF files
|
|---|
| 60 | Group: Development/Libraries
|
|---|
| 61 | Requires: %{name} = %{version}-%{release}
|
|---|
| 62 |
|
|---|
| 63 | %description tools
|
|---|
| 64 | This package contains command-line programs for manipulating TIFF format
|
|---|
| 65 | image files using the libtiff library.
|
|---|
| 66 |
|
|---|
| 67 | %debug_package
|
|---|
| 68 |
|
|---|
| 69 | %prep
|
|---|
| 70 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{?!svn_rev):0}
|
|---|
| 71 | %setup -q
|
|---|
| 72 | %else
|
|---|
| 73 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 74 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
|---|
| 75 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
|---|
| 76 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
|---|
| 77 | %endif
|
|---|
| 78 |
|
|---|
| 79 | # Use build system's libtool.m4, not the one in the package.
|
|---|
| 80 | autogen.sh
|
|---|
| 81 |
|
|---|
| 82 | %build
|
|---|
| 83 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 84 | export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|---|
| 85 | %configure
|
|---|
| 86 | make %{?_smp_mflags}
|
|---|
| 87 |
|
|---|
| 88 | %install
|
|---|
| 89 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 90 |
|
|---|
| 91 | make DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 92 |
|
|---|
| 93 | # remove what we didn't want installed
|
|---|
| 94 | rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|---|
| 95 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
|
|---|
| 96 |
|
|---|
| 97 | # no libGL dependency, please
|
|---|
| 98 | rm -f $RPM_BUILD_ROOT%{_bindir}/tiffgt
|
|---|
| 99 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffgt.1
|
|---|
| 100 | rm -f html/man/tiffgt.1.html
|
|---|
| 101 |
|
|---|
| 102 | # no sgi2tiff or tiffsv, either
|
|---|
| 103 | rm -f $RPM_BUILD_ROOT%{_bindir}/sgi2tiff
|
|---|
| 104 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
|
|---|
| 105 | rm -f html/man/sgi2tiff.1.html
|
|---|
| 106 | rm -f $RPM_BUILD_ROOT%{_bindir}/tiffsv
|
|---|
| 107 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffsv.1
|
|---|
| 108 | rm -f html/man/tiffsv.1.html
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 | %clean
|
|---|
| 112 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 113 |
|
|---|
| 114 |
|
|---|
| 115 | %files
|
|---|
| 116 | %defattr(-,root,root,0755)
|
|---|
| 117 | %doc COPYRIGHT README RELEASE-DATE VERSION
|
|---|
| 118 | %{_libdir}/tiff*.dll
|
|---|
| 119 |
|
|---|
| 120 | %files devel
|
|---|
| 121 | %defattr(-,root,root,0755)
|
|---|
| 122 | %doc TODO ChangeLog html
|
|---|
| 123 | %{_includedir}/*
|
|---|
| 124 | %{_libdir}/tiff*_dll.a
|
|---|
| 125 | %{_libdir}/tiffxx*_dll.a
|
|---|
| 126 | %{_libdir}/pkgconfig/libtiff-4.pc
|
|---|
| 127 | %{_mandir}/man3/*
|
|---|
| 128 |
|
|---|
| 129 | %files static
|
|---|
| 130 | %defattr(-,root,root,0755)
|
|---|
| 131 | %{_libdir}/*.a
|
|---|
| 132 |
|
|---|
| 133 | %files tools
|
|---|
| 134 | %defattr(-,root,root,0755)
|
|---|
| 135 | %{_bindir}/*.exe
|
|---|
| 136 | %{_mandir}/man1/*
|
|---|
| 137 |
|
|---|
| 138 | %changelog
|
|---|
| 139 | * Wed Jan 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.6-1
|
|---|
| 140 | - updated source to 4.0.6 version
|
|---|
| 141 | - adjusted debug package creation to latest rpm macros
|
|---|
| 142 |
|
|---|
| 143 | * Thu Apr 17 2014 yd
|
|---|
| 144 | - first public build.
|
|---|