rpms/libftdi/F-10 .cvsignore, 1.3, 1.4 libftdi.spec, 1.4, 1.5 sources, 1.3, 1.4

Lucian Langa lucilanga at fedoraproject.org
Wed Jul 1 14:02:44 UTC 2009


Author: lucilanga

Update of /cvs/pkgs/rpms/libftdi/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8308

Modified Files:
	.cvsignore libftdi.spec sources 
Log Message:
* Wed Jul 01 2009 Lucian Langa <cooly at gnome.eu.org> - 0.16-2
- added udev rules
- addedd c++, python bindings


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/libftdi/F-10/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- .cvsignore	16 Feb 2009 09:01:11 -0000	1.3
+++ .cvsignore	1 Jul 2009 14:02:14 -0000	1.4
@@ -1 +1 @@
-libftdi-0.15.tar.gz
+libftdi-0.16.tar.gz


Index: libftdi.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libftdi/F-10/libftdi.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- libftdi.spec	9 May 2009 20:12:59 -0000	1.4
+++ libftdi.spec	1 Jul 2009 14:02:14 -0000	1.5
@@ -1,16 +1,19 @@
+%{!?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:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Library to program and control the FTDI USB controller
 
 Group:		System Environment/Libraries
 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
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:	libusb-devel, doxygen, boost-devel
-Requires:	pkgconfig
+BuildRequires:	libusb-devel, doxygen, boost-devel, python-devel, swig
+Requires:	pkgconfig, udev
+
 
 %package devel
 Summary:	Header files and static libraries for libftdi
@@ -18,6 +21,21 @@ Group:		Development/Libraries
 Requires:	libftdi = %{version}-%{release}
 Requires:	libusb-devel
 
+%package python
+Summary:	Libftdi library Python binding
+Group:		Development/Libraries
+Requires:	libftdi = %{version}-%{release}
+
+%package c++
+Summary:	Libftdi library C++ binding
+Group:		Development/Libraries
+Requires:	libftdi = %{version}-%{release}
+
+%package c++-devel
+Summary:	Libftdi library C++ binding development headers and libraries
+Group:		Development/Libraries
+Requires:	libftdi-devel = %{version}-%{release}, libftdi-c++ = %{version}-%{release}
+
 %description
 A library (using libusb) to talk to FTDI's FT2232C,
 FT232BM and FT245BM type chips including the popular bitbang mode.
@@ -25,13 +43,24 @@ FT232BM and FT245BM type chips including
 %description devel
 Header files and static libraries for libftdi
 
+%description python
+Libftdi Python Language bindings.
+
+%description c++
+Libftdi library C++ language binding.
+
+%description c++-devel
+Libftdi library C++ binding development headers and libraries
+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
 
 
 %build
-%configure
+%configure --enable-python-binding --enable-libftdipp
+cp %{SOURCE1} %{_builddir}/%{name}-%{version}/doc
 make %{?_smp_mflags}
 
 
@@ -42,6 +71,8 @@ find %{buildroot} -name \*\.la -print | 
 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3
 #no man install
 install -p -m 644 doc/man/man3/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
+install -p -m 644 packages/99-libftdi.rules $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
 
 
 # Cleanup examples
@@ -59,7 +90,8 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING.LIB README
-%{_libdir}/*.so.*
+%{_libdir}/libftdi.so.*
+%config(noreplace) %{_sysconfdir}/udev/rules.d/99-libftdi.rules
 
 
 %files devel
@@ -67,18 +99,40 @@ rm -rf $RPM_BUILD_ROOT
 %doc doc/html
 %{_bindir}/libftdi-config
 %{_libdir}/libftdi.a
-%{_libdir}/libftdipp.a
-%{_libdir}/*.so
+%{_libdir}/libftdi.so
 %{_includedir}/*.h
-%{_includedir}/*.hpp
-%{_libdir}/pkgconfig/*.pc
+%{_libdir}/pkgconfig/libftdi.pc
 %{_mandir}/man3/*
 
+%files python
+%defattr(-, root, root, -)
+%{python_sitearch}/*
+
+%files c++
+%defattr(-, root, root, -)
+%doc AUTHORS ChangeLog COPYING.LIB README
+%{_libdir}/libftdipp.so.*
+
+%files c++-devel
+%defattr(-, root, root, -)
+%doc doc/html
+%{_libdir}/libftdipp.a
+%{_libdir}/libftdipp.so
+%{_includedir}/*.hpp
+%{_libdir}/pkgconfig/libftdipp.pc
+
 
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
+%post c++ -p /sbin/ldconfig
+%postun c++ -p /sbin/ldconfig
+
 %changelog
+* Wed Jul 01 2009 Lucian Langa <cooly at gnome.eu.org> - 0.16-2
+- added udev rules
+- addedd c++, python bindings
+
 * Sat May 09 2009 Lucian Langa <cooly at gnome.eu.org> - 0.16-1
 - new upstream release
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/libftdi/F-10/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- sources	16 Feb 2009 09:01:11 -0000	1.3
+++ sources	1 Jul 2009 14:02:14 -0000	1.4
@@ -1 +1 @@
-d585c9758cb7085a4448c7c4ece07d8e  libftdi-0.15.tar.gz
+524af6f39aefa1a4e8fac12c6be0ed06  libftdi-0.16.tar.gz




More information about the fedora-extras-commits mailing list