]> git.pld-linux.org Git - packages/cdemu.git/commitdiff
- pl, some standard kernel/userspace bcond stuff
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 26 Apr 2004 17:24:07 +0000 (17:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cdemu.spec -> 1.2

cdemu.spec

index 0235df277345576d0ae3fc93bfe5c9356a131348..d99b7506e50fd50a02d449b4e4bdd9109f7993ae 100644 (file)
@@ -1,6 +1,12 @@
 # TODO:
 #      - finish, kernel modules subpackages etc
+#
+# Conditional build:
+%bcond_without kernel          # don't build kernel modules
+%bcond_without userspace       # don't build userspace tools
+#
 Summary:       Simulate a CD drive + CD with just simple cue/bin files
+Summary(pl):   Symulacja napêdu CD z p³ytk± przy u¿yciu plików cue/bin
 Name:          cdemu
 Version:       0.6
 Release:       1
@@ -9,6 +15,9 @@ Group:         Applications/System
 Source0:       http://www.reviewedinfo.org/howtos/cdrecording/%{name}-%{version}_beta.tar.bz2
 # Source0-md5: 1d58ee3989c0772d670732b1b10501c2
 URL:           http://cdemu.sourceforge.net/
+%if %{with kernel}
+%{?with_dist_kernel:BuildRequires:     kernel-module-build}
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -20,10 +29,20 @@ of an bin/cue. However, for watching an SVCD, we would recommend
 MPlayer which can play bin/cue images directly with the patch a friend
 and I made for it (more under History).
 
+%description -l pl
+CDemu to modu³ j±dra Linuksa. Zosta³ zaprojektowany do symulowania
+napêdu CD z p³ytk± przy u¿yciu plików cue/bin, które s± do¶æ popularne
+w ¶wiecie windowsowym. Zawiera program dzia³aj±cy w przestrzeni
+u¿ytkownika s³u¿±cy do kontroli pracy modu³u. Mo¿na u¿ywaæ go do
+ogl±dania SVCD lub montowania ¶cie¿ek danych z bin/cue. Mimo to
+autorzy do ogl±dania SVCD polecaj± raczej MPlayera ze swoj± ³atk±,
+który mo¿e odtwarzaæ obrazy bin/cur bezpo¶rednio.
+
 %prep
 %setup -q -n %{name}-%{version}_beta
 
 %build
+%if %{with kernel}
 ln -sf %{_kernelsrcdir}/config-up .config
 install -d include/{linux,config}
 ln -sf %{_kernelsrcdir}/include/linux/autoconf-up.h include/linux/autoconf.h
@@ -33,17 +52,22 @@ touch include/config/MARKER
         SUBDIRS=$PWD \
         O=$PWD \
         V=1
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+%if %{with userspace}
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%if %{with userspace}
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog TODO
 %attr(755,root,root) %{_bindir}/*
+%endif
This page took 0.118407 seconds and 4 git commands to generate.