Created
December 15, 2015 23:04
-
-
Save tgarc/da50ed7294657d713b0f to your computer and use it in GitHub Desktop.
libusb1.0.20.spec file for building RPM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modified version of libusb1.spec from libusb1-1.0.9-0.6.rc1.el6.rpm | |
# to create an RPM package for libusb-1.0.20 | |
Summary: A library which allows userspace access to USB devices | |
Name: libusb1 | |
Version: 1.0.20 | |
Release: 0 | |
Source0: libusb-1.0.20.tar.bz2 | |
#Source0: http://downloads.sourceforge.net/libusb/libusb-%{version}.tar.bz2 | |
License: LGPLv2+ | |
Group: System Environment/Libraries | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
URL: http://libusb.wiki.sourceforge.net/Libusb1.0 | |
ExcludeArch: s390 s390x | |
BuildRequires: doxygen | |
%description | |
This package provides a way for applications to access USB devices. Note that | |
this library is not compatible with the original libusb-0.1 series. | |
%package devel | |
Summary: Development files for libusb | |
Group: Development/Libraries | |
Requires: %{name} = %{version}-%{release} | |
Requires: pkgconfig | |
%description devel | |
This package contains the header files, libraries and documentation needed to | |
develop applications that use libusb1. | |
%package static | |
Summary: Static development files for libusb | |
Group: Development/Libraries | |
Requires: %{name}-devel = %{version}-%{release} | |
%description static | |
This package contains static libraries to develop applications that use libusb1. | |
%prep | |
%setup -q -n libusb-1.0.20 | |
%build | |
%configure | |
make CFLAGS="$RPM_OPT_FLAGS" | |
pushd doc | |
make docs | |
popd | |
%install | |
rm -rf $RPM_BUILD_ROOT | |
make install DESTDIR=$RPM_BUILD_ROOT | |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la | |
%clean | |
rm -rf $RPM_BUILD_ROOT | |
%post -p /sbin/ldconfig | |
%postun -p /sbin/ldconfig | |
%files | |
%defattr(-,root,root) | |
%doc AUTHORS COPYING README NEWS ChangeLog | |
%{_libdir}/*.so.* | |
%files devel | |
%defattr(-,root,root) | |
%doc doc/html examples/*.c | |
%{_libdir}/pkgconfig/libusb-1.0.pc | |
%{_includedir}/* | |
%{_libdir}/*.so | |
%files static | |
%defattr(-,root,root) | |
%{_libdir}/*.a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment