[packages/spl] - new

qboosh qboosh at pld-linux.org
Sun Sep 15 10:00:18 CEST 2013

commit 465ece3e5033f114c9120436e04cab348af5505c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Sep 15 10:00:21 2013 +0200

    - new

 spl.spec | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 113 insertions(+)
diff --git a/spl.spec b/spl.spec
new file mode 100644
index 0000000..d66f083
--- /dev/null
+++ b/spl.spec
@@ -0,0 +1,113 @@
+# Conditional build:
+%bcond_without	dist_kernel	# allow non-distribution kernel
+%bcond_without	kernel		# don't build kernel modules
+%bcond_without	userspace	# don't build userspace programs
+%bcond_with	verbose		# verbose build (V=1)
+%if %{without kernel}
+%undefine	with_dist_kernel
+%if "%{_alt_kernel}" != "%{nil}"
+%undefine	with_userspace
+%if %{without userspace}
+# nothing to be placed to debuginfo package
+%define		_enable_debug_packages	0
+Summary:	Solaris Porting Layer
+Summary(pl.UTF-8):	Solaris Porting Layer - warstwa do portowania kodu z Solarisa
+%define	pname	spl
+Name:		%{pname}%{_alt_kernel}
+Version:	0.6.2
+%define	rel	1
+Release:	%{rel}
+License:	GPL v2+
+Group:		Applications/System
+Source0:	http://archive.zfsonlinux.org/downloads/zfsonlinux/spl/%{name}-%{version}.tar.gz
+# Source0-md5:	f00535bf89a7fde0e08f44a14a1f1e03
+URL:		http://zfsonlinux.org/
+%if %{with kernel}
+%{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:}
+BuildRequires:	rpmbuild(macros) >= 1.379
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Solaris Porting Layer.
+%description -l pl.UTF-8
+Solaris Porting Layer - warstwa do portowania kodu z Solarisa.
+%package -n kernel%{_alt_kernel}-spl
+Summary:	Solaris Porting Layer - Linux kernel modules
+Summary(pl.UTF-8):	Solaris Porting Layer - moduły jądra Linuksa
+Release:	%{rel}@%{_kernel_ver_str}
+Group:		Base/Kernel
+Requires(post,postun):	/sbin/depmod
+%if %{with dist_kernel}
+Requires(postun):	%releq_kernel
+%description -n kernel%{_alt_kernel}-spl
+Solaris Porting Layer - Linux kernel modules.
+%description -n kernel%{_alt_kernel}-spl -l pl.UTF-8
+Solaris Porting Layer - moduły jądra Linuksa.
+%package -n kernel%{_alt_kernel}-spl-devel
+Summary:	Solaris Porting Layer - Linux kernel headers
+Summary(pl.UTF-8):	Solaris Porting Layer - pliki nagłówkowe jądra Linuksa
+Group:		Development/Building
+%{?with_dist_kernel:Requires:	kernel%{_alt_kernel}-headers}
+%description -n kernel%{_alt_kernel}-spl-devel
+Solaris Porting Layer - Linux kernel headers configured for PLD
+kernel%{_alt_kernel}, version %{_kernel_ver}.
+%description -n kernel%{_alt_kernel}-spl-devel -l pl.UTF-8
+Solaris Porting Layer - pliki nagłówkowe jądra Linuksa skonfigurowane
+dla jądra PLD z pakietu kernel%{_alt_kernel} w wersji %{_kernel_ver}.
+%setup -q
+%configure \
+	--disable-silent-rules \
+	--with-config="%{?with_kernel:%{?with_userspace:all}}%{!?with_kernel:user}%{!?with_userspace:kernel}" \
+	--with-linux=%{_kernelsrcdir}
+%{__make} install \
+%if %{with userspace}
+%attr(755,root,root) %{_sbindir}/splat
+%if %{with kernel}
+%files -n kernel%{_alt_kernel}-spl
+%dir /lib/modules/%{_kernel_ver}/misc/spl
+%dir /lib/modules/%{_kernel_ver}/misc/splat
+%files -n kernel%{_alt_kernel}-spl-devel

---- gitweb:


More information about the pld-cvs-commit mailing list