]>
Commit | Line | Data |
---|---|---|
54ac3bda | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
ea0ace1f | 5 | Summary: API interface to talk to Zen Creative devices |
84045b34 | 6 | Summary(pl.UTF-8): Interfejs API do komunikacji z urządzeniami Zen Creative |
c8caf881 | 7 | Name: libnjb |
7f35e892 WF |
8 | Version: 2.2.7 |
9 | Release: 1 | |
7d54b6b6 | 10 | License: BSD |
c8caf881 | 11 | Group: Libraries |
7f35e892 WF |
12 | Source0: http://downloads.sourceforge.net/libnjb/%{name}-%{version}.tar.gz |
13 | # Source0-md5: 73f25f3297abe316dd0abec921781d50 | |
14 | Patch0: docs.patch | |
d8293df6 | 15 | URL: http://libnjb.sourceforge.net/ |
7f35e892 WF |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
18 | BuildRequires: doxygen | |
19 | BuildRequires: libtool | |
cfb924e6 | 20 | BuildRequires: libusb-compat-devel |
30c2e141 | 21 | BuildRequires: ncurses-devel |
c3332f2e | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c8caf881 | 23 | |
24 | %description | |
48701d7a | 25 | libnjb is a C library and API for communicating with the Creative |
26 | Nomad JukeBox and Dell DJ digital audio players under BSD, Linux, Mac | |
27 | OS X and Windows. The protocol these devices use is presumably called | |
28 | PDE (Portable Digital Entertainment protocol) at Creative. Newer | |
29 | devices using the Microsoft MTP (Media Transfer Protocol) are NOT | |
30 | supported | |
c8caf881 | 31 | |
efae7abf JR |
32 | %description -l pl.UTF-8 |
33 | libnjb jest biblioteką C jak również API używanym do komunikacji z | |
48701d7a | 34 | Creative Nomad JukeBox i cyfrowym odtwarzaczem muzyki Dell DJ dla |
efae7abf | 35 | platform BSD, Linux, Mac IS X i Windows. Protokół jest przypuszczalnie |
48701d7a | 36 | nazwany przez Creative PDE (Portable Digital Entertainment protocol). |
efae7abf JR |
37 | Nowsze urządzenia używające Microsoft MTP (Media transfer Protocol) |
38 | NIE są obsługiwane. | |
ea0ace1f | 39 | |
40 | %package devel | |
41 | Summary: Header files for njb library | |
84045b34 | 42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnjb |
ea0ace1f | 43 | Group: Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
cfb924e6 | 45 | Requires: libusb-compat-devel |
ea0ace1f | 46 | |
47 | %description devel | |
48 | Header files for njb library. | |
49 | ||
efae7abf JR |
50 | %description devel -l pl.UTF-8 |
51 | Pliki nagłówkowe biblioteki njb. | |
ea0ace1f | 52 | |
53 | %package static | |
54 | Summary: Static njb library | |
84045b34 | 55 | Summary(pl.UTF-8): Statyczna biblioteka njb |
ea0ace1f | 56 | Group: Development/Libraries |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static njb library. | |
61 | ||
efae7abf | 62 | %description static -l pl.UTF-8 |
ea0ace1f | 63 | Statyczna biblioteka njb. |
82204815 | 64 | |
ba4b2069 SP |
65 | %package utils |
66 | Summary: njb utilities | |
84045b34 | 67 | Summary(pl.UTF-8): Narzędzia njb |
ba4b2069 SP |
68 | Group: Development/Tools |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description utils | |
72 | Utilities for njb library. | |
73 | ||
efae7abf JR |
74 | %description utils -l pl.UTF-8 |
75 | Narzędzia dla biblioteki njb. | |
ba4b2069 | 76 | |
c8caf881 | 77 | %prep |
78 | %setup -q | |
7f35e892 | 79 | %patch0 -p1 |
c8caf881 | 80 | |
81 | %build | |
7f35e892 WF |
82 | %{__libtoolize} |
83 | %{__aclocal} | |
84 | %{__autoconf} | |
85 | %{__autoheader} | |
86 | %{__automake} | |
54ac3bda | 87 | %configure \ |
88 | %{!?with_static_libs:--disable-static} | |
30c2e141 | 89 | %{__make} \ |
90 | CC="%{__cc}" \ | |
91 | CFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
c8caf881 | 92 | |
93 | %install | |
c3332f2e | 94 | rm -rf $RPM_BUILD_ROOT |
95 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb | |
96 | ||
3ffcb114 | 97 | %{__make} install \ |
536cf086 | 98 | DESTDIR=$RPM_BUILD_ROOT \ |
99 | includedir=%{_includedir}/%{name} | |
cf8e9004 | 100 | |
c3332f2e | 101 | install nomadjukebox $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb |
102 | install nomad.usermap $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb | |
c8caf881 | 103 | |
ea0ace1f | 104 | %clean |
105 | rm -rf $RPM_BUILD_ROOT | |
c8caf881 | 106 | |
ea0ace1f | 107 | %post -p /sbin/ldconfig |
108 | %postun -p /sbin/ldconfig | |
c8caf881 | 109 | |
110 | %files | |
c3332f2e | 111 | %defattr(644,root,root,755) |
7c9cc69d | 112 | %doc AUTHORS ChangeLog FAQ HACKING README |
30c2e141 | 113 | %attr(755,root,root) %{_libdir}/libnjb.so.*.*.* |
7f35e892 | 114 | %attr(755,root,root) %ghost %{_libdir}/libnjb.so.5 |
ea0ace1f | 115 | |
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
7f35e892 | 118 | %doc doc/html/* |
30c2e141 | 119 | %attr(755,root,root) %{_libdir}/libnjb.so |
cf8e9004 | 120 | %{_libdir}/libnjb.la |
536cf086 | 121 | %{_includedir}/%{name} |
ea0ace1f | 122 | %{_pkgconfigdir}/*.pc |
123 | ||
54ac3bda | 124 | %if %{with static_libs} |
ea0ace1f | 125 | %files static |
126 | %defattr(644,root,root,755) | |
cf8e9004 | 127 | %{_libdir}/libnjb.a |
54ac3bda | 128 | %endif |
ba4b2069 SP |
129 | |
130 | %files utils | |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_bindir}/njb* |