source: spec/trunk/SPECS/libusb1.spec@ 1330

Last change on this file since 1330 was 1044, checked in by Silvan Scherrer, 9 years ago

spec: libusb1: Release version 1.0.21-1.

File size: 2.2 KB
Line 
1Summary: A library which allows userspace access to USB devices
2Name: libusb1
3Version: 1.0.21
4Release: 1%{?dist}
5
6License: LGPLv2+
7Group: System Environment/Libraries
8URL: http://libusb.info/
9
10Vendor: bww bitwise works GmbH
11%scm_source svn http://svn.netlabs.org/repos/ports/libusb1/trunk 1938
12
13BuildRequires: usbcalls-devel
14BuildRequires: doxygen libtool
15Requires: usbcalls
16
17%description
18This package provides a way for applications to access USB devices. Note that
19this library is not compatible with the original libusb-0.1 series.
20
21
22%package devel
23Summary: Development files for %{name}
24Group: Development/Libraries
25Requires: %{name} = %{version}-%{release}
26Requires: %{name}-devel-doc = %{version}-%{release}
27Requires: pkgconfig
28
29%description devel
30The %{name}-devel package contains libraries and header files for
31developing applications that use %{name}.
32
33
34%package devel-doc
35Summary: Development files for %{name}
36Group: Development/Libraries
37Requires: %{name}-devel = %{version}-%{release}
38BuildArch: noarch
39
40%description devel-doc
41This package contains API documentation for %{name}.
42
43%legacy_runtime_packages
44
45%debug_package
46
47
48%prep
49%scm_setup
50
51autoreconf -ifv
52
53
54%build
55export LDFLAGS="-Zhigh-mem -Zomf"
56export VENDOR="%{vendor}"
57
58%configure --disable-static
59make
60
61cd doc
62make docs
63cd ..
64
65
66%install
67%make_install
68rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
69
70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
74
75#post -p /sbin/ldconfig
76#postun -p /sbin/ldconfig
77
78
79%files
80%defattr(-,root,root)
81%license COPYING
82%doc AUTHORS README ChangeLog
83%{_libdir}/*.dll
84%exclude %{_libdir}/libusb10.dll
85
86
87%files devel
88%defattr(-,root,root)
89%{_includedir}/libusb-1.0
90%{_libdir}/*_dll.a
91%{_libdir}/pkgconfig/libusb-1.0.pc
92
93
94%files devel-doc
95%defattr(-,root,root)
96%doc doc/html examples/*.c
97
98
99%changelog
100* Mon Dec 12 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.0.21-1
101- update to version 1.0.21
102- add the documention
103- use the new scm_source and scm_setup macros
104
105* Wed Jun 15 2016 yd <yd@os2power.com> 1.0.16-2
106- added requirements.
107- added debug package.
108
109* Wed Apr 16 2014 yd
110- first public build.
Note: See TracBrowser for help on using the repository browser.