[flexiport] Initial import

rmattes rmattes at fedoraproject.org
Sat Jul 7 16:02:29 UTC 2012


commit f1cb13a504c9f27ba8769ceb79d853e5637bf980
Author: Rich Mattes <richmattes at gmail.com>
Date:   Sat Jul 7 12:02:21 2012 -0400

    Initial import

 .gitignore                  |    1 +
 flexiport-2.0.0-gcc47.patch |   13 +++++++
 flexiport.spec              |   76 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 4 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..90ed225 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gbiggs-flexiport-1b6103d.tar.gz
diff --git a/flexiport-2.0.0-gcc47.patch b/flexiport-2.0.0-gcc47.patch
new file mode 100644
index 0000000..88ec60e
--- /dev/null
+++ b/flexiport-2.0.0-gcc47.patch
@@ -0,0 +1,13 @@
+diff -up ./include/flexiport/flexiport_types.h.gcc47 ./include/flexiport/flexiport_types.h
+--- ./include/flexiport/flexiport_types.h.gcc47	2012-05-25 22:24:56.118398545 -0400
++++ ./include/flexiport/flexiport_types.h	2012-05-25 22:25:12.838030652 -0400
+@@ -39,6 +39,7 @@
+     #endif
+ #else
+     #include <stdint.h>
++    #include <sys/types.h>
+ #endif
+ 
+ #endif // __FLEXIPORT_TYPES_H
+diff -up ./include/flexiport/port.h.gcc47 ./include/flexiport/port.h
+diff -up ./include/flexiport/serialport.h.gcc47 ./include/flexiport/serialport.h
diff --git a/flexiport.spec b/flexiport.spec
new file mode 100644
index 0000000..1264f41
--- /dev/null
+++ b/flexiport.spec
@@ -0,0 +1,76 @@
+%global gitrev 1b6103d
+
+Name:           flexiport
+Version:        2.0.0
+Release:        2.20120701git1b6103d%{?dist}
+Summary:        Flexible communications library
+
+License:        LGPLv3
+URL:            https://github.com/gbiggs/flexiport
+# wget --content-disposition https://github.com/gbiggs/flexiport/tarball/1b6103da
+Source0:        https://github.com/gbiggs/%{name}/tarball/1b6103da/gbiggs-%{name}-%{gitrev}.tar.gz
+# Submitted upstream:
+# https://github.com/gbiggs/flexiport/issues/2
+Patch0:         flexiport-2.0.0-gcc47.patch
+BuildRequires:  cmake
+BuildRequires:  doxygen
+BuildRequires:  graphviz
+BuildRequires:  python-sphinx
+
+%description
+Flexiport provides a consistent interface for communicating over a range of
+data port types. Currently serial (including serial-over-USB), TCP and UDP
+ports are supported. Logging is supported which allows communications sessions
+to be played back at a later date without the original hardware present.
+
+%package devel
+Summary: Header files and libraries for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Development libraries and header files for %{name}
+
+%prep
+%setup -q -n gbiggs-%{name}-%{gitrev}
+%patch0 -p0
+# The "breathe" module is not available, so don't use it
+sed -i 's/extensions/#extensions/' doc/conf.py.in
+# Fix multilib installation directories
+sed -i 's/\"lib\"/\"%{_lib}\"/' CMakeLists.txt
+
+%build
+%cmake -DBUILD_EXAMPLES=OFF  .
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-2/html/{.doctrees,.buildinfo}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc COPYING COPYING.LESSER
+%{_libdir}/*.so.*
+
+%files devel
+%{_docdir}/%{name}-2
+%{_datadir}/%{name}-2
+%{_includedir}/%{name}-2
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+%{_libdir}/%{name}
+
+
+%changelog
+* Sun Jul 01 2012 Rich Mattes <richmattes at gmail.com> - 2.0.0-2.20120701git1b6103d
+- Added missing BuildRequires 
+- Use github's tag download for tarball
+- Added explaination for sed calls
+- Added gitrev to package version
+- Added isa to devel package requirement of base package
+
+* Sat Dec 31 2011 Rich Mattes <richmattes at gmail.com> - 2.0.0-1.20111231git
+- Initial build
diff --git a/sources b/sources
index e69de29..da65a5d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ff65364d307c286be7562ef6b05b5c42  gbiggs-flexiport-1b6103d.tar.gz


More information about the scm-commits mailing list