Accepting request 56362 from home:reinauer:branches:hardware
New package - initial submit accepted - would be great to see in openSUSE 11.4 soon OBS-URL: https://build.opensuse.org/request/show/56362 OBS-URL: https://build.opensuse.org/package/show/hardware/libftdi1?expand=0&rev=1
This commit is contained in:
commit
cc58bbaaf4
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
47
buildfixes.diff
Normal file
47
buildfixes.diff
Normal file
@ -0,0 +1,47 @@
|
||||
---
|
||||
examples/bitbang.c | 1 +
|
||||
examples/bitbang_cbus.c | 1 +
|
||||
examples/bitbang_ft2232.c | 1 +
|
||||
examples/serial_read.c | 1 +
|
||||
4 files changed, 4 insertions(+)
|
||||
|
||||
Index: b/examples/bitbang.c
|
||||
===================================================================
|
||||
--- a/examples/bitbang.c
|
||||
+++ b/examples/bitbang.c
|
||||
@@ -65,4 +65,5 @@ int main(int argc, char **argv)
|
||||
|
||||
ftdi_usb_close(&ftdic);
|
||||
ftdi_deinit(&ftdic);
|
||||
+ return 0;
|
||||
}
|
||||
Index: b/examples/bitbang_cbus.c
|
||||
===================================================================
|
||||
--- a/examples/bitbang_cbus.c
|
||||
+++ b/examples/bitbang_cbus.c
|
||||
@@ -76,4 +76,5 @@ int main(int argc, char **argv)
|
||||
|
||||
ftdi_usb_close(&ftdic);
|
||||
ftdi_deinit(&ftdic);
|
||||
+ return 0;
|
||||
}
|
||||
Index: b/examples/bitbang_ft2232.c
|
||||
===================================================================
|
||||
--- a/examples/bitbang_ft2232.c
|
||||
+++ b/examples/bitbang_ft2232.c
|
||||
@@ -86,4 +86,5 @@ int main(int argc, char **argv)
|
||||
ftdi_disable_bitbang(&ftdic2);
|
||||
ftdi_usb_close(&ftdic2);
|
||||
ftdi_deinit(&ftdic2);
|
||||
+ return 0;
|
||||
}
|
||||
Index: b/examples/serial_read.c
|
||||
===================================================================
|
||||
--- a/examples/serial_read.c
|
||||
+++ b/examples/serial_read.c
|
||||
@@ -78,4 +78,5 @@ int main(int argc, char **argv)
|
||||
|
||||
ftdi_usb_close(&ftdic);
|
||||
ftdi_deinit(&ftdic);
|
||||
+ return 0;
|
||||
}
|
3
libftdi-0.17.tar.gz
Normal file
3
libftdi-0.17.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d5c0275125ab68a431375083c9544899e578b8f98b83de1254386d0209feabf0
|
||||
size 435901
|
1
libftdi1-rpmlintrc
Normal file
1
libftdi1-rpmlintrc
Normal file
@ -0,0 +1 @@
|
||||
addFilter("no-return-in-nonvoid-function .*/serial_read.c")
|
10
libftdi1.changes
Normal file
10
libftdi1.changes
Normal file
@ -0,0 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 21 10:18:44 CET 2009 - stepan@coresystems.de
|
||||
|
||||
- Update to 0.17
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 26 14:37:10 CET 2008 - jblunck@suse.de
|
||||
|
||||
- Initial page submission
|
||||
|
82
libftdi1.spec
Normal file
82
libftdi1.spec
Normal file
@ -0,0 +1,82 @@
|
||||
%define enable_async_mode 0
|
||||
|
||||
Summary: Library to program and control the FTDI USB controller
|
||||
Name: libftdi1
|
||||
Version: 0.17
|
||||
Release: 1
|
||||
License: LGPL
|
||||
Group: System Environment/Libraries
|
||||
Vendor: Intra2net AG
|
||||
Source: libftdi-%{version}.tar.gz
|
||||
Source100: %{name}-rpmlintrc
|
||||
Patch0: buildfixes.diff
|
||||
Buildroot: /var/tmp/%{name}-%{version}-root
|
||||
AutoReqProv: libusb
|
||||
BuildRequires: libusb-devel, pkgconfig, doxygen
|
||||
|
||||
%package -n libftdi1-devel
|
||||
Summary: Header files and static libraries for libftdi
|
||||
Group: Development/Libraries
|
||||
Requires: libftdi1 = %{version}, libusb-devel
|
||||
|
||||
%description
|
||||
Library to program and control the FTDI USB controller.
|
||||
This library is used by many programs accessing FTDI USB-to-RS232 converters.
|
||||
|
||||
%description -n libftdi1-devel
|
||||
Header files and static libraries for libftdi.
|
||||
This library is used by many programs accessing FTDI USB-to-RS232 converters.
|
||||
|
||||
%prep
|
||||
%setup -q -n libftdi-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
|
||||
%configure --disable-dependency-tracking CFLAGS="$RPM_OPT_FLAGS"
|
||||
%if %{enable_async_mode}
|
||||
--with-async-mode \
|
||||
%endif
|
||||
|
||||
make
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
# Cleanup
|
||||
rm -f $RPM_BUILD_ROOT/usr/bin/simple
|
||||
rm -f $RPM_BUILD_ROOT/usr/bin/bitbang
|
||||
rm -f $RPM_BUILD_ROOT/usr/bin/bitbang2
|
||||
rm -f $RPM_BUILD_ROOT/usr/bin/bitbang_ft2232
|
||||
rm -f $RPM_BUILD_ROOT/usr/bin/bitbang_cbus
|
||||
rm -f $RPM_BUILD_ROOT/usr/bin/find_all
|
||||
rm -f $RPM_BUILD_ROOT/usr/bin/serial_read
|
||||
rm -f $RPM_BUILD_ROOT/usr/bin/baud_test
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT//usr/share/man/man3
|
||||
gzip -9 doc/man/man3/*.3
|
||||
cp doc/man/man3/*.3.gz $RPM_BUILD_ROOT//usr/share/man/man3
|
||||
|
||||
%clean
|
||||
rm -fr $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
ldconfig
|
||||
|
||||
%postun
|
||||
ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING.LIB
|
||||
%{_libdir}/libftdi.so.*
|
||||
|
||||
%files -n libftdi1-devel
|
||||
%defattr(-,root,root)
|
||||
%doc doc/html
|
||||
%{_mandir}/man3/*.3.gz
|
||||
%{_bindir}/libftdi-config
|
||||
%{_prefix}/include/*.h
|
||||
%{_libdir}/libftdi.so
|
||||
%{_libdir}/libftdi.*a
|
||||
%{_libdir}/pkgconfig/*.pc
|
Loading…
x
Reference in New Issue
Block a user