|
|
@@ -36,7 +36,7 @@ License: GPL
|
|
|
Version: 3.7.1
|
|
|
Release: 20050118
|
|
|
|
|
|
-# package library options (a 'yes' builds both libtiff and libtiff_cxx)
|
|
|
+# package options
|
|
|
%option with_cxx no
|
|
|
|
|
|
# list of sources
|
|
|
@@ -78,7 +78,7 @@ AutoReqProv: no
|
|
|
|
|
|
%build
|
|
|
%if "%{with_cxx}" == "yes"
|
|
|
- # conditionally build libtiff_cxx with C++ streams as user's request
|
|
|
+ # conditionally build libtiff_cxx with C++ streams
|
|
|
CC="%{l_cc}" \
|
|
|
CXX="%{l_cxx}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
@@ -113,9 +113,9 @@ AutoReqProv: no
|
|
|
|
|
|
# unconditionally build libtiff without C++ streams
|
|
|
CC="%{l_cc}" \
|
|
|
- CXX= \
|
|
|
+ CXX="" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
- CXXFLAGS= \
|
|
|
+ CXXFLAGS="" \
|
|
|
CPPFLAGS="%{l_cppflags}" \
|
|
|
LDFLAGS="%{l_ldflags}" \
|
|
|
./configure \
|
|
|
@@ -150,6 +150,7 @@ AutoReqProv: no
|
|
|
mv $base.3tiff $base.3
|
|
|
done
|
|
|
) || exit $?
|
|
|
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|