add packaging
authorAnas Nashif <anas.nashif@intel.com>
Sun, 4 Nov 2012 15:22:54 +0000 (07:22 -0800)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 13 Apr 2017 11:05:55 +0000 (13:05 +0200)
Change-Id: Id2574eb30eac53c193795d2a1a1798847835cc50

packaging/baselibs.conf [new file with mode: 0644]
packaging/libusb.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..e8f427b
--- /dev/null
@@ -0,0 +1,5 @@
+libusb-1_0-0
+libusb-1_0-devel
+  requires -libusb-1_0-<targettype>
+  requires "libusb-1_0-0-<targettype> = <version>"
+
diff --git a/packaging/libusb.spec b/packaging/libusb.spec
new file mode 100644 (file)
index 0000000..24212ef
--- /dev/null
@@ -0,0 +1,52 @@
+Name:           libusb
+Version:        1.0.9
+Release:        0
+License:        LGPL-2.1+
+Summary:        USB Library
+Url:            http://www.libusb.org/
+Group:          System/Libraries
+Source:         %{name}-%{version}.tar.bz2
+Source1:        baselibs.conf
+BuildRequires:  pkg-config
+
+%description
+Libusb is a library that allows userspace access to USB devices.
+
+%package devel
+Summary:        USB Library
+Group:          Development/Libraries/C and C++
+Requires:       glibc-devel
+Requires:       libusb = %{version}
+
+%description devel
+Libusb is a library that allows userspace access to USB devices.
+
+%prep
+%setup -q
+
+%build
+%configure\
+       --with-pic\
+       --disable-static
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%post  -p /sbin/ldconfig
+
+%postun  -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%doc COPYING
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root)
+%doc PORTING
+%{_includedir}/libusb-1.0
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+
+%changelog