- added using $RPM_OPT_FLAGS,
[packages/cdtool.git] / cdtool.spec
index 82d01d0..9ee458a 100644 (file)
@@ -22,13 +22,17 @@ Pakiet zawiera odtwarzacz p
 %setup -q
 
 %build
-make
+make clean noobjs cdown cdadd DEBUG_FLAGS="$RPM_OPT_FLAGS"
+make cdctrl DEBUG_FLAGS="$RPM_OPT_FLAGS -s -DCDCTRL"
+make noobjs
+make cdtool links DEBUG_FLAGS="$RPM_OPT_FLAGS -s"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-install cdctrl cdloop cdloop cdadd cdown $RPM_BUILD_ROOT%{_bindir}
+install cd{ctrl,ir,eject,info,loop,add,own,pause,reset,shuffle,start,stop,tool} \
+       $RPM_BUILD_ROOT%{_bindir}
 install {cdtool,cdctrl,cdown}.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdstart.1
@@ -40,15 +44,6 @@ echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdinfo.1
 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdreset.1
 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdshuffle.1
 
-ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdstart
-ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdpause
-ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdstop
-ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdeject
-ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdir
-ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdinfo
-ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdreset
-ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdshuffle
-
 gzip -9nf {README,cdtool-2.1.5.lsm,$RPM_BUILD_ROOT%{_mandir}/man1/*}
 
 %clean
This page took 0.05926 seconds and 4 git commands to generate.