SPECS: unionfs.spec - pl, kernel/userspace bconds

qboosh qboosh at pld-linux.org
Sun Jul 17 22:20:04 CEST 2005


Author: qboosh                       Date: Sun Jul 17 20:20:04 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- pl, kernel/userspace bconds

---- Files affected:
SPECS:
   unionfs.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/unionfs.spec
diff -u SPECS/unionfs.spec:1.2 SPECS/unionfs.spec:1.3
--- SPECS/unionfs.spec:1.2	Sun Jul 17 20:13:42 2005
+++ SPECS/unionfs.spec	Sun Jul 17 22:19:59 2005
@@ -1,9 +1,14 @@
+# $Revision$, $Date$
+#
 # Conditional build:
+%bcond_without	kernel		# don't build kernel modules
+%bcond_without	userspace	# don't build userspace utilities
 %bcond_without	dist_kernel	# without distribution kernel
 %bcond_without	smp		# don't build SMP module
 %bcond_with	verbose		# verbose build (V=1)
 #
 Summary:	A Stackable Unification File System
+Summary(pl):	Stakowalny, unifikujący system plików
 Name:		unionfs
 Version:	1.0.12a
 %define         _rel    0.1
@@ -20,14 +25,25 @@
 %description
 Unionfs is a stackable unification file system, which can appear to
 merge the contents of several directories (branches), while keeping
-their physical content separate.  Unionfs is useful for unified source
+their physical content separate. Unionfs is useful for unified source
 tree management, merged contents of split CD-ROM, merged separate
-software package directories, data grids, and more.  Unionfs allows
+software package directories, data grids, and more. Unionfs allows
 any mix of read-only and read-write branches, as well as insertion and
 deletion of branches anywhere in the fan-out.
 
+%description -l pl
+Unionfs to stakowalny, unifikujący system plików, potrafiący łączyć
+zawartość kilku katalogów (gałęzi), zachowując oddzielnie ich fizyczną
+zawartość. Unionfs jest przydatny do zarządzania połączonym drzewem
+źródeł, połączoną zawartością podzielonych CD-ROM-ów, połączonymi
+oddzielnymi katalogami z pakietami programów, tabelami danych itp.
+Unionfs pozwala na dowolne mieszanie gałęzi tylko do odczytu oraz do
+odczytu i zapisu, a także wstawianie i usuwanie gałęzi w dowolnym
+miejscu.
+
 %package -n kernel-unionfs
 Summary:	Linux driver for unionfs
+Summary(pl):	Sterownik Linuksa dla unionfs
 Release:	%{_rel}@%{_kernel_ver_str}
 Group:		Base/Kernel
 %{?with_dist_kernel:%requires_releq_kernel_up}
@@ -35,10 +51,14 @@
 Provides:	kernel-unionfs = %{version}-%{_rel}@%{_kernel_ver_str}
 
 %description -n kernel-unionfs
-Linux driver for unionfs
+Linux driver for unionfs.
+
+%description -n kernel-unionfs -l pl
+Sterownik Linuksa dla unionfs.
 
 %package -n kernel-smp-unionfs
 Summary:	Linux SMP driver for unionfs
+Summary(pl):	Sterownik Linuksa SMP dla unionfs
 Release:	%{_rel}@%{_kernel_ver_str}
 Group:		Base/Kernel
 %{?with_dist_kernel:%requires_releq_kernel_smp}
@@ -46,12 +66,16 @@
 Provides:	kernel-unionfs = %{version}-%{_rel}@%{_kernel_ver_str}
 
 %description -n kernel-smp-unionfs
-Linux SMP driver unionfs
+Linux SMP driver unionfs.
+
+%description -n kernel-smp-unionfs -l pl
+Sterownik Linuksa SMP dla unionfs.
 
 %prep
 %setup -q
 
 %build
+%if %{with kernel}
 for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
 	if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
 		exit 1
@@ -71,10 +95,12 @@
 		%{?with_verbose:V=1}
 	mv unionfs{,-$cfg}.ko
 done
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+%if %{with kernel}
 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/kernel/fs
 install unionfs-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
 	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/fs/unionfs.ko
@@ -82,10 +108,13 @@
 install unionfs-smp.ko \
 	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/fs/unionfs.ko
 %endif
+%endif
 
+%if %{with userspace}
 %{__make} install-utils \
 	PREFIX=$RPM_BUILD_ROOT/usr \
 	MANDIR=$RPM_BUILD_ROOT%{_mandir}
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -102,12 +131,15 @@
 %postun -n kernel-smp-unionfs
 %depmod %{_kernel_ver}smp
 
+%if %{with userspace}
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS INSTALL README
 %attr(755,root,root) %{_sbindir}/*
 %{_mandir}/man?/*
+%endif
 
+%if %{with kernel}
 %files -n kernel-unionfs
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}/kernel/fs/*.ko*
@@ -117,6 +149,7 @@
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}smp/kernel/fs/*.ko*
 %endif
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -124,9 +157,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2005/07/17 20:19:59  qboosh
+- pl, kernel/userspace bconds
+
 Revision 1.2  2005/07/17 18:13:42  areq
 - fix md5
 
 Revision 1.1  2005/07/17 15:24:59  areq
 - raw PLD spec
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/unionfs.spec?r1=1.2&r2=1.3&f=u




More information about the pld-cvs-commit mailing list