From: Jakub Bogusz Date: Sat, 15 Mar 2014 17:07:35 +0000 (+0100) Subject: - new X-Git-Tag: auto/th/oc-2.0-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=176b1d3857c44c94cbf33c8077288957211ddcce;p=packages%2Foc.git - new --- 176b1d3857c44c94cbf33c8077288957211ddcce 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@" 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