]> git.ipfire.org Git - ipfire-3.x.git/blame_incremental - libusb-compat/libusb-compat.nm
kernel: update to 4.12.8
[ipfire-3.x.git] / libusb-compat / libusb-compat.nm
... / ...
CommitLineData
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = libusb-compat
7version = 0.1.12
8release = 2
9thisapp = libusb-%{version}
10
11groups = System/Libraries
12url = http://sourceforge.net/projects/libusb/
13license = LGPLv2+
14summary = A library which allows userspace access to USB devices.
15
16description
17 This package provides a way for applications to access USB devices.
18end
19
20source_dl =
21
22build
23 requires
24 gcc-c++
25 pkg-config
26 end
27
28 configure_options += \
29 --libdir=/%{lib} \
30 --disable-build-docs \
31 --disable-static
32
33 install_cmds
34 mkdir -pv %{BUILDROOT}%{libdir}
35 mv -v %{BUILDROOT}/%{lib}/pkgconfig %{BUILDROOT}%{libdir}
36
37 rm -vf %{BUILDROOT}%{libdir}/libusb{,pp}-0.1.so
38 ln -svf ../../%{lib}/libusb-0.1.so.4 %{BUILDROOT}%{libdir}/libusb.so
39 ln -svf ../../%{lib}/libusb-0.1.so.4 %{BUILDROOT}%{libdir}/libusb-0.1.so
40 ln -svf ../../%{lib}/libusbpp-0.1.so.4 %{BUILDROOT}%{libdir}/libusbpp.so
41 ln -svf ../../%{lib}/libusbpp-0.1.so.4 %{BUILDROOT}%{libdir}/libusbpp-0.1.so
42 end
43end
44
45packages
46 package %{name}
47
48 package %{name}-devel
49 template DEVEL
50 end
51
52 package %{name}-debuginfo
53 template DEBUGINFO
54 end
55end