[packages/oc] - new

qboosh qboosh at pld-linux.org
Sat Mar 15 18:04:36 CET 2014


commit 176b1d3857c44c94cbf33c8077288957211ddcce
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Mar 15 18:07:35 2014 +0100

    - new

 oc-libdir.patch |  11 ++++++
 oc.spec         | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 121 insertions(+)
---
diff --git a/oc.spec b/oc.spec
new file mode 100644
index 0000000..a1871b5
--- /dev/null
+++ b/oc.spec
@@ -0,0 +1,110 @@
+#
+# Conditional build:
+%bcond_with	tests		# perform tests (requires network)
+#
+Summary:	The OPeNDAP C DAP2 library (client-side only)
+Summary(pl.UTF-8):	Biblioteka OPeNDAP DAP2 dla C (tylko strona kliencka)
+Name:		oc
+Version:	2.0
+Release:	1
+License:	LGPL v2.1+
+Group:		Libraries
+Source0:	http://www.opendap.org/pub/OC/source/%{name}-%{version}.tar.gz
+# Source0-md5:	488963bc74053674da4fc88bc13b6264
+Patch0:		%{name}-libdir.patch
+URL:		http://opendap.org/oc/
+BuildRequires:	autoconf >= 2.62
+BuildRequires:	automake
+BuildRequires:	bison
+BuildRequires:	curl-devel >= 7.16.4
+BuildRequires:	libtool
+BuildRequires:	ncurses-devel
+BuildRequires:	readline-devel
+Requires:	curl >= 7.16.4
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The OPeNDAP C API (OC) provides a set of C-language type definitions
+and functions that can be used to retrieve data over the Internet from
+servers that implement the OPeNDAP Data Access Protocol (DAP). The OC
+implementation provides a low-overhead way to retrieve this data,
+making it practical to include OPeNDAP capability in relatively simple
+software.
+
+%description -l pl.UTF-8
+OPeNDAP C API (OC) zawiera zbiór definicji typów i funkcji języka C
+przeznaczonych do pobierania danych poprzez Internet z serwerów
+implementujących protokół OPeNDAP Data Access Protocol (DAP).
+Implementacja OC daje możliwość pobierania tych danych z małym
+narzutem, czyniąc praktycznym wbudowanie obsługi OPeNDAP w stosunkowo
+proste oprogramowanie.
+
+%package devel
+Summary:	Header files for OC library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki OC
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	curl-devel >= 7.16.4
+
+%description devel
+Header files for OC library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki OC.
+
+%package static
+Summary:	Static OC library
+Summary(pl.UTF-8):	Statyczna biblioteka OC
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static OC library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka OC.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I conf
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%{?with_tests:%{__make} check}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README RELEASE_NOTES
+%attr(755,root,root) %{_bindir}/ocprint
+%attr(755,root,root) %{_libdir}/liboc.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/liboc.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/oc-config
+%attr(755,root,root) %{_libdir}/liboc.so
+%{_libdir}/liboc.la
+%{_includedir}/oc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/liboc.a
diff --git a/oc-libdir.patch b/oc-libdir.patch
new file mode 100644
index 0000000..94cbbae
--- /dev/null
+++ b/oc-libdir.patch
@@ -0,0 +1,11 @@
+--- oc-2.0/oc-config.in.orig	2012-07-05 22:59:14.000000000 +0200
++++ oc-2.0/oc-config.in	2014-03-15 16:23:11.936633008 +0100
+@@ -4,7 +4,7 @@
+ #
+ prefix="@prefix@"
+ exec_prefix=${prefix}
+-libdir=${exec_prefix}/lib
++libdir="@libdir@"
+ includedir=${prefix}/include
+ package_version="@PACKAGE_VERSION@"
+ cc="@CC@"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/oc.git/commitdiff/176b1d3857c44c94cbf33c8077288957211ddcce



More information about the pld-cvs-commit mailing list