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

Last change on this file since 811 was 643, checked in by Silvan Scherrer, 10 years ago

spec: update libtiff to the right svn rev

File size: 4.1 KB
Line 
1Summary: Library of functions for manipulating TIFF format image files
2Name: libtiff
3Version: 4.0.6
4Release: 1%{?dist}
5
6License: libtiff
7Group: System Environment/Libraries
8URL: http://www.remotesensing.org/libtiff/
9Vendor: 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
15Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
16
17BuildRequires: zlib-devel libjpeg-devel pkgconfig
18BuildRequires: 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.
22Requires: libtiff-legacy
23
24%description
25The libtiff package contains a library of functions for manipulating
26TIFF (Tagged Image File Format) image format files. TIFF is a widely
27used file format for bitmapped images. TIFF files usually end in the
28.tif extension and they are often quite large.
29
30The libtiff package should be installed if you need to manipulate TIFF
31format image files.
32
33%package devel
34Summary: Development tools for programs which will use the libtiff library
35Group: Development/Libraries
36Requires: %{name} = %{version}-%{release}
37Requires: pkgconfig
38
39%description devel
40This package contains the header files and documentation necessary for
41developing programs which will manipulate TIFF format image files
42using the libtiff library.
43
44If you need to develop programs which will manipulate TIFF format
45image files, you should install this package. You'll also need to
46install the libtiff package.
47
48%package static
49Summary: Static TIFF image format file library
50Group: Development/Libraries
51Requires: %{name}-devel = %{version}-%{release}
52
53%description static
54The libtiff-static package contains the statically linkable version of libtiff.
55Linking to static libraries is discouraged for most applications, but it is
56necessary for some boot packages.
57
58%package tools
59Summary: Command-line utility programs for manipulating TIFF files
60Group: Development/Libraries
61Requires: %{name} = %{version}-%{release}
62
63%description tools
64This package contains command-line programs for manipulating TIFF format
65image 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
74svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
75rm -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.
80autogen.sh
81
82%build
83export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
84export CFLAGS="%{optflags} -fno-strict-aliasing"
85%configure
86make %{?_smp_mflags}
87
88%install
89rm -rf $RPM_BUILD_ROOT
90
91make DESTDIR=$RPM_BUILD_ROOT install
92
93# remove what we didn't want installed
94rm $RPM_BUILD_ROOT%{_libdir}/*.la
95rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
96
97# no libGL dependency, please
98rm -f $RPM_BUILD_ROOT%{_bindir}/tiffgt
99rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffgt.1
100rm -f html/man/tiffgt.1.html
101
102# no sgi2tiff or tiffsv, either
103rm -f $RPM_BUILD_ROOT%{_bindir}/sgi2tiff
104rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
105rm -f html/man/sgi2tiff.1.html
106rm -f $RPM_BUILD_ROOT%{_bindir}/tiffsv
107rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffsv.1
108rm -f html/man/tiffsv.1.html
109
110
111%clean
112rm -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.
Note: See TracBrowser for help on using the repository browser.