libftdi/libftdi.spec

166 lines
4.6 KiB
RPMSpec
Raw Normal View History

%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2008-09-29 04:25:05 +00:00
Name: libftdi
2009-05-09 09:44:30 +00:00
Version: 0.16
Release: 4%{?dist}
2008-09-29 04:25:05 +00:00
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
2008-09-29 04:25:05 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libusb-devel, doxygen, boost-devel, python-devel, swig
Requires: pkgconfig, udev
2008-09-29 04:25:05 +00:00
%package devel
Summary: Header files and static libraries for libftdi
Group: Development/Libraries
Requires: libftdi = %{version}-%{release}
Requires: libusb-devel
2008-09-29 04:25:05 +00:00
%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}
2008-09-29 04:25:05 +00:00
%description
A library (using libusb) to talk to FTDI's FT2232C,
FT232BM and FT245BM type chips including the popular bitbang mode.
%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.
2008-09-29 04:25:05 +00:00
%prep
%setup -q
sed -i -e 's/HTML_FOOTER =/HTML_FOOTER = no_date_footer.html/g' doc/Doxyfile.in
2008-09-29 04:25:05 +00:00
%build
%configure --enable-python-binding --enable-libftdipp
cp %{SOURCE1} %{_builddir}/%{name}-%{version}/doc
2008-09-29 04:25:05 +00:00
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
find %{buildroot} -name \*\.la -print | xargs rm -f
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
2008-09-29 04:25:05 +00:00
# Cleanup examples
rm -f $RPM_BUILD_ROOT/%{_bindir}/simple
rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang
rm -f $RPM_BUILD_ROOT/%{_bindir}/bitbang2
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
2008-09-29 04:25:05 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING.LIB README
%{_libdir}/libftdi.so.*
%config(noreplace) %{_sysconfdir}/udev/rules.d/99-libftdi.rules
2008-09-29 04:25:05 +00:00
%files devel
%defattr(-,root,root,-)
%doc doc/html
%{_bindir}/libftdi-config
%{_libdir}/libftdi.a
%{_libdir}/libftdi.so
2008-09-29 04:25:05 +00:00
%{_includedir}/*.h
%{_libdir}/pkgconfig/libftdi.pc
2008-09-29 04:25:05 +00:00
%{_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
2008-09-29 04:25:05 +00:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post c++ -p /sbin/ldconfig
%postun c++ -p /sbin/ldconfig
2008-09-29 04:25:05 +00:00
%changelog
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Jul 01 2009 Lucian Langa <cooly@gnome.eu.org> - 0.16-3
- added udev rules
- addedd c++, python bindings
* Tue Jun 30 2009 Lucian Langa <cooly@gnome.eu.org> - 0.16-2
- fix doxygen conflict (#508498)
2009-05-09 09:44:30 +00:00
* Fri May 08 2009 Lucian Langa <cooly@gnome.eu.org> - 0.16-1
- new upstream release
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-02-16 13:09:32 +00:00
* Mon Feb 16 2009 Lucian Langa <cooly@gnome.eu.org> - 0.15-3
- fix tag
2009-02-15 10:01:57 +00:00
* Sun Feb 15 2009 Lucian Langa <cooly@gnome.eu.org> - 0.15-2
- add new BR boost-devel
* Sun Feb 15 2009 Lucian Langa <cooly@gnome.eu.org> - 0.15-1
- fix for bug #485600: pick libusb-devel for -devel subpackage
- new upstream release
2008-09-29 04:25:05 +00:00
* Fri Sep 26 2008 Lucian Langa <cooly@gnome.eu.org> - 0.14-2
- require pkgconfig for devel
* Tue Sep 23 2008 Lucian Langa <cooly@gnome.eu.org> - 0.14-1
- new upstream
* Wed Sep 03 2008 Lucian Langa <cooly@gnome.eu.org> - 0.13-1
- initial specfile