82d01d040c96bf3deb2b2286e400f8f973dc825a
[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
26
27 %install
28 rm -rf $RPM_BUILD_ROOT
29
30 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
31 install cdctrl cdloop cdloop cdadd cdown $RPM_BUILD_ROOT%{_bindir}
32 install {cdtool,cdctrl,cdown}.1 $RPM_BUILD_ROOT%{_mandir}/man1
33
34 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdstart.1
35 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdpause.1
36 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdstop.1
37 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdeject.1
38 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdir.1
39 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdinfo.1
40 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdreset.1
41 echo .so cdtool.1 >$RPM_BUILD_ROOT%{_mandir}/man1/cdshuffle.1
42
43 ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdstart
44 ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdpause
45 ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdstop
46 ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdeject
47 ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdir
48 ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdinfo
49 ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdreset
50 ln -sf cdtool $RPM_BUILD_ROOT%{_bindir}/cdshuffle
51
52 gzip -9nf {README,cdtool-2.1.5.lsm,$RPM_BUILD_ROOT%{_mandir}/man1/*}
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56 %files
57 %defattr(644,root,root,755)
58 %doc {README,cdtool-2.1.5.lsm}.gz
59 %attr(755,root,root) %{_bindir}/*
60 %{_mandir}/man1/*
This page took 0.046149 seconds and 3 git commands to generate.