]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = libusb-compat | |
7 | version = 0.1.12 | |
8 | release = 2 | |
9 | thisapp = libusb-%{version} | |
10 | ||
11 | groups = System/Libraries | |
12 | url = http://sourceforge.net/projects/libusb/ | |
13 | license = LGPLv2+ | |
14 | summary = A library which allows userspace access to USB devices. | |
15 | ||
16 | description | |
17 | This package provides a way for applications to access USB devices. | |
18 | end | |
19 | ||
20 | source_dl = | |
21 | ||
22 | build | |
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 | |
43 | end | |
44 | ||
45 | packages | |
46 | package %{name} | |
47 | ||
48 | package %{name}-devel | |
49 | template DEVEL | |
50 | end | |
51 | ||
52 | package %{name}-debuginfo | |
53 | template DEBUGINFO | |
54 | end | |
55 | end |