aboutsummaryrefslogtreecommitdiff
path: root/mpio.spec.in
blob: fcd5d056a0aa593f36dc1bcfa6f19a2a367559d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%define version @VERSION@
%define release 1
%define name    mpio

Version: %version
Summary: MPIO - providing access to MPIO mp3 players
Name: %name
Release: %release
Copyright: see COPYING
Group: Applications/MultiMedia
Source: http://download.sourceforge.net/mpio/mpio-@VERSION@.tar.gz
Prefix: /usr
Buildroot: /var/tmp/mpio-@VERSION@-buildroot/
Packager: Andreas Bsching <crunchy@tzi.de>

%description
This is a project for using Digitalway/Adtec digital audio player MPIO
(DMG, DMK, DME) under Linux. It provides Linux kernel module driver,
a userspace library and at the moment one tool to access the MPIO player.

%prep
%setup
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix

%build
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install-strip

%post
mkmpiodev
ldconfig
depmod -a

%preun
mkmpiodev -r

%files
%defattr(755,root,root)
%prefix/bin/mpiosh
%prefix/lib/libmpio*
%defattr(700,root,root)
%prefix/sbin/mkmpiodev
%defattr(644,root,root)
@MODULE_PATH@/mpio.o

%doc COPYING ChangeLog INSTALL NEWS
%doc README TODO

%clean
rm -rf $RPM_BUILD_ROOT