File: libusb.spec.in

package info (click to toggle)
libusb 1%3A0.1.5-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 872 kB
  • ctags: 272
  • sloc: sh: 7,019; ansic: 1,228; makefile: 138
file content (62 lines) | stat: -rw-r--r-- 1,236 bytes parent folder | download
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
56
57
58
59
60
61
62
# Note that this is NOT a relocatable package
%define ver      @VERSION@
%define  RELEASE 1
%define  rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define prefix   /usr

Summary: Application access to USB devices
Name: libusb
Version: %ver
Release: %rel
Copyright: LGPL
Group: Libraries
Source: ftp://ftp.libusb.sourceforge.net/pub/libusb/libusb-%{ver}.tar.gz
BuildRoot: /var/tmp/libusb-%{PACKAGE_VERSION}-root
URL: http://libusb.sourceforge.net

%description
Provides a library for application access to USB devices. Development
libs and headers are in libusb-devel

%package devel
Summary: Application USB device access library
Group: System Environment/Libraries

%description devel
Static libraries and header files for the USB device access library


%changelog

%prep
%setup

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
make

%install
rm -rf $RPM_BUILD_ROOT

make prefix=$RPM_BUILD_ROOT%{prefix} install

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)

%doc AUTHORS COPYING ChangeLog NEWS README
%{prefix}/lib/libusb-0.1.so.*

%files devel
%defattr(-, root, root)

%{prefix}/lib/*.so
%{prefix}/lib/*a
%{prefix}/include/*
%{prefix}/bin/*