aboutsummaryrefslogtreecommitdiff
path: root/mpio.spec.in
blob: a01334795e731bc2d416311d25116a69cd931035 (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
55
# -*- rpm-spec -*-
%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 Büsching <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

%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)
/lib/modules/*/@SPEC_PATH@/mpio.o

%doc COPYING ChangeLog INSTALL NEWS
%doc README TODO

%clean
rm -rf $RPM_BUILD_ROOT