ab6d64bd916624e9586d035131f332abaed29b53
[profile/ivi/libtiff.git] / packaging / libtiff.spec
1 Name:       libtiff
2 Summary:    Library of functions for manipulating TIFF format image files
3 Version:    3.9.5
4 Release:    1
5 Group:      System/Libraries
6 License:    libtiff
7 URL:        http://www.libtiff.org/
8 Source0:    ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
11 BuildRequires:  pkgconfig(zlib)
12 BuildRequires:  libjpeg-devel
13
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
25
26 %package devel
27 Summary:    Development tools for programs which will use the libtiff library
28 Group:      Development/Libraries
29 Requires:   %{name} = %{version}-%{release}
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
41
42 %prep
43 %setup -q -n tiff-%{version}
44
45 # >> setup
46 # << setup
47
48 %build
49 # >> build pre
50 export CFLAGS="%{optflags} -fno-strict-aliasing"
51 # << build pre
52
53 %configure --disable-static
54 make %{?jobs:-j%jobs}
55
56 # >> build post
57 # << build post
58 %install
59 rm -rf %{buildroot}
60 # >> install pre
61
62 # << install pre
63 %make_install
64
65 # >> install post
66
67 # remove what we didn't want installed
68 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
69
70 # no libGL dependency, please
71 rm -f $RPM_BUILD_ROOT%{_bindir}/tiffgt
72 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffgt.1
73 rm -f html/man/tiffgt.1.html
74
75 # no sgi2tiff or tiffsv, either
76 rm -f $RPM_BUILD_ROOT%{_bindir}/sgi2tiff
77 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
78 rm -f html/man/sgi2tiff.1.html
79 rm -f $RPM_BUILD_ROOT%{_bindir}/tiffsv
80 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffsv.1
81 rm -f html/man/tiffsv.1.html
82
83 # don't include documentation Makefiles, they are a multilib hazard
84 find html -name 'Makefile*' | xargs rm
85
86 # << install post
87
88
89
90 %post -p /sbin/ldconfig
91
92 %postun -p /sbin/ldconfig
93
94
95
96
97
98 %files
99 %defattr(-,root,root,-)
100 # >> files
101 %defattr(-,root,root,0755)
102 %doc COPYRIGHT README RELEASE-DATE VERSION
103 %{_bindir}/*
104 %{_libdir}/libtiff.so.*
105 %{_libdir}/libtiffxx.so.*
106 %doc %{_mandir}/man1/*
107 # << files
108
109
110 %files devel
111 %defattr(-,root,root,-)
112 # >> files devel
113 %defattr(-,root,root,0755)
114 %doc TODO ChangeLog html
115 %{_includedir}/*
116 %{_libdir}/libtiff.so
117 %{_libdir}/libtiffxx.so
118 %doc %{_mandir}/man3/*
119 # << files devel
120