source: spec/trunk/SPECS/libtiff-legacy.spec@ 1036

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

specs: add a legacy libtiff due to name change in v4

File size: 4.5 KB
Line 
1Summary: Library of functions for manipulating TIFF format image files
2Name: libtiff-legacy
3Version: 3.9.5
4Release: 2%{?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 675
14
15Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
16
17BuildRequires: zlib-devel libjpeg-devel pkgconfig
18#BuildRequires: libtool automake autoconf
19Obsoletes: libtiff <= 3.9.5
20
21%description
22The libtiff package contains a library of functions for manipulating
23TIFF (Tagged Image File Format) image format files. TIFF is a widely
24used file format for bitmapped images. TIFF files usually end in the
25.tif extension and they are often quite large.
26
27The libtiff package should be installed if you need to manipulate TIFF
28format image files.
29
30%package devel
31Summary: Development tools for programs which will use the libtiff library
32Group: Development/Libraries
33Requires: %{name} = %{version}-%{release}
34Requires: pkgconfig
35Obsoletes: libtiff-devel <= 3.9.5
36
37%description devel
38This package contains the header files and documentation necessary for
39developing programs which will manipulate TIFF format image files
40using the libtiff library.
41
42If you need to develop programs which will manipulate TIFF format
43image files, you should install this package. You'll also need to
44install the libtiff package.
45
46%package static
47Summary: Static TIFF image format file library
48Group: Development/Libraries
49Requires: %{name}-devel = %{version}-%{release}
50Obsoletes: libtiff-static <= 3.9.5
51
52%description static
53The libtiff-static package contains the statically linkable version of libtiff.
54Linking to static libraries is discouraged for most applications, but it is
55necessary for some boot packages.
56
57%package tools
58Summary: Command-line utility programs for manipulating TIFF files
59Group: Development/Libraries
60Requires: %{name} = %{version}-%{release}
61Obsoletes: libtiff-tools <= 3.9.5
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.
80#autogen.sh
81
82%build
83export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
84export CFLAGS="%{optflags} -fno-strict-aliasing"
85%configure --enable-cxx=no PATH=`cmd.exe /c "echo %PATH%" | sed -e 's@\\\\@/@g'` PATH_SEPARATOR=';' \
86 CC=gcc CXX=g++ AWK=gawk LIBEXT="LIB" OBJEXT=o RM=rm.exe PERL=perl.exe \
87 AR=ar.exe RANLIB=echo ac_cv_path_STRIP='echo ' ac_cv_emxos2='yes' \
88 ac_cv_libext='lib' ac_executable_extensions=".exe" ac_cpp=g++.exe
89
90
91make %{?_smp_mflags}
92
93%install
94rm -rf $RPM_BUILD_ROOT
95
96make DESTDIR=$RPM_BUILD_ROOT install
97
98cp -p libtiff/*.dll %{buildroot}%{_libdir}
99cp -p libtiff/.libs/tiff.a %{buildroot}%{_libdir}
100cp -p libtiff/.libs/tiff.lib %{buildroot}%{_libdir}
101cp -p libtiff/.libs/tiff_s.a %{buildroot}%{_libdir}
102
103# remove what we didn't want installed
104rm $RPM_BUILD_ROOT%{_libdir}/*.la
105rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
106
107# no libGL dependency, please
108rm -f $RPM_BUILD_ROOT%{_bindir}/tiffgt
109rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffgt.1
110rm -f html/man/tiffgt.1.html
111
112# no sgi2tiff or tiffsv, either
113rm -f $RPM_BUILD_ROOT%{_bindir}/sgi2tiff
114rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
115rm -f html/man/sgi2tiff.1.html
116rm -f $RPM_BUILD_ROOT%{_bindir}/tiffsv
117rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffsv.1
118rm -f html/man/tiffsv.1.html
119
120
121%clean
122rm -rf $RPM_BUILD_ROOT
123
124
125%files
126%defattr(-,root,root,0755)
127%doc COPYRIGHT README RELEASE-DATE VERSION
128%{_libdir}/tiff*.dll
129
130%files devel
131%defattr(-,root,root,0755)
132%doc TODO ChangeLog html
133%{_includedir}/*
134%{_libdir}/tiff.a
135%{_libdir}/tiff.lib
136#%{_libdir}/tiffxx.a
137%{_mandir}/man3/*
138
139%files static
140%defattr(-,root,root,0755)
141%{_libdir}/*.a
142
143%files tools
144%defattr(-,root,root,0755)
145%{_bindir}/*.exe
146%{_mandir}/man1/*
147
148%changelog
149* Wed Jan 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 3.9.5-2
150- adjusted debug package creation to latest rpm macros
151- done as legacy package, as new libtiff differs in dll name
152
153* Thu Apr 17 2014 yd
154- first public build.
Note: See TracBrowser for help on using the repository browser.