X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=libftdi1.spec.in;h=a5d9f5d078c648003930d4dfe94b0cdf8c261cb7;hp=881b0c443eb8c2017dc49dc74d5a997d544ae542;hb=ed46f09c1ccd1351e003a200ba50e3e4778ac478;hpb=1f4fecf44922398ca773de1b4d07dd456c455149 diff --git a/libftdi1.spec.in b/libftdi1.spec.in index 881b0c4..a5d9f5d 100644 --- a/libftdi1.spec.in +++ b/libftdi1.spec.in @@ -7,13 +7,13 @@ Release: 1 License: LGPL for libftdi and GPLv2+linking exception for the C++ wrapper Group: System Environment/Libraries Vendor: Intra2net AG -Source: http://www.intra2net.com/en/developer/libftdi/download/%{name}-%{version}.tar.bz2 +Source: https://www.intra2net.com/en/developer/libftdi/download/%{name}-%{version}.tar.bz2 Buildroot: /tmp/%{name}-%{version}-root Requires: libusb1 BuildRequires: libusb1, libusb1-devel, pkgconfig, doxygen BuildRequires: swig python-devel Prefix: /usr -URL: http://www.intra2net.com/en/developer/libftdi +URL: https://www.intra2net.com/en/developer/libftdi %package devel Summary: Header files and static libraries for libftdi1 @@ -24,7 +24,7 @@ Requires: libftdi1 = %{version}, libusb1-devel Summary: Python bindings for libftdi License: LGPL Group: Development/Libraries -Requires: %{name}-libs = %{version}-%{release} +Requires: %{name} = %{version}-%{release} %description Library to program and control the FTDI USB controller @@ -64,6 +64,14 @@ rm -f $RPM_BUILD_ROOT/usr/bin/find_all_pp rm -f $RPM_BUILD_ROOT/usr/bin/serial_test rm -f $RPM_BUILD_ROOT/usr/bin/baud_test +# Clean python compiled files in examples dir +find $RPM_BUILD_ROOT%{prefix}/share/libftdi/examples -name "*.pyc" -or -name "*.pyo" -exec rm -f \{\} \; + +# move documentation to version specific directory +# Is there an easy way in cmake to set the DOCDIR? +mkdir -p $RPM_BUILD_ROOT%{prefix}/share/doc/%{name}-%{version} +mv $RPM_BUILD_ROOT%{prefix}/share/doc/%{name}/* $RPM_BUILD_ROOT%{prefix}/share/doc/%{name}-%{version} + %clean rm -fr $RPM_BUILD_ROOT @@ -75,14 +83,16 @@ rm -fr $RPM_BUILD_ROOT %files devel %defattr(-,root,root) -%doc doc/html doc/man +%doc build/doc/html build/doc/man %{_bindir}/ftdi_eeprom %{_bindir}/libftdi1-config %{prefix}/include/libftdi1/*.h %{prefix}/include/libftdi1/*.hpp +%{prefix}/share/libftdi/examples/* %{_libdir}/libftdi1*.*a %{_libdir}/libftdipp1*.*a %{_libdir}/pkgconfig/*.pc +%{_libdir}/cmake/libftdi1/* %files python %defattr(-,root,root,-)