From 815fb0e36eaf9725a8dd705eaaf7b8c359971b7f Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Fri, 9 Jan 2015 16:43:36 +0100 Subject: [PATCH] packaging: Initial packaging on 0.5.4 for Tizen Change-Id: Iacf728b8c275926662bdaa088b35630e4313754d Signed-off-by: Philippe Coval --- .gbs.conf | 3 +++ packaging/mraa.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .gbs.conf create mode 100644 packaging/mraa.spec diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 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 index 0000000..0b393f7 --- /dev/null +++ b/packaging/mraa.spec @@ -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/ -- 2.7.4