9ee458ac21e54f80bf1d1a9a7461f0e3c31da1b1
[packages/cdtool.git] / cdtool.spec
1 Summary:        Powerful command line CDROM player and tools.
2 Summary(pl):    Odtwarzacz p³yt CD wywo³any z lini komend
3 Name:           cdtool
4 Version:        2.1.5
5 Release:        1
6 Copyright:      GPL
7 Group:          Utilities/System
8 Group(pl):      Narzêdzia/System
9 Source:         ftp://sunsite.unc.edu/pub/Linux/apps/sound/cdrom/cli/%{name}-%{version}.tar.gz
10 BuildRoot:      /tmp/%{name}-%{version}-root
11
12 %description
13 A package of command-line utilities to play and catalog audio CD-ROMs.  This
14 package includes cdstart, cdpause, cdstop, cdeject, and cdshuffle. Also,
15 cdctrl may be used as a CD-ROM control daemon. Cdown allows querying of the
16 cddb database to build a local database of discs usable by cdinfo, etc.
17
18 %description -l pl
19 Pakiet zawiera odtwarzacz p³yt CD wywo³ywany z lini komend. Korzysta z CDDB.
20
21 %prep
22 %setup -q
23
24 %build
25 make clean noobjs cdown cdadd DEBUG_FLAGS="$RPM_OPT_FLAGS"
26 make cdctrl DEBUG_FLAGS="$RPM_OPT_FLAGS -s -DCDCTRL"
27 make noobjs
28 make cdtool links DEBUG_FLAGS="$RPM_OPT_FLAGS -s"
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32
33 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
34 install cd{ctrl,ir,eject,info,loop,add,own,pause,reset,shuffle,start,stop,tool} \
35         $RPM_BUILD_ROOT%{_bindir}
36 install {cdtool,cdctrl,cdown}.1 $RPM_BUILD_ROOT%{_mandir}/man1
37
38 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdstart.1
39 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdpause.1
40 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdstop.1
41 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdeject.1
42 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdir.1
43 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdinfo.1
44 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdreset.1
45 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdshuffle.1
46
47 gzip -9nf {README,cdtool-2.1.5.lsm,$RPM_BUILD_ROOT%{_mandir}/man1/*}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51 %files
52 %defattr(644,root,root,755)
53 %doc {README,cdtool-2.1.5.lsm}.gz
54 %attr(755,root,root) %{_bindir}/*
55 %{_mandir}/man1/*
This page took 0.064071 seconds and 3 git commands to generate.