SPECS: ogdi.spec - added tcl and odbc conditional builds - rel. 2
wrobell
wrobell at pld-linux.org
Fri Dec 15 12:18:41 CET 2006
Author: wrobell Date: Fri Dec 15 11:18:41 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added tcl and odbc conditional builds
- rel. 2
---- Files affected:
SPECS:
ogdi.spec (1.13 -> 1.14)
---- Diffs:
================================================================
Index: SPECS/ogdi.spec
diff -u SPECS/ogdi.spec:1.13 SPECS/ogdi.spec:1.14
--- SPECS/ogdi.spec:1.13 Mon Aug 1 10:38:43 2005
+++ SPECS/ogdi.spec Fri Dec 15 12:18:36 2006
@@ -1,10 +1,14 @@
# $Revision$, $Date$
# TODO: separate gltpd to -server package, add init script (requires portmap)
+# Conditional build:
+%bcond_without tcl # disable gui and nviz
+%bcond_without odbc # disable unixODBC support
+#
Summary: Open Geographic Datastore Interface
Summary(pl): OGDI - otwarty interfejs do danych geograficznych
Name: ogdi
Version: 3.1.5
-Release: 1
+Release: 2
License: BSD-like
Group: Applications
Source0: http://dl.sourceforge.net/ogdi/%{name}-%{version}.tar.gz
@@ -17,8 +21,8 @@
BuildRequires: autoconf
BuildRequires: expat-devel
BuildRequires: proj-devel
-BuildRequires: tcl-devel
-BuildRequires: unixODBC-devel
+%{?with_tcl:uildRequires: tcl-devel}
+%{?with_odbc:BuildRequires: unixODBC-devel}
BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -96,14 +100,18 @@
%{__make} \
OPTIMIZATION="%{rpmcflags}"
+%if %{with tcl}
%{__make} -C ogdi/tcl_interface \
OPTIMIZATION="%{rpmcflags}" \
TCL_LINKLIB="-ltcl"
+%endif
%{__make} -C contrib/gdal \
OPTIMIZATION="%{rpmcflags}"
+%if %{with odbc}
%{__make} -C ogdi/attr_driver/odbc \
OPTIMIZATION="%{rpmcflags}" \
ODBC_LINKLIB="-lodbc"
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -115,12 +123,16 @@
INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi \
INST_BIN=$RPM_BUILD_ROOT%{_bindir}
+%if %{with tcl}
%{__make} install -C ogdi/tcl_interface \
INST_LIB=$RPM_BUILD_ROOT%{_libdir}
+%endif
%{__make} install -C contrib/gdal \
INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi
+%if %{with odbc}
%{__make} install -C ogdi/attr_driver/odbc \
INST_LIB=$RPM_BUILD_ROOT%{_libdir}/ogdi
+%endif
# only libogdi* is common library, the rest are dlopened drivers
mv -f $RPM_BUILD_ROOT%{_libdir}/ogdi/libogdi*.so $RPM_BUILD_ROOT%{_libdir}
@@ -145,13 +157,17 @@
%doc ogdi.pdf
%{_includedir}/*.h
+%if %{with odbc}
%files odbc
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/ogdi/liblodbc.so
+%endif
+%if %{with tcl}
%files -n tcl-ogdi
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libecs_tcl.so
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -159,6 +175,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.14 2006/12/15 11:18:36 wrobell
+- added tcl and odbc conditional builds
+- rel. 2
+
Revision 1.13 2005/08/01 08:38:43 blekot
- up to 3.1.5
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/ogdi.spec?r1=1.13&r2=1.14&f=u
More information about the pld-cvs-commit
mailing list