[packages/norm] - new

qboosh qboosh at pld-linux.org
Fri Jul 31 21:49:56 CEST 2015


commit 05c4d3adb7b51973efc8c11aca23b43051acb2b4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jul 31 21:51:32 2015 +0200

    - new

 norm.spec | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 127 insertions(+)
---
diff --git a/norm.spec b/norm.spec
new file mode 100644
index 0000000..29e9e59
--- /dev/null
+++ b/norm.spec
@@ -0,0 +1,127 @@
+#
+# Conditional build:
+%bcond_without	java		# Java binding
+%bcond_without	python		# Python binding
+#
+Summary:	NACK-Oriented Reliable Multicast library
+Summary(pl.UTF-8):	Biblioteka NACK-Oriented Reliable Multicast
+Name:		norm
+Version:	1.5r6
+Release:	1
+License:	BSD
+Group:		Libraries
+Source0:	http://downloads.pf.itd.nrl.navy.mil/norm/src-%{name}-%{version}.tgz
+# Source0-md5:	e9a5c735ce4ec5b8c3597e4706c1e5a9
+URL:		http://www.nrl.navy.mil/itd/ncs/products/norm
+%{?with_java:BuildRequires:	jdk}
+BuildRequires:	libstdc++-devel
+%{?with_python:BuildRequires:	python-devel >= 1:2.5}
+BuildRequires:	waf
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+NACK-Oriented Reliable Multicast library.
+
+%description -l pl.UTF-8
+Biblioteka NACK-Oriented Reliable Multicast.
+
+%package devel
+Summary:	Header files for NORM library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki NORM
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for NORM library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki NORM.
+
+%package -n java-norm
+Summary:	Java JNI bindings for NORM
+Summary(pl.UTF-8):	Wiązania JNI Javy do biblioteki NORM
+Group:		Libraries/Java
+Requires:	%{name} = %{version}-%{release}
+Requires:	jre
+
+%description -n java-norm
+Java JNI bindings for NORM C API.
+
+%description -n java-norm -l pl.UTF-8
+Wiązania JNI Javy do API C biblioteki NORM.
+
+%package -n python-pynorm
+Summary:	PyNORM - Python wrapper for NORM and Extras
+Summary(pl.UTF-8):	PyNORM - interfejs Pythona do biblioteki NORM oraz dodatki
+Group:		Libraries/Python
+Requires:	%{name} = %{version}-%{release}
+
+%description -n python-pynorm
+PyNORM provides a thin wrapper around the NORM C API in the main
+package. It also provides several additional modules in the extra
+package to provide higher level usage of NORM.
+
+%description -n python-pynorm -l pl.UTF-8
+PyNORM udostępnia cienką warstwę obudowującą API C biblioteki NORM w
+głównym pakiecie. Zawiera także kilka dodatkowych modułów w pakiecie
+extra; pozwalają one na wykorzystanie NORM na wyższym poziomie.
+
+%prep
+%setup -q
+
+%build
+%waf configure \
+	--prefix=%{_prefix} \
+	%{?with_java:--build-java} \
+	%{?with_python:--build-python}
+
+%waf
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_includedir}
+
+%waf install \
+	--destdir=$RPM_BUILD_ROOT
+
+cp -p include/*.h $RPM_BUILD_ROOT%{_includedir}
+
+%if %{with java}
+install -D build/norm.jar $RPM_BUILD_ROOT%{_javadir}/norm.jar
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.TXT README.TXT TODO.TXT VERSION.TXT
+%attr(755,root,root) %{_libdir}/libnorm.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libnorm.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%doc NormSocketBindingNotes.txt doc/{NormDeveloperGuide.pdf,NormUserGuide.pdf,npcUsage.pdf}
+%attr(755,root,root) %{_libdir}/libnorm.so
+%{_includedir}/galois.h
+%{_includedir}/norm*.h
+
+%if %{with java}
+%files -n java-norm
+%defattr(644,root,root,755)
+%doc README-Java.txt
+%attr(755,root,root) %{_libdir}/libProtolibJni.so
+%attr(755,root,root) %{_libdir}/libmil_navy_nrl_norm.so
+%{_javadir}/norm.jar
+%endif
+
+%if %{with python}
+%files -n python-pynorm
+%defattr(644,root,root,755)
+%doc README-PyNorm.txt
+%attr(755,root,root) %{py_sitedir}/protokit.so
+%{py_sitescriptdir}/pynorm
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/norm.git/commitdiff/05c4d3adb7b51973efc8c11aca23b43051acb2b4



More information about the pld-cvs-commit mailing list