]> git.pld-linux.org Git - packages/adcd.git/blob - adcd.spec
- up to 0.9
[packages/adcd.git] / adcd.spec
1 Summary:        Text mode CD player for Linux
2 Summary(pl.UTF-8):      Odtwarzacz płyt CD dla Linuksa
3 Name:           adcd
4 Version:        0.9
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/Sound
8 Source0:        http://savannah.nongnu.org/download/adcd/%{name}-%{version}.tar.bz2
9 # Source0-md5:  3915678b9f9d0abbcfa35aff86335d25
10 URL:            http://www.nongnu.org/adcd/adcd.html
11 BuildRequires:  libstdc++-devel
12 BuildRequires:  ncurses-devel
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 Adcd is a text mode CD player for Linux. It features all the functions
17 expected in a compact disc player, including playing selected tracks,
18 random playing, and continuous playing.
19
20 %description -l pl.UTF-8
21 Adcd jest działającym w trybie tekstowym odtwarzaczem płyt CD dla
22 Linuksa. Posiada wszystkie funkcje, jakich można się spodziewać po
23 odtwarzaczu płyt kompaktowych, włączając w to odtwarzanie wybranych
24 bądź losowych ścieżek czy ciągłe odtwarzanie.
25
26 %prep
27 %setup -q
28 # fix ncurses.h path
29 %{__sed} -i -e 's,ncurses.h,ncurses/ncurses.h,g' player.cc
30 # add missing library
31 %{__sed} -i -e '/^#include <vector>$/a#include <cstdlib>' main.cc
32
33 %build
34 # not autoconf-generated
35 ./configure \
36         --prefix=%{_prefix}
37 %{__make} 
38         CXX="%{__cxx}" \
39         CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses" \
40         LDFLAGS="%{rpmldflags} -lncurses"
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} install \
46         prefix="%{_prefix}" \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc ChangeLog README
55 %lang(es) %doc LEEME
56 %attr(755,root,root) %{_bindir}/*
57 %{_mandir}/man1/*
This page took 0.059179 seconds and 3 git commands to generate.