1 | Summary: Library of functions for manipulating TIFF format image files
|
---|
2 | Name: libtiff
|
---|
3 | Version: 4.0.9
|
---|
4 | Release: 1%{?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 github https://github.com/bitwiseworks/libtiff-os2 %{version}-os2
|
---|
11 |
|
---|
12 | BuildRequires: zlib-devel libjpeg-devel jbigkit-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 |
|
---|
89 | # no sgi2tiff or tiffsv, either
|
---|
90 | rm -f $RPM_BUILD_ROOT%{_bindir}/sgi2tiff
|
---|
91 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
|
---|
92 | rm -f $RPM_BUILD_ROOT%{_bindir}/tiffsv
|
---|
93 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffsv.1
|
---|
94 |
|
---|
95 | %clean
|
---|
96 | rm -rf $RPM_BUILD_ROOT
|
---|
97 |
|
---|
98 | #post -p /sbin/ldconfig
|
---|
99 |
|
---|
100 | #postun -p /sbin/ldconfig
|
---|
101 |
|
---|
102 | %check
|
---|
103 | # remember to set beginlibpath by hand for now, as dash doesn't do it so far
|
---|
104 | # as soon as it's fixed the below line will work
|
---|
105 | export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/libtiff/.libs
|
---|
106 | make check
|
---|
107 |
|
---|
108 | %files
|
---|
109 | %doc COPYRIGHT README RELEASE-DATE VERSION
|
---|
110 | %{_libdir}/tiff*.dll
|
---|
111 | %exclude %{_libdir}/tiff.dll
|
---|
112 |
|
---|
113 | %files devel
|
---|
114 | %doc TODO ChangeLog html
|
---|
115 | %{_includedir}/*
|
---|
116 | %{_libdir}/tiff*_dll.a
|
---|
117 | %{_libdir}/pkgconfig/libtiff*.pc
|
---|
118 | %{_mandir}/man3/*
|
---|
119 |
|
---|
120 | %files static
|
---|
121 | %{_libdir}/*.a
|
---|
122 | %exclude %{_libdir}/*_dll.a
|
---|
123 |
|
---|
124 | %files tools
|
---|
125 | %{_bindir}/*.exe
|
---|
126 | %{_mandir}/man1/*
|
---|
127 |
|
---|
128 | %changelog
|
---|
129 | * Fri Dec 01 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.9-1
|
---|
130 | - enable jbig encoding
|
---|
131 | - updated source to 4.0.9 version
|
---|
132 |
|
---|
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.
|
---|