rpms/dap-server/devel dap-server-with_in_configure.patch, NONE, 1.1 dap-server.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Patrice Dumas (pertusus) fedora-extras-commits at redhat.com
Sun Feb 19 22:54:58 UTC 2006


Author: pertusus

Update of /cvs/extras/rpms/dap-server/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9976/devel

Modified Files:
	.cvsignore sources 
Added Files:
	dap-server-with_in_configure.patch dap-server.spec 
Log Message:
auto-import dap-server-3.5.3-1 on branch devel from dap-server-3.5.3-1.src.rpm

dap-server-with_in_configure.patch:

--- NEW FILE dap-server-with_in_configure.patch ---
--- /home/dumas/RPM-fc/BUILD/dap-server-3.5.3/configure	2005-12-21 23:50:03.000000000 +0100
+++ ./configure	2006-02-02 09:00:14.000000000 +0100
@@ -863,9 +863,13 @@
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   --disable-dependency-tracking  speeds up one-time build
   --enable-dependency-tracking   do not reject slow dependency extractors
+  --enable-debug=ARG      Program instrumentation (1,2)
+
+Optional Packages:
+  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
+  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   --with-modulesdir       perl modules dir (default ${datadir}/dap-server)
   --with-cgidir           CGI scripts dir (default ${datadir}/dap-server-cgi)
-  --enable-debug=ARG      Program instrumentation (1,2)
 
 Some influential environment variables:
   CXX         C++ compiler command
@@ -4994,9 +4998,10 @@
 fi
 
 
-# Check whether --enable-modulesdir or --disable-modulesdir was given.
-if test "${enable_modulesdir+set}" = set; then
-  enableval="$enable_modulesdir"
+
+# Check whether --with-modulesdir or --without-modulesdir was given.
+if test "${with_modulesdir+set}" = set; then
+  withval="$with_modulesdir"
 
         dap_modulesdir="$withval"
 
@@ -5009,9 +5014,10 @@
 
 
 
-# Check whether --enable-cgidir or --disable-cgidir was given.
-if test "${enable_cgidir+set}" = set; then
-  enableval="$enable_cgidir"
+
+# Check whether --with-cgidir or --without-cgidir was given.
+if test "${with_cgidir+set}" = set; then
+  withval="$with_cgidir"
 
         dap_cgidir="$withval"
 


--- NEW FILE dap-server.spec ---
%define dap_cachedir     /var/cache/dap-server
%define dap_webconfdir   %{_sysconfdir}/httpd/conf.d
%define dap_cgidir       /var/www/opendap

Summary:         Basic request handling for DAP servers 
Name:            dap-server
Version:         3.5.3
Release:         1
License:         LGPL
Group:           System Environment/Daemons 
Source0:         ftp://ftp.unidata.ucar.edu/pub/opendap/source/%{name}-%{version}.tar.gz
URL:             http://www.opendap.org/
Patch0:          dap-server-with_in_configure.patch

BuildRoot:       %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:   curl libdap-devel
Requires:        curl webserver

%description
This is base software for our workhorse server. Written using the DAP++ C++ 
library and Perl, this handles processing compressed files and arranging for 
the correct server module to process the file. The base software also 
provides support for the ASCII response and HTML data-request form. Use this 
in combination with one or more of the format-specific handlers.

This package contains all the executable and perl modules. The scripts 
and config files that should be installed in a cgi directory are in the 
documentation directory with -sample appended. If you want a package that 
is usable without manual configuration, install %{name}-cgi.

%package cgi
Summary:        A CGI interface for the DAP server
Requires:       %{name} = %{version}-%{release}
Requires:       freeform_handler netcdf_handler hdf_handler
Group:          System Environment/Daemons

%description cgi
A CGI interface for the DAP server that works without manual configuration.

%prep 
%setup -q
%patch

%build
%configure --with-cgidir=%{dap_cgidir}
make %{?_smp_mflags}

# prepend -sample to cgi and config file to install them as doc
cp opendap_apache.conf opendap_apache.conf-sample
cp dap-server.rc dap-server.rc-sample
cp nph-dods nph-dods-sample

# /usr/tmp isn't a safe place, substitute to a dir in 
# /var/cache
sed -e 's:cache_dir /usr/tmp:cache_dir %{dap_cachedir}:' \
   dap-server.rc-sample > dap-server.rc

# cgi-bin dir for the dap-server is in %{ dap_cgidir}, substitute that in
# opendap_apache.conf
sed -e 's:<<prefix>>/share/dap-server-cgi:%{dap_cgidir}:' \
    opendap_apache.conf-sample > opendap_apache.conf

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
install -d -m755 $RPM_BUILD_ROOT/%{dap_cachedir}
install -d -m755 $RPM_BUILD_ROOT/%{dap_webconfdir}
install -m644 opendap_apache.conf $RPM_BUILD_ROOT/%{dap_webconfdir}/opendap_apache.conf

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc COPYING COPYRIGHT_URI EXAMPLE_OPENDAP_STATISTICS NEWS README
# add those as documentation
%doc opendap_apache.conf-sample nph-dods-sample dap-server.rc-sample
%{_bindir}/dap_usage
%{_bindir}/dap_asciival
%{_bindir}/dap_www_int
%{_datadir}/dap-server/
# the webserver must have write access to the cache dir
%attr(-,apache,apache) %{dap_cachedir}

%files cgi
%defattr(-,apache,apache,-)
%config(noreplace) %{dap_webconfdir}/opendap_apache.conf
%dir %{dap_cgidir}
%config(noreplace) %{dap_cgidir}/dap-server.rc
%{dap_cgidir}/nph-dods


%changelog
* Thu Feb  2 2006 Patrice Dumas <dumas at centre-cired.fr> 3.5.3-1
- add a cgi subpackage

* Fri Sep  2 2005 Patrice Dumas <dumas at centre-cired.fr> 3.5.1-1
- initial release


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/dap-server/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	19 Feb 2006 22:53:50 -0000	1.1
+++ .cvsignore	19 Feb 2006 22:54:58 -0000	1.2
@@ -0,0 +1 @@
+dap-server-3.5.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/dap-server/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	19 Feb 2006 22:53:50 -0000	1.1
+++ sources	19 Feb 2006 22:54:58 -0000	1.2
@@ -0,0 +1 @@
+fca821446b18f36f883b85a049d34876  dap-server-3.5.3.tar.gz




More information about the fedora-extras-commits mailing list