packaging: Initial packaging on 0.5.4 for Tizen
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Fri, 9 Jan 2015 15:43:36 +0000 (16:43 +0100)
committerPhilippe Coval <philippe.coval@osg.samsung.com>
Mon, 4 Jan 2016 15:23:27 +0000 (16:23 +0100)
Change-Id: Iacf728b8c275926662bdaa088b35630e4313754d
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
.gbs.conf [new file with mode: 0644]
packaging/mraa.spec [new file with mode: 0644]

diff --git a/.gbs.conf b/.gbs.conf
new file mode 100644 (file)
index 0000000..2290232
--- /dev/null
+++ b/.gbs.conf
@@ -0,0 +1,3 @@
+[general]
+upstream_branch = upstream
+upstream_tag = v${upstreamversion}
diff --git a/packaging/mraa.spec b/packaging/mraa.spec
new file mode 100644 (file)
index 0000000..0b393f7
--- /dev/null
@@ -0,0 +1,63 @@
+Name:           mraa
+Version:        0.5.4
+Release:        0
+License:        MIT
+Summary:        Low Level Skeleton Library for Communication
+Url:            https://github.com/intel-iot-devkit/mraa
+# X-Vc-Url:     https://github.com/intel-iot-devkit/mraa
+Group:          Contrib
+Source:         %{name}-%{version}.tar.gz
+
+BuildRequires:  cmake
+BuildRequires:  fdupes
+
+%description
+C/C++ library with bindings to javascript & python to interface
+with the IO on Galileo, Edison & other platforms, with a structured and sane
+API where port names/numbering matches the board that you are on.
+
+
+%package devel
+Summary:    Low Level Skeleton Library for Communication -- developer files
+Group:      Contrib
+Requires:   %{name} = %{version}-%{release}
+
+%description devel
+C/C++ library with bindings to javascript & python to interface
+with the IO on Galileo, Edison & other platforms, with a structured and sane
+API where port names/numbering matches the board that you are on.
+Developer files.
+
+
+%prep
+%setup -q
+
+
+%build
+
+%cmake . \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr
+
+%__make %{?_smp_mflags}
+
+
+%install
+%make_install
+%fdupes %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root)
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}.h*
+%{_includedir}/%{name}/*.h*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/%{name}.pc
+%exclude %{_datadir}/%{name}/examples/