Blame SPECS/libdap.spec

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