]>
Commit | Line | Data |
---|---|---|
e3bce59e JB |
1 | # TODO: Linux 2.6 port of drivers (some work started somewhere by vapier?) |
2 | Summary: Linux drivers for Creative Labs DXR2 devices | |
3 | Summary(pl.UTF-8): Sterowniki linuksowe do urządzeń Creative Labs DXR2 | |
4 | Name: dxr2-driver | |
5 | Version: 1.0.4 | |
5da6f89d | 6 | Release: 4 |
e3bce59e JB |
7 | License: GPL v2+ |
8 | Group: Libraries | |
9 | Source0: http://downloads.sourceforge.net/dxr2/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: d31c9513bf1e6901ab459f08c2c14424 | |
11 | # from dxr2install-0.5 | |
12 | Patch0: %{name}-subtitles.patch | |
13 | URL: http://dxr2.sourceforge.net/ | |
14 | BuildRequires: libdvdread-devel | |
15 | BuildRequires: ncurses-devel | |
16 | BuildRequires: xorg-lib-libX11-devel | |
17 | BuildRequires: xorg-lib-libXext-devel | |
18 | BuildRequires: xorg-lib-libXmu-devel | |
19 | BuildRequires: xorg-lib-libXxf86vm-devel | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | # needs on external print_info() function | |
23 | %define skip_post_check_so libdxr2css.so.* | |
24 | ||
25 | %description | |
26 | Linux drivers for Creative Labs DXR2 devices. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Sterowniki linuksowe do urządzeń Creative Labs DXR2. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for Creative Labs DXR2 devices | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe dla urządzeń Creative Labs DXR2 | |
34 | Group: Development/Libraries | |
35 | ||
36 | %description devel | |
37 | Header files for Creative Labs DXR2 devices. | |
38 | ||
39 | %description devel -l pl.UTF-8 | |
40 | Pliki nagłówkowe dla urządzeń Creative Labs DXR2. | |
41 | ||
42 | %package -n dxr2-player | |
43 | Summary: DXR2-powered DVD player | |
44 | Summary(pl.UTF-8): Odtwarzacz DVD dla kart DXR2 | |
45 | Group: Applications/Multimedia | |
46 | ||
47 | %description -n dxr2-player | |
48 | DXR2-powered DVD player. | |
49 | ||
50 | %description -n dxr2-player -l pl.UTF-8 | |
51 | Odtwarzacz DVD dla kart DXR2. | |
52 | ||
53 | %prep | |
54 | %setup -q -n %{name} | |
55 | %patch0 -p1 | |
56 | ||
57 | %build | |
58 | %{__make} \ | |
59 | DIRS="player" \ | |
60 | CC="%{__cc}" \ | |
61 | CFLAGS="%{rpmcflags} -D__DVD_DEBUG -D_LARGEFILE64_SOURCE -D_REENTRANT -I../sysinclude -DNEED_SYS_TYPES_H -I/usr/include/ncurses" \ | |
62 | X_LIBS="-lXmu -lXt -lX11 -lXext -lXxf86vm" | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | install -d $RPM_BUILD_ROOT{%{_includedir}/dxr2,%{_bindir},%{_libdir}} | |
67 | ||
68 | cp -p sysinclude/*.h $RPM_BUILD_ROOT%{_includedir}/dxr2 | |
69 | cp -dp player/libdxr2css.so.* $RPM_BUILD_ROOT%{_libdir} | |
70 | install player/{dvdplay*,driveauth,dvd-sum,*dvd} $RPM_BUILD_ROOT%{_bindir} | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %post -n dxr2-player -p /sbin/ldconfig | |
76 | %postun -n dxr2-player -p /sbin/ldconfig | |
77 | ||
78 | %files devel | |
79 | %defattr(644,root,root,755) | |
80 | %doc CONTRIBUTORS ChangeLog ReadMe TODO api.html | |
81 | %attr(755,root,root) %{_includedir}/dxr2 | |
82 | ||
83 | %files -n dxr2-player | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) %{_bindir}/driveauth | |
86 | %attr(755,root,root) %{_bindir}/dvd | |
87 | %attr(755,root,root) %{_bindir}/dvd-sum | |
88 | %attr(755,root,root) %{_bindir}/dvdplay | |
89 | %attr(755,root,root) %{_bindir}/dvdplay-curses | |
90 | %attr(755,root,root) %{_bindir}/dvdplay-wrapper | |
91 | %attr(755,root,root) %{_bindir}/undvd | |
92 | %attr(755,root,root) %{_libdir}/libdxr2css.so.*.*.* | |
93 | %attr(755,root,root) %ghost %{_libdir}/libdxr2css.so.0 |