]>
Commit | Line | Data |
---|---|---|
88258827 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
88258827 MT |
4 | ############################################################################### |
5 | ||
bdaf02e8 | 6 | name = libusb-compat |
802ea3af | 7 | version = 0.1.12 |
bdaf02e8 MT |
8 | release = 2 |
9 | thisapp = libusb-%{version} | |
88258827 | 10 | |
802ea3af MT |
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. | |
88258827 | 15 | |
802ea3af | 16 | description |
88258827 | 17 | This package provides a way for applications to access USB devices. |
802ea3af MT |
18 | end |
19 | ||
20 | source_dl = | |
21 | ||
22 | build | |
23 | requires | |
24 | gcc-c++ | |
25 | pkg-config | |
26 | end | |
27 | ||
28 | configure_options += \ | |
bdaf02e8 | 29 | --libdir=/%{lib} \ |
802ea3af MT |
30 | --disable-build-docs \ |
31 | --disable-static | |
32 | ||
33 | install_cmds | |
bdaf02e8 MT |
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 | |
802ea3af MT |
42 | end |
43 | end | |
44 | ||
45 | packages | |
bdaf02e8 | 46 | package %{name} |
1f9bc2f0 | 47 | |
bdaf02e8 | 48 | package %{name}-devel |
802ea3af MT |
49 | template DEVEL |
50 | end | |
1f9bc2f0 MT |
51 | |
52 | package %{name}-debuginfo | |
53 | template DEBUGINFO | |
54 | end | |
802ea3af | 55 | end |