e2cd62b
Name: libdap
e2cd62b
Summary: The C++ DAP2 library from OPeNDAP
Orion Poplawski 187ec50
Version: 3.11.0
Orion Poplawski 187ec50
Release: 1%{?dist}
e2cd62b
e309283
License: LGPLv2+
63c2ce5
Group: Development/Libraries
e2cd62b
URL: http://www.opendap.org/
63c2ce5
Source0: http://www.opendap.org/pub/source/libdap-%{version}.tar.gz
341187c
#Don't run HTTP tests - builders don't have network connections
341187c
Patch2:  libdap-3.10.2-offline.patch
63c2ce5
e2cd62b
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
85c9cc5
390b832
BuildRequires: cppunit-devel
9beb437
BuildRequires: curl-devel
9beb437
BuildRequires: doxygen
9beb437
BuildRequires: graphviz
9beb437
BuildRequires: libuuid-devel
390b832
BuildRequires: libxml2-devel
ba83b20
BuildRequires: pkgconfig
e2cd62b
e2cd62b
# This package could be relocatable. In that case uncomment the following
e2cd62b
# line
e2cd62b
#Prefix: %{_prefix}
e2cd62b
ba83b20
e2cd62b
%description
e2cd62b
The libdap++ library contains an implementation of DAP2. This package
e309283
contains the library, dap-config, and getdap. The script dap-config
e2cd62b
simplifies using the library in other projects. The getdap utility is a
e2cd62b
simple command-line tool to read from DAP2 servers. It is built using the
e309283
library and demonstrates simple uses of it.
e2cd62b
ba83b20
e2cd62b
%package devel
ba83b20
Summary: Development and header files from libdap
e2cd62b
Group: Development/Libraries
e2cd62b
Requires: %{name} = %{version}-%{release}
9beb437
Requires: curl-devel
9beb437
Requires: libxml2-devel
ba83b20
Requires: pkgconfig
b1ecbc0
# for the /usr/share/aclocal directory ownership
b1ecbc0
Requires: automake
b1ecbc0
e2cd62b
%description devel
e2cd62b
This package contains all the files needed to develop applications that
e2cd62b
will use libdap.
e2cd62b
ba83b20
24f804d
%package doc
24f804d
Summary: Documentation of the libdap library
24f804d
Group: Documentation
24f804d
24f804d
%description doc
24f804d
Documentation of the libdap library.
24f804d
ba83b20
e2cd62b
%prep
e2cd62b
%setup -q
341187c
%patch2 -p1 -b .offline
63c2ce5
iconv -f latin1 -t utf8 < COPYRIGHT_W3C > COPYRIGHT_W3C.utf8
12ca1ad
touch -r COPYRIGHT_W3C COPYRIGHT_W3C.utf8
63c2ce5
mv COPYRIGHT_W3C.utf8 COPYRIGHT_W3C
ba83b20
e2cd62b
e2cd62b
%build
ba83b20
%configure --disable-static --disable-dependency-tracking
e2cd62b
make %{?_smp_mflags}
e2cd62b
aed33f6
make docs
aed33f6
ba83b20
e2cd62b
%install
e2cd62b
rm -rf $RPM_BUILD_ROOT
24f804d
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
d9f8e12
rm $RPM_BUILD_ROOT%{_libdir}/*.la
d9f8e12
mv $RPM_BUILD_ROOT%{_bindir}/dap-config-pkgconfig $RPM_BUILD_ROOT%{_bindir}/dap-config
24f804d
63c2ce5
rm -rf __dist_docs
63c2ce5
cp -pr docs __dist_docs
24f804d
# those .map and .md5 are of dubious use, remove them
63c2ce5
rm -f __dist_docs/html/*.map __dist_docs/html/*.md5
ba83b20
# use the ChangeLog timestamp to have the same timestamps for the doc files 
ba83b20
# for all arches
63c2ce5
touch -r ChangeLog __dist_docs/html/*
ba83b20
e2cd62b
390b832
%check
390b832
make check
390b832
e2cd62b
%clean
e2cd62b
rm -rf $RPM_BUILD_ROOT
e2cd62b
ba83b20
e2cd62b
%post -p /sbin/ldconfig
e2cd62b
e2cd62b
%postun -p /sbin/ldconfig
e2cd62b
ba83b20
e2cd62b
%files
e2cd62b
%defattr(-,root,root,-)
e2cd62b
%{_bindir}/getdap
e2cd62b
%{_libdir}/libdap.so.*
efb7322
%{_libdir}/libdapclient.so.*
efb7322
%{_libdir}/libdapserver.so.*
9beb437
%doc README NEWS COPYING COPYRIGHT_URI README.dodsrc
e2cd62b
%doc COPYRIGHT_W3C
e2cd62b
e2cd62b
%files devel
e2cd62b
%defattr(-,root,root,-)
e2cd62b
%{_libdir}/libdap.so
efb7322
%{_libdir}/libdapclient.so
efb7322
%{_libdir}/libdapserver.so
ff8c660
%{_libdir}/pkgconfig/libdap*.pc
e2cd62b
%{_bindir}/dap-config
e2cd62b
%{_includedir}/libdap/
e2cd62b
%{_datadir}/aclocal/*
e2cd62b
24f804d
%files doc
24f804d
%defattr(-,root,root,-)
9beb437
%doc COPYING COPYRIGHT_URI COPYRIGHT_W3C
63c2ce5
%doc __dist_docs/html/
24f804d
ba83b20
e2cd62b
%changelog
Orion Poplawski 187ec50
* Fri Dec 10 2010 Orion Poplawski <orion@cora.nwra.com> - 3.11.0-1
Orion Poplawski 187ec50
- Update to 3.11.0
Orion Poplawski c8f0139
- Drop libuuid patch fixed upstream
Orion Poplawski c8f0139
- Drop soname patch
Orion Poplawski 187ec50
390b832
* Thu Jul 15 2010 Orion Poplawski <orion@cora.nwra.com> - 3.10.2-3
390b832
- Add patch to bump soname as this dropped the AIS* functions
390b832
- Add BR cppunit-devel and %%check section
341187c
- Add patch to not run HTTP network tests
390b832
324eaf9
* Wed Jul 14 2010 Orion Poplawski <orion@cora.nwra.com> - 3.10.2-2
324eaf9
- Add patch to remove -luuid from pkg-config libs
324eaf9
9beb437
* Tue Jul 13 2010 Orion Poplawski <orion@cora.nwra.com> - 3.10.2-1
9beb437
- Update to 3.10.2
e309283
- Deflate is no longer shipped
9beb437
- Drop includes patch fixed upstream
9beb437
- Add license to doc sub-package
9beb437
d858d78
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.3-2
d858d78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d858d78
758872e
* Wed Jul 22 2009 Orion Poplawski <orion@cora.nwra.com> - 3.9.3-1
758872e
- Update to 3.9.3
758872e
1f630ff
* Tue Mar  2 2009 Caolán McNamara <caolanm@redhat.com> - 3.8.2-3
1f630ff
- include cstdio for std::sprintf
1f630ff
451cfae
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-2
451cfae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
451cfae
d9f8e12
* Fri Sep  5 2008 Patrice Dumas <pertusus@free.fr> 3.8.2-1
d9f8e12
- update to 3.8.2
d9f8e12
d9f8e12
* Sun Mar 16 2008 Patrice Dumas <pertusus@free.fr> 3.8.0-1
d9f8e12
- update to 3.8.0
d9f8e12
45eddc9
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.7.10-3
45eddc9
- Autorebuild for GCC 4.3
45eddc9
f2febcc
* Wed Jan  2 2008 Patrice Dumas <pertusus@free.fr> 3.7.10-2
f2febcc
- use pkg-config in dap-config
f2febcc
12ca1ad
* Mon Dec 17 2007 Patrice Dumas <pertusus@free.fr> 3.7.10-1
12ca1ad
- update to 3.7.10
12ca1ad
63c2ce5
* Sun Oct 21 2007 Patrice Dumas <pertusus@free.fr> 3.7.8-3
63c2ce5
- remove reference to libdir in dap-config
63c2ce5
2d18fc6
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 3.7.8-2
2d18fc6
- Rebuild for selinux ppc32 issue.
2d18fc6
4aa4b77
* Thu Jul  5 2007 Patrice Dumas <pertusus@free.fr> 3.7.8-1.1
ff8c660
- update to 3.7.8
ff8c660
2096e19
* Thu May 31 2007 Patrice Dumas <pertusus@free.fr> 3.7.7-1.1
ba83b20
- update to 3.7.7
ba83b20
ba83b20
* Sat May 12 2007 Patrice Dumas <pertusus@free.fr> 3.7.6-4
ba83b20
- remove static libs
ba83b20
- set the same doc file timestamps for all arches
ba83b20
24f804d
* Mon Apr 30 2007 Patrice Dumas <pertusus@free.fr> 3.7.6-3
24f804d
- correct the library install order
24f804d
- keep timestamps
24f804d
- add documentation in a subpackage
24f804d
a9ba7f1
* Mon Apr 30 2007 Patrice Dumas <pertusus@free.fr> 3.7.6-2
d3f4bba
- update to 3.7.6
d3f4bba
b1ecbc0
* Tue Oct 31 2006 Patrice Dumas <pertusus@free.fr> 3.7.2-3
b1ecbc0
- rebuild for new libcurl soname
b1ecbc0
6fbefde
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 3.7.2-2
6fbefde
 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
6fbefde
28238b9
* Tue Sep 19 2006 Patrice Dumas <pertusus@free.fr> 3.7.2-1
28238b9
- update to 3.7.2
28238b9
85c9cc5
* Wed Sep  6 2006 Patrice Dumas <pertusus@free.fr> 3.7.1-1
85c9cc5
- update to 3.7.1
85c9cc5
- set licence to LGPL instead of W3C/LGPL, since only deflate is W3C, so
85c9cc5
  the whole is under the LGPL
85c9cc5
efb7322
* Fri Jul 21 2006 Patrice Dumas <pertusus@free.fr> 3.7.0-1
efb7322
- update to 3.7.0
efb7322
ec998d1
* Mon Feb 27 2006 James Gallagher <jgallagher@opendap.org> - 3.6.0-1
efb7322
- update to 3.6.0
b837841
85c9cc5
* Mon Nov 21 2005 Patrice Dumas <pertusus@free.fr> - 3.5.3-2
e2cd62b
- fix Source0
e2cd62b
85c9cc5
* Tue Aug 30 2005 Patrice Dumas <pertusus@free.fr> - 3.5.2-3
e2cd62b
- Add missing Requires
e2cd62b
85c9cc5
* Sat Jul  2 2005 Patrice Dumas <pertusus@free.fr> - 3.5.1-2
e2cd62b
- Support for shared libraries
e2cd62b
- Add COPYING
e2cd62b
- Update with fedora template
e2cd62b
e2cd62b
* Thu May 12 2005 James Gallagher <jimg@comet.opendap.org> - 3.5.0-1
e2cd62b
- Changed: Requires xml2 to libxml2
e2cd62b
e2cd62b
* Wed May 11 2005 James Gallagher <jimg@zoey.opendap.org> 3.5.0-1
e2cd62b
- Removed version numbers from .a and includes directory.
e2cd62b
e2cd62b
* Tue May 10 2005 James Gallagher <jimg@zoey.opendap.org> 
efb7322
- Mostly works. Problems: Not sure if the %%post script stuff works.
e2cd62b
- Must also address the RHEL3 package deps issue (curl 7.12.0 isn't available;
e2cd62b
  not sure about xml2 2.5.7). At least the deps fail when they are not present!
e2cd62b
e2cd62b
* Fri May  6 2005 James Gallagher <jimg@zoey.opendap.org> 
e2cd62b
- Initial build.