[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Sponsor and review request: opendap, librx

> In my opinion, these problems run much deeper than just packaging.  The
> OPeNDAP software (or at least some key components of it) is, in my
> experience using it, quite sloppy and amateurish.  For example, I've

I don't know about using it but regarding packaging I tried a bit to 
look at openndap to package it and found that it had a lot of 
peculiarities that made it very hard to package. Therefore I was amazed 
and delighted to see that somebody else had commited to package it...

However the upstream team seems to be conscious of these issues. Now
libdap has been separated from all the other stuffs and has become
much easier to package. I attach a patch I have submitted to the
upstream and a spec file for fedora core. It is almost the fedora template
spec file. It works with 

> So, would it be possible to get NCO into Extras without opendap?  For
> instance, would it be OK to declare that NCO, if accepted into Fedora
> Extras, could someday support OPeNDAP when/if someone is able to build a
> sufficiently clean version of opendap-devel?  Is that a reasonable
> solution?

I think that libdap should be packaged. I also think that the servers
are still difficult to package.


Index: Makefile.in
RCS file: /usr/local/cvs-repository/libdap/Makefile.in,v
retrieving revision 1.175
diff -u -3 -p -u -r1.175 Makefile.in
--- Makefile.in	13 May 2005 20:25:31 -0000	1.175
+++ Makefile.in	20 Jun 2005 07:06:37 -0000
@@ -323,34 +323,34 @@ Error.tab.o: Error.tab.c Error.y	# build
 # Standard targets
 install: all install-headers install-getdap install-dap-config install-deflate
-	-mkdir -p $(libdir)
-	$(INSTALL_DATA) libdap++.a $(libdir)/libdap++.a
-	$(RANLIB) $(libdir)/libdap++.a
+	-mkdir -p $(DESTDIR)$(libdir)
+	$(INSTALL_DATA) libdap++.a $(DESTDIR)$(libdir)/libdap++.a
+	$(RANLIB) $(DESTDIR)$(libdir)/libdap++.a
-	-mkdir -p $(includedir)/dap
+	-mkdir -p $(DESTDIR)$(includedir)/dap
 		 debug.h dods-limits.h ; \
-	    do $(INSTALL_DATA) $$h $(includedir)/dap; done
+	    do $(INSTALL_DATA) $$h $(DESTDIR)$(includedir)/dap; done
 install-getdap: getdap
-	-mkdir -p $(bindir)
-	$(INSTALL_PROGRAM) -s getdap $(bindir)
+	-mkdir -p $(DESTDIR)$(bindir)
+	$(INSTALL_PROGRAM) -s getdap $(DESTDIR)$(bindir)
-	-mkdir -p $(bindir)
-	$(INSTALL_PROGRAM) dap-config $(bindir)
+	-mkdir -p $(DESTDIR)$(bindir)
+	$(INSTALL_PROGRAM) dap-config $(DESTDIR)$(bindir)
 # usage and deflate are part of the DODS server. 02/10/98 jhrg
 install-usage: usage
-	-mkdir -p $(sbindir)
-	$(INSTALL_PROGRAM) -s usage $(sbindir)
+	-mkdir -p $(DESTDIR)$(sbindir)
+	$(INSTALL_PROGRAM) -s usage $(DESTDIR)$(sbindir)
 install-deflate: deflate
-	-mkdir -p $(sbindir)
-	$(INSTALL_PROGRAM) -s deflate $(sbindir)
+	-mkdir -p $(DESTDIR)$(sbindir)
+	$(INSTALL_PROGRAM) -s deflate $(DESTDIR)$(sbindir)
 configure: configure.ac acinclude.m4
 	rm -rf autom4te.cache
Name: libdap
Summary: The C++ DAP2 library from OPeNDAP.
Version: 3.5.1
Release: 2

Source0: http://www.opendap.org/pub/%{name}-%{version}.tar.gz
URL: http://www.opendap.org/

Group: Development/Libraries
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: LGPL
# Mandrake
#BuildRequires: libcurl3-devel >= 7.12.0 libxml2-devel >= 2.5.7
# fedora
BuildRequires: curl-devel >= 7.12.0 libxml2-devel >= 2.5.7
Patch: libdap-Makefile.in-DESTDIR.diff

The libdap++ library contains an implementation of DAP2. This package
contains the library, dap-config, getdap and deflate. The script dap-config
simplifies using the library in other projects. The getdap utility is a
simple command-line tool to read from DAP2 servers. It is built using the
library and demonstrates simple uses of it. The deflate utility is used by
the library when it returns compressed responses.

%setup -q

make %{?_smp_mflags}






* Sun Jun 19 2005 Patrice Dumas <dumas centre-cired fr> - 3.5.0-2
- Update with fedora template

* Thu May 12 2005 James Gallagher <jimg comet opendap org> - 3.5.0-1
- Changed Requires xml2 to libxml2

* Wed May 11 2005 James Gallagher <jimg zoey opendap org> 3.5.0-1
- Removed version numbers from .a and includes directory.

* Tue May 10 2005 James Gallagher <jimg zoey opendap org> 
- Mostly works. Problems: Not sure if the %post script stuff works.
- Must also address the RHEL3 package deps issue (curl 7.12.0 isn't available;
  not sure about xml2 2.5.7). At least the deps fail when they are not present!

* Fri May  6 2005 James Gallagher <jimg zoey opendap org> 
- Initial build.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]