source: spec/trunk/SPECS/libusb-compat.spec@ 1010

Last change on this file since 1010 was 804, checked in by Yuri Dario, 9 years ago

spec: libusb1, libusb-compat, use correct requirements for building and installing.

File size: 1.9 KB
Line 
1Name: libusb-compat
2Version: 0.1.5
3Release: 2%{?dist}
4Summary: libusb-compat
5
6Group: System Environment/libraries
7License: GPLv2+
8Url: http://libusb.sourceforge.net
9Source: http://downloads.sourceforge.net/libusb/%{name}-%{version}.tar.bz2
10Patch0: libusb-compat-os2.patch
11
12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
13BuildRequires: libusb1-devel
14
15Requires: libusb1
16
17%description
18The libusb-compat package aims to look, feel and behave exactly like libusb-0.1. It is a compatibility layer needed by packages that have not been upgraded to the libusb-1.0 API.
19
20%package devel
21Summary: Development files for libusb-compat
22Group: Development/Libraries
23Requires: %{name} = %{version}-%{release}
24
25%description devel
26This package contains the header files and libraries needed to develop
27applications that use libusb-compat.
28
29%package static
30Summary: Static development files for libusb
31Group: Development/Libraries
32Requires: %{name}-devel = %{version}-%{release}
33
34%description static
35This package contains static libraries to develop applications that use libusb1.
36
37%debug_package
38
39%prep
40%setup -q -n %{name}-%{version}
41%patch0 -p1 -b ~os2
42
43%build
44export CONFIG_SITE="/@unixroot/usr/share/config.legacy"
45%configure
46make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
47
48%check
49
50%install
51rm -rf %{buildroot}
52make DESTDIR=%{buildroot} install
53
54cp -p libusb/*.dll %{buildroot}%{_libdir}
55cp -p libusb/.libs/usb_s.a %{buildroot}%{_libdir}
56rm %{buildroot}%{_libdir}/*.la
57
58%clean
59rm -rf %{buildroot}
60
61%files
62%defattr(-,root,root,-)
63%{_libdir}/libusbc.dll
64
65%files devel
66%defattr(-,root,root,-)
67%{_bindir}/libusb-config
68%{_includedir}/usb.h
69%{_libdir}/usb.a
70%{_libdir}/pkgconfig/libusb.pc
71
72%files static
73%defattr(-,root,root)
74%{_libdir}/usb_s.a
75
76%changelog
77* Wed Jun 15 2016 yd <yd@os2power.com> 0.1.5-2
78- added requirements.
79- added debug package.
80
81* Wed Apr 16 2014 yd
82- first public build.
Note: See TracBrowser for help on using the repository browser.