| 1 | Summary: Library of functions for manipulating TIFF format image files
|
|---|
| 2 | Name: libtiff
|
|---|
| 3 | Version: 4.0.7
|
|---|
| 4 | Release: 3%{?dist}
|
|---|
| 5 | License: libtiff
|
|---|
| 6 | Group: System Environment/Libraries
|
|---|
| 7 | URL: http://www.simplesystems.org/libtiff/
|
|---|
| 8 |
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 | %scm_source svn http://svn.netlabs.org/repos/ports/libtiff/trunk 1989
|
|---|
| 11 |
|
|---|
| 12 | BuildRequires: zlib-devel libjpeg-devel
|
|---|
| 13 | BuildRequires: libtool automake autoconf pkgconfig
|
|---|
| 14 |
|
|---|
| 15 | %description
|
|---|
| 16 | The libtiff package contains a library of functions for manipulating
|
|---|
| 17 | TIFF (Tagged Image File Format) image format files. TIFF is a widely
|
|---|
| 18 | used file format for bitmapped images. TIFF files usually end in the
|
|---|
| 19 | .tif extension and they are often quite large.
|
|---|
| 20 |
|
|---|
| 21 | The libtiff package should be installed if you need to manipulate TIFF
|
|---|
| 22 | format image files.
|
|---|
| 23 |
|
|---|
| 24 | %package devel
|
|---|
| 25 | Summary: Development tools for programs which will use the libtiff library
|
|---|
| 26 | Group: Development/Libraries
|
|---|
| 27 | Requires: %{name} = %{version}-%{release}
|
|---|
| 28 | Requires: pkgconfig
|
|---|
| 29 | Obsoletes: %{name}-legacy-devel
|
|---|
| 30 |
|
|---|
| 31 | %description devel
|
|---|
| 32 | This package contains the header files and documentation necessary for
|
|---|
| 33 | developing programs which will manipulate TIFF format image files
|
|---|
| 34 | using the libtiff library.
|
|---|
| 35 |
|
|---|
| 36 | If you need to develop programs which will manipulate TIFF format
|
|---|
| 37 | image files, you should install this package. You'll also need to
|
|---|
| 38 | install the libtiff package.
|
|---|
| 39 |
|
|---|
| 40 | %package static
|
|---|
| 41 | Summary: Static TIFF image format file library
|
|---|
| 42 | Group: Development/Libraries
|
|---|
| 43 | Requires: %{name}-devel = %{version}-%{release}
|
|---|
| 44 | Obsoletes: %{name}-legacy-static
|
|---|
| 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} = %{version}-%{release}
|
|---|
| 55 | Obsoletes: %{name}-legacy-tools
|
|---|
| 56 |
|
|---|
| 57 | %description tools
|
|---|
| 58 | This package contains command-line programs for manipulating TIFF format
|
|---|
| 59 | image files using the libtiff library.
|
|---|
| 60 |
|
|---|
| 61 | %legacy_runtime_packages
|
|---|
| 62 |
|
|---|
| 63 | %debug_package
|
|---|
| 64 |
|
|---|
| 65 | %prep
|
|---|
| 66 | %scm_setup
|
|---|
| 67 |
|
|---|
| 68 | # Use build system's libtool.m4, not the one in the package.
|
|---|
| 69 | autogen.sh
|
|---|
| 70 |
|
|---|
| 71 | %build
|
|---|
| 72 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 73 | export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|---|
| 74 | export VENDOR="%{vendor}"
|
|---|
| 75 | %configure
|
|---|
| 76 | make %{?_smp_mflags}
|
|---|
| 77 |
|
|---|
| 78 | %install
|
|---|
| 79 | make DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 80 |
|
|---|
| 81 | # remove what we didn't want installed
|
|---|
| 82 | rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|---|
| 83 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
|
|---|
| 84 |
|
|---|
| 85 | # no libGL dependency, please
|
|---|
| 86 | rm -f $RPM_BUILD_ROOT%{_bindir}/tiffgt
|
|---|
| 87 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffgt.1
|
|---|
| 88 | rm -f html/man/tiffgt.1.html
|
|---|
| 89 |
|
|---|
| 90 | # no sgi2tiff or tiffsv, either
|
|---|
| 91 | rm -f $RPM_BUILD_ROOT%{_bindir}/sgi2tiff
|
|---|
| 92 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
|
|---|
| 93 | rm -f html/man/sgi2tiff.1.html
|
|---|
| 94 | rm -f $RPM_BUILD_ROOT%{_bindir}/tiffsv
|
|---|
| 95 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffsv.1
|
|---|
| 96 | rm -f html/man/tiffsv.1.html
|
|---|
| 97 |
|
|---|
| 98 | %clean
|
|---|
| 99 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 100 |
|
|---|
| 101 | #post -p /sbin/ldconfig
|
|---|
| 102 |
|
|---|
| 103 | #postun -p /sbin/ldconfig
|
|---|
| 104 |
|
|---|
| 105 | %check
|
|---|
| 106 | #LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH make check
|
|---|
| 107 |
|
|---|
| 108 | %files
|
|---|
| 109 | %defattr(-,root,root,0755)
|
|---|
| 110 | %doc COPYRIGHT README RELEASE-DATE VERSION
|
|---|
| 111 | %{_libdir}/tiff*.dll
|
|---|
| 112 | %exclude %{_libdir}/tiff.dll
|
|---|
| 113 |
|
|---|
| 114 | %files devel
|
|---|
| 115 | %defattr(-,root,root,0755)
|
|---|
| 116 | %doc TODO ChangeLog html
|
|---|
| 117 | %{_includedir}/*
|
|---|
| 118 | %{_libdir}/tiff*_dll.a
|
|---|
| 119 | %{_libdir}/pkgconfig/libtiff-4.pc
|
|---|
| 120 | %{_mandir}/man3/*
|
|---|
| 121 |
|
|---|
| 122 | %files static
|
|---|
| 123 | %defattr(-,root,root,0755)
|
|---|
| 124 | %{_libdir}/*.a
|
|---|
| 125 | %exclude %{_libdir}/*_dll.a
|
|---|
| 126 |
|
|---|
| 127 | %files tools
|
|---|
| 128 | %defattr(-,root,root,0755)
|
|---|
| 129 | %{_bindir}/*.exe
|
|---|
| 130 | %{_mandir}/man1/*
|
|---|
| 131 |
|
|---|
| 132 | %changelog
|
|---|
| 133 | * Wed Feb 15 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.7-3
|
|---|
| 134 | - obsolete devel, static and tools legacy rpm
|
|---|
| 135 |
|
|---|
| 136 | * Tue Feb 14 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.7-2
|
|---|
| 137 | - rebuild with changed legacy_runtime_packages macro
|
|---|
| 138 |
|
|---|
| 139 | * Wed Feb 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.7-1
|
|---|
| 140 | - updated source to 4.0.7 version
|
|---|
| 141 | - join legazy package to the main with our new macro
|
|---|
| 142 | - use the new scm_source and scm_setup macros
|
|---|
| 143 | - add bldlevel info to the dll
|
|---|
| 144 |
|
|---|
| 145 | * Wed Jan 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.6-1
|
|---|
| 146 | - updated source to 4.0.6 version
|
|---|
| 147 | - adjusted debug package creation to latest rpm macros
|
|---|
| 148 |
|
|---|
| 149 | * Thu Apr 17 2014 yd
|
|---|
| 150 | - first public build.
|
|---|