source: spec/trunk/SPECS/libtiff.spec@ 433

Last change on this file since 433 was 417, checked in by Yuri Dario, 12 years ago

specs: png, tiff initial build.

File size: 3.7 KB
Line 
1Summary: Library of functions for manipulating TIFF format image files
2Name: libtiff
3Version: 3.9.5
4Release: 1%{?dist}
5
6License: libtiff
7Group: System Environment/Libraries
8URL: http://www.remotesensing.org/libtiff/
9
10Source: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
11
12Patch0: libtiff-os2.patch
13
14BuildRequires: zlib-devel libjpeg-devel pkgconfig
15#BuildRequires: libtool automake autoconf jbigkit-devel
16
17%description
18The libtiff package contains a library of functions for manipulating
19TIFF (Tagged Image File Format) image format files. TIFF is a widely
20used file format for bitmapped images. TIFF files usually end in the
21.tif extension and they are often quite large.
22
23The libtiff package should be installed if you need to manipulate TIFF
24format image files.
25
26%package devel
27Summary: Development tools for programs which will use the libtiff library
28Group: Development/Libraries
29Requires: %{name}%{?_isa} = %{version}-%{release}
30Requires: pkgconfig%{?_isa}
31
32%description devel
33This package contains the header files and documentation necessary for
34developing programs which will manipulate TIFF format image files
35using the libtiff library.
36
37If you need to develop programs which will manipulate TIFF format
38image files, you should install this package. You'll also need to
39install the libtiff package.
40
41%package static
42Summary: Static TIFF image format file library
43Group: Development/Libraries
44Requires: %{name}-devel%{?_isa} = %{version}-%{release}
45
46%description static
47The libtiff-static package contains the statically linkable version of libtiff.
48Linking to static libraries is discouraged for most applications, but it is
49necessary for some boot packages.
50
51%package tools
52Summary: Command-line utility programs for manipulating TIFF files
53Group: Development/Libraries
54Requires: %{name}%{?_isa} = %{version}-%{release}
55
56%description tools
57This package contains command-line programs for manipulating TIFF format
58image files using the libtiff library.
59
60%package debug
61Summary: HLL debug data for exception handling support.
62
63%description debug
64HLL 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
79export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
80export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
81export LIBS="-lurpo -lmmap -lpthread" ; \
82export CFLAGS="%{optflags} -fno-strict-aliasing"
83%configure
84make %{?_smp_mflags}
85
86%install
87make DESTDIR=$RPM_BUILD_ROOT install
88
89cp -p libtiff/*.dll %{buildroot}%{_libdir}
90cp -p libtiff/.libs/tiff.a %{buildroot}%{_libdir}
91cp -p libtiff/.libs/tiff.lib %{buildroot}%{_libdir}
92cp -p libtiff/.libs/tiff_s.a %{buildroot}%{_libdir}
93
94# remove what we didn't want installed
95rm $RPM_BUILD_ROOT%{_libdir}/*.la
96rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
97
98# no libGL dependency, please
99rm -f $RPM_BUILD_ROOT%{_bindir}/tiffgt
100
101# no sgi2tiff or tiffsv, either
102rm -f $RPM_BUILD_ROOT%{_bindir}/sgi2tiff
103rm -f $RPM_BUILD_ROOT%{_bindir}/tiffsv
104
105rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffgt.1
106rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
107rm -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.
Note: See TracBrowser for help on using the repository browser.