Compare commits
11 Commits
Author | SHA1 | Date |
---|---|---|
Lucian Langa | cf1ea7321c | |
Fedora Release Engineering | 772cf33284 | |
Lucian Langa | 9af303936b | |
Lucian Langa | 411920413c | |
Lucian Langa | 92980677a0 | |
Lucian Langa | 2e0afd811a | |
Lucian Langa | ef72c2f551 | |
Lucian Langa | a7b1813552 | |
Lucian Langa | 7687b12510 | |
Bill Nottingham | cef3a91271 | |
Jesse Keating | 50a784a305 |
|
@ -1 +0,0 @@
|
|||
libftdi-0.16.tar.gz
|
|
@ -0,0 +1 @@
|
|||
libftdi-0.18.tar.gz
|
21
Makefile
21
Makefile
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: libftdi
|
||||
# $Id$
|
||||
NAME := libftdi
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
|
@ -41,3 +41,4 @@
|
|||
-if test "$echo_libs" = "yes"; then
|
||||
- echo -L@libdir@ -lftdi @LIBS@
|
||||
-fi
|
||||
|
38
libftdi.spec
38
libftdi.spec
|
@ -1,7 +1,7 @@
|
|||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
Name: libftdi
|
||||
Version: 0.16
|
||||
Release: 7%{?dist}
|
||||
Version: 0.18
|
||||
Release: 2%{?dist}
|
||||
Summary: Library to program and control the FTDI USB controller
|
||||
|
||||
Group: System Environment/Libraries
|
||||
|
@ -9,7 +9,7 @@ License: LGPLv2
|
|||
URL: http://www.intra2net.com/de/produkte/opensource/ftdi/
|
||||
Source0: http://www.intra2net.com/de/produkte/opensource/ftdi/TGZ/%{name}-%{version}.tar.gz
|
||||
Source1: no_date_footer.html
|
||||
Patch0: libftdi-0.16-multilib.patch
|
||||
Patch0: libftdi-0.17-multilib.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: libusb-devel, doxygen, boost-devel, python-devel, swig
|
||||
|
@ -60,11 +60,13 @@ for building C++ applications with libftdi.
|
|||
%prep
|
||||
%setup -q
|
||||
sed -i -e 's/HTML_FOOTER =/HTML_FOOTER = no_date_footer.html/g' doc/Doxyfile.in
|
||||
#kernel does not provide usb_device anymore
|
||||
sed -i -e 's/usb_device/usb/g' packages/99-libftdi.rules
|
||||
%patch0 -p1 -b .multilib
|
||||
|
||||
|
||||
%build
|
||||
%configure --enable-python-binding --enable-libftdipp
|
||||
%configure --enable-python-binding --enable-libftdipp --disable-static
|
||||
cp %{SOURCE1} %{_builddir}/%{name}-%{version}/doc
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
@ -88,6 +90,8 @@ rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang_ft2232
|
|||
rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang_cbus
|
||||
rm -f $RPM_BUILD_ROOT/%{_bindir}/find_all
|
||||
rm -f $RPM_BUILD_ROOT/%{_bindir}/find_all_pp
|
||||
rm -f $RPM_BUILD_ROOT/%{_bindir}/baud_test
|
||||
rm -f $RPM_BUILD_ROOT/%{_bindir}/serial_read
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
@ -102,7 +106,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%defattr(-,root,root,-)
|
||||
%doc doc/html
|
||||
%{_bindir}/libftdi-config
|
||||
%{_libdir}/libftdi.a
|
||||
%{_libdir}/libftdi.so
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/pkgconfig/libftdi.pc
|
||||
|
@ -110,6 +113,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
%files python
|
||||
%defattr(-, root, root, -)
|
||||
%doc AUTHORS ChangeLog COPYING.LIB README
|
||||
%{python_sitearch}/*
|
||||
|
||||
%files c++
|
||||
|
@ -120,13 +124,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%files c++-devel
|
||||
%defattr(-, root, root, -)
|
||||
%doc doc/html
|
||||
%{_libdir}/libftdipp.a
|
||||
%{_libdir}/libftdipp.so
|
||||
%{_includedir}/*.hpp
|
||||
%{_libdir}/pkgconfig/libftdipp.pc
|
||||
|
||||
%pre
|
||||
getent group GROUPNAME >/dev/null || groupadd -r plugdev
|
||||
getent group plugdev >/dev/null || groupadd -r plugdev
|
||||
exit 0
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
@ -136,6 +139,27 @@ exit 0
|
|||
%postun c++ -p /sbin/ldconfig
|
||||
|
||||
%changelog
|
||||
* Fri Sep 17 2010 Lucian Langa <cooly@gnome.eu.org> - 0.18-2
|
||||
- rebuilt for EL6
|
||||
|
||||
* Fri Jul 02 2010 Lucian Langa <cooly@gnome.eu.org> - 0.18-1
|
||||
- drop patch0 fixed upstream
|
||||
- new upstream release
|
||||
|
||||
* Wed Jun 09 2010 Lucian Langa <cooly@gnome.eu.org> - 0.17-4
|
||||
- readd mistakenly dropped parch (fixes multilib issues)
|
||||
|
||||
* Wed May 05 2010 Lucian Langa <cooly@gnome.eu.org> - 0.17-3
|
||||
- fix typo in group handling (#581151)
|
||||
|
||||
* Thu Mar 11 2010 Lucian Langa <cooly@gnome.eu.org> - 0.17-2
|
||||
- fix incorrect UDEV rule (#563566)
|
||||
|
||||
* Mon Jan 04 2010 Lucian Langa <cooly@gnome.eu.org> - 0.17-1
|
||||
- add bindings typo patch
|
||||
- drop multilib patch
|
||||
- new upstream release
|
||||
|
||||
* Sat Aug 22 2009 Lucian Langa <cooly@gnome.eu.org> - 0.16-7
|
||||
- add group for udev rule (#517773)
|
||||
|
||||
|
|
Loading…
Reference in New Issue