Blame SPECS/libdap.spec

da1b58
Name: libdap
da1b58
Summary: The C++ DAP2 library from OPeNDAP
da1b58
Version: 3.19.1
da1b58
Release: 2%{?dist}
da1b58
da1b58
License: LGPLv2+
da1b58
Group: Development/Libraries
da1b58
URL: http://www.opendap.org/
da1b58
Source0: http://www.opendap.org/pub/source/libdap-%{version}.tar.gz
da1b58
#Don't run HTTP tests - builders don't have network connections
da1b58
Patch0: libdap-offline.patch
da1b58
# Use libtirpc
da1b58
Patch1: libdap-3.19.1-use-libtirpc.patch
da1b58
da1b58
BuildRequires: gcc-c++
da1b58
# For autoreconf
da1b58
BuildRequires: libtool
da1b58
BuildRequires: bison >= 3.0
da1b58
BuildRequires: cppunit-devel
da1b58
BuildRequires: curl-devel
da1b58
BuildRequires: doxygen
da1b58
BuildRequires: flex
da1b58
BuildRequires: graphviz
da1b58
BuildRequires: libtirpc-devel
da1b58
BuildRequires: libuuid-devel
da1b58
BuildRequires: libxml2-devel
da1b58
BuildRequires: openssl-devel
da1b58
BuildRequires: pkgconfig
da1b58
%ifarch %{valgrind_arches}
da1b58
BuildRequires: valgrind
da1b58
%endif
da1b58
da1b58
Provides: bundled(gnulib)
da1b58
da1b58
da1b58
%description
da1b58
The libdap++ library contains an implementation of DAP2. This package
da1b58
contains the library, dap-config, and getdap. The script dap-config
da1b58
simplifies using the library in other projects. The getdap utility is a
da1b58
simple command-line tool to read from DAP2 servers. It is built using the
da1b58
library and demonstrates simple uses of it.
da1b58
da1b58
da1b58
%package devel
da1b58
Summary: Development and header files from libdap
da1b58
Group: Development/Libraries
da1b58
Requires: %{name} = %{version}-%{release}
da1b58
Requires: curl-devel
da1b58
Requires: libxml2-devel
da1b58
Requires: pkgconfig
da1b58
# for the /usr/share/aclocal directory ownership
da1b58
Requires: automake
da1b58
da1b58
%description devel
da1b58
This package contains all the files needed to develop applications that
da1b58
will use libdap.
da1b58
da1b58
da1b58
%package doc
da1b58
Summary: Documentation of the libdap library
da1b58
Group: Documentation
da1b58
da1b58
%description doc
da1b58
Documentation of the libdap library.
da1b58
da1b58
da1b58
%prep
da1b58
%autosetup -n %{name}-%{version} -p1
da1b58
iconv -f latin1 -t utf8 < COPYRIGHT_W3C > COPYRIGHT_W3C.utf8
da1b58
touch -r COPYRIGHT_W3C COPYRIGHT_W3C.utf8
da1b58
mv COPYRIGHT_W3C.utf8 COPYRIGHT_W3C
da1b58
da1b58
da1b58
%build
da1b58
# To fix rpath
da1b58
autoreconf -f -i
da1b58
%configure --disable-static --disable-dependency-tracking
da1b58
# --enable-valgrind - missing valgrind exclusions file
da1b58
%make_build
da1b58
da1b58
make docs
da1b58
da1b58
da1b58
%install
da1b58
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
da1b58
mkdir -p $RPM_BUILD_ROOT%{_libdir}/libdap
da1b58
mv $RPM_BUILD_ROOT%{_libdir}/libtest-types.a $RPM_BUILD_ROOT%{_libdir}/libdap/
da1b58
rm $RPM_BUILD_ROOT%{_libdir}/*.la
da1b58
mv $RPM_BUILD_ROOT%{_bindir}/dap-config-pkgconfig $RPM_BUILD_ROOT%{_bindir}/dap-config
da1b58
da1b58
rm -rf __dist_docs
da1b58
cp -pr html __dist_docs
da1b58
# those .map and .md5 are of dubious use, remove them
da1b58
rm -f __dist_docs/*.map __dist_docs/*.md5
da1b58
# use the ChangeLog timestamp to have the same timestamps for the doc files 
da1b58
# for all arches
da1b58
touch -r ChangeLog __dist_docs/*
da1b58
da1b58
da1b58
%check
da1b58
# tarball is missing some needed files
da1b58
make check || :
da1b58
da1b58
da1b58
%post -p /sbin/ldconfig
da1b58
da1b58
%postun -p /sbin/ldconfig
da1b58
da1b58
da1b58
%files
da1b58
%license COPYRIGHT_W3C COPYING COPYRIGHT_URI
da1b58
%doc README NEWS README.dodsrc
da1b58
%{_bindir}/getdap
da1b58
%{_bindir}/getdap4
da1b58
%{_libdir}/libdap.so.25*
da1b58
%{_libdir}/libdapclient.so.6*
da1b58
%{_libdir}/libdapserver.so.7*
da1b58
%{_mandir}/man1/getdap.1*
da1b58
%{_mandir}/man1/getdap4.1*
da1b58
da1b58
%files devel
da1b58
%{_libdir}/libdap.so
da1b58
%{_libdir}/libdapclient.so
da1b58
%{_libdir}/libdapserver.so
da1b58
%{_libdir}/libdap/
da1b58
%{_libdir}/pkgconfig/libdap*.pc
da1b58
%{_bindir}/dap-config
da1b58
%{_includedir}/libdap/
da1b58
%{_datadir}/aclocal/*
da1b58
%{_mandir}/man1/dap-config.1*
da1b58
da1b58
%files doc
da1b58
%license COPYING COPYRIGHT_URI COPYRIGHT_W3C
da1b58
%doc __dist_docs/
da1b58
da1b58
da1b58
%changelog
da1b58
* Fri Aug  3 2018 Florian Weimer <fweimer@redhat.com> - 3.19.1-2
da1b58
- Honor %%{valgrind_arches}
da1b58
da1b58
* Tue Jun 26 2018 Josef Ridky <jridky@redhat.com> - 3.19.1-1
da1b58
- Update to 3.19.1
da1b58
- Add patch to use libtirpc
da1b58
- Add BR gcc-c++
da1b58
- Resolves: #1580754 - FTBFS in RHEL-8
da1b58
da1b58
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.18.3-5
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
da1b58
da1b58
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.18.3-4
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
da1b58
da1b58
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.18.3-3
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
da1b58
da1b58
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.18.3-2
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
da1b58
da1b58
* Wed Jan 11 2017 Orion Poplawski <orion@cora.nwra.com> - 3.18.3-1
da1b58
- Update to 3.18.3
da1b58
da1b58
* Tue Dec 6 2016 Orion Poplawski <orion@cora.nwra.com> - 3.18.2-1
da1b58
- Update to 3.18.2
da1b58
- Drop getopt and big endian baselines patches applied upstream
da1b58
da1b58
* Fri Aug 26 2016 Dan Horák <dan[at]danny.cz> - 3.18.1-2
da1b58
- Add missing big endian baselines (#1366787)
da1b58
da1b58
* Fri Aug 12 2016 Orion Poplawski <orion@cora.nwra.com> - 3.18.1-1
da1b58
- Update to 3.18.1
da1b58
- Add patch to fix getopt usage again
da1b58
da1b58
* Thu Aug 11 2016 Michal Toman <mtoman@fedoraproject.org> - 3.17.2-2
da1b58
- No valgrind on MIPS
da1b58
da1b58
* Fri Apr 15 2016 Than Ngo <than@redhat.com> - 3.17.2-1
da1b58
- update to 3.17.2
da1b58
da1b58
* Fri Apr 15 2016 Dan Horák <dan[at]danny.cz> - 3.17.1-1
da1b58
- Update to 3.17.1
da1b58
- Switch to github for source archive
da1b58
- Add missing big endian baselines (#1325114)
da1b58
da1b58
* Tue Feb 9 2016 Orion Poplawski <orion@cora.nwra.com> - 3.17.0-1
da1b58
- Update to 3.17.0
da1b58
- Add patch for gcc 6 support
da1b58
da1b58
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.16.0-2
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
da1b58
da1b58
* Thu Jan 14 2016 Orion Poplawski <orion@cora.nwra.com> - 3.16.0-1
da1b58
- Update to 3.16.0
da1b58
da1b58
* Wed Sep 23 2015 Orion Poplawski <orion@cora.nwra.com> - 3.15.1-1
da1b58
- Update to 3.15.1
da1b58
- Drop flex, getopt, and include patches fixed upstream
da1b58
da1b58
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.14.0-5
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
da1b58
da1b58
* Thu Jun 04 2015 Dan Horák <dan[at]danny.cz> - 3.14.0-4
da1b58
- valgrind available only on selected arches
da1b58
da1b58
* Fri Apr 17 2015 Orion Poplawski <orion@cora.nwra.com> - 3.14.0-3
da1b58
- Add patch to add needed includes
da1b58
da1b58
* Fri Apr 17 2015 Orion Poplawski <orion@cora.nwra.com> - 3.14.0-2
da1b58
- Ship libtest-types.a for dependent package tests
da1b58
da1b58
* Thu Apr 16 2015 Orion Poplawski <orion@cora.nwra.com> - 3.14.0-1
da1b58
- Update to 3.14.0
da1b58
- Add patch to fix flex compilation
da1b58
- Add patch to fix getopt usage
da1b58
- Update offline patch for new test
da1b58
da1b58
* Mon Feb 23 2015 Orion Poplawski <orion@cora.nwra.com> - 3.13.3-1
da1b58
- Update to 3.13.3
da1b58
da1b58
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.13.1-3
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
da1b58
da1b58
* Tue Jul 15 2014 Orion Poplawski <orion@cora.nwra.com> - 3.13.1-2
da1b58
- Add patch to fix tests on ppc and arm
da1b58
da1b58
* Wed Jul 9 2014 Orion Poplawski <orion@cora.nwra.com> - 3.13.1-1
da1b58
- Update to 3.13.1
da1b58
- Run autoreconf to fix rpaths
da1b58
da1b58
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.7-3
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
da1b58
da1b58
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.7-2
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
da1b58
da1b58
* Wed May 29 2013 Orion Poplawski <orion@cora.nwra.com> - 3.11.7-1
da1b58
- Update to 3.11.7
da1b58
- Drop gcc47 patch applied upstream
da1b58
- spec cleanup
da1b58
- Add BR openssl-devel
da1b58
da1b58
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.3-3
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
da1b58
da1b58
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.3-2
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
da1b58
da1b58
* Tue May 15 2012 Orion Poplawski <orion@cora.nwra.com> - 3.11.3-1
da1b58
- Update to 3.11.3
da1b58
- Drop curl and test patches applied upstream
da1b58
- Add Provides: bundled(gnulib) (bug 821766)
da1b58
da1b58
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.1-5
da1b58
- Rebuilt for c++ ABI breakage
da1b58
da1b58
* Sat Jan 14 2012 Orion Poplawski <orion@cora.nwra.com> - 3.11.1-4
da1b58
- Add patch to compile with gcc 4.7
da1b58
da1b58
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.1-3
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
da1b58
da1b58
* Wed Dec 28 2011 Orion Poplawski <orion@cora.nwra.com> - 3.11.1-2
da1b58
- Add upstream patch to fix failing test
da1b58
da1b58
* Tue Nov 22 2011 Orion Poplawski <orion@cora.nwra.com> - 3.11.1-1
da1b58
- Update to 3.11.1
da1b58
- Add patch for current libcurl
da1b58
da1b58
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.0-2
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
da1b58
da1b58
* Fri Dec 10 2010 Orion Poplawski <orion@cora.nwra.com> - 3.11.0-1
da1b58
- Update to 3.11.0
da1b58
- Drop libuuid patch fixed upstream
da1b58
- Drop soname patch
da1b58
da1b58
* Thu Jul 15 2010 Orion Poplawski <orion@cora.nwra.com> - 3.10.2-3
da1b58
- Add patch to bump soname as this dropped the AIS* functions
da1b58
- Add BR cppunit-devel and %%check section
da1b58
- Add patch to not run HTTP network tests
da1b58
da1b58
* Wed Jul 14 2010 Orion Poplawski <orion@cora.nwra.com> - 3.10.2-2
da1b58
- Add patch to remove -luuid from pkg-config libs
da1b58
da1b58
* Tue Jul 13 2010 Orion Poplawski <orion@cora.nwra.com> - 3.10.2-1
da1b58
- Update to 3.10.2
da1b58
- Deflate is no longer shipped
da1b58
- Drop includes patch fixed upstream
da1b58
- Add license to doc sub-package
da1b58
da1b58
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.3-2
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
da1b58
da1b58
* Wed Jul 22 2009 Orion Poplawski <orion@cora.nwra.com> - 3.9.3-1
da1b58
- Update to 3.9.3
da1b58
da1b58
* Tue Mar  3 2009 Caolán McNamara <caolanm@redhat.com> - 3.8.2-3
da1b58
- include cstdio for std::sprintf
da1b58
da1b58
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-2
da1b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
da1b58
da1b58
* Fri Sep  5 2008 Patrice Dumas <pertusus@free.fr> 3.8.2-1
da1b58
- update to 3.8.2
da1b58
da1b58
* Sun Mar 16 2008 Patrice Dumas <pertusus@free.fr> 3.8.0-1
da1b58
- update to 3.8.0
da1b58
da1b58
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.7.10-3
da1b58
- Autorebuild for GCC 4.3
da1b58
da1b58
* Wed Jan  2 2008 Patrice Dumas <pertusus@free.fr> 3.7.10-2
da1b58
- use pkg-config in dap-config
da1b58
da1b58
* Mon Dec 17 2007 Patrice Dumas <pertusus@free.fr> 3.7.10-1
da1b58
- update to 3.7.10
da1b58
da1b58
* Sun Oct 21 2007 Patrice Dumas <pertusus@free.fr> 3.7.8-3
da1b58
- remove reference to libdir in dap-config
da1b58
da1b58
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 3.7.8-2
da1b58
- Rebuild for selinux ppc32 issue.
da1b58
da1b58
* Thu Jul  5 2007 Patrice Dumas <pertusus@free.fr> 3.7.8-1.1
da1b58
- update to 3.7.8
da1b58
da1b58
* Thu May 31 2007 Patrice Dumas <pertusus@free.fr> 3.7.7-1.1
da1b58
- update to 3.7.7
da1b58
da1b58
* Sat May 12 2007 Patrice Dumas <pertusus@free.fr> 3.7.6-4
da1b58
- remove static libs
da1b58
- set the same doc file timestamps for all arches
da1b58
da1b58
* Mon Apr 30 2007 Patrice Dumas <pertusus@free.fr> 3.7.6-3
da1b58
- correct the library install order
da1b58
- keep timestamps
da1b58
- add documentation in a subpackage
da1b58
da1b58
* Mon Apr 30 2007 Patrice Dumas <pertusus@free.fr> 3.7.6-2
da1b58
- update to 3.7.6
da1b58
da1b58
* Tue Oct 31 2006 Patrice Dumas <pertusus@free.fr> 3.7.2-3
da1b58
- rebuild for new libcurl soname
da1b58
da1b58
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 3.7.2-2
da1b58
 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
da1b58
da1b58
* Tue Sep 19 2006 Patrice Dumas <pertusus@free.fr> 3.7.2-1
da1b58
- update to 3.7.2
da1b58
da1b58
* Wed Sep  6 2006 Patrice Dumas <pertusus@free.fr> 3.7.1-1
da1b58
- update to 3.7.1
da1b58
- set licence to LGPL instead of W3C/LGPL, since only deflate is W3C, so
da1b58
  the whole is under the LGPL
da1b58
da1b58
* Fri Jul 21 2006 Patrice Dumas <pertusus@free.fr> 3.7.0-1
da1b58
- update to 3.7.0
da1b58
da1b58
* Mon Feb 27 2006 James Gallagher <jgallagher@opendap.org> - 3.6.0-1
da1b58
- update to 3.6.0
da1b58
da1b58
* Mon Nov 21 2005 Patrice Dumas <pertusus@free.fr> - 3.5.3-2
da1b58
- fix Source0
da1b58
da1b58
* Tue Aug 30 2005 Patrice Dumas <pertusus@free.fr> - 3.5.2-3
da1b58
- Add missing Requires
da1b58
da1b58
* Sat Jul  2 2005 Patrice Dumas <pertusus@free.fr> - 3.5.1-2
da1b58
- Support for shared libraries
da1b58
- Add COPYING
da1b58
- Update with fedora template
da1b58
da1b58
* Thu May 12 2005 James Gallagher <jimg@comet.opendap.org> - 3.5.0-1
da1b58
- Changed: Requires xml2 to libxml2
da1b58
da1b58
* Wed May 11 2005 James Gallagher <jimg@zoey.opendap.org> 3.5.0-1
da1b58
- Removed version numbers from .a and includes directory.
da1b58
da1b58
* Tue May 10 2005 James Gallagher <jimg@zoey.opendap.org> 
da1b58
- Mostly works. Problems: Not sure if the %%post script stuff works.
da1b58
- Must also address the RHEL3 package deps issue (curl 7.12.0 isn't available;
da1b58
  not sure about xml2 2.5.7). At least the deps fail when they are not present!
da1b58
da1b58
* Fri May  6 2005 James Gallagher <jimg@zoey.opendap.org> 
da1b58
- Initial build.