packaging: Initial packaging for Tizen 89/34489/1
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Mon, 12 Jan 2015 15:24:51 +0000 (16:24 +0100)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Mon, 19 Jan 2015 14:43:14 +0000 (15:43 +0100)
Change-Id: I14e7e0273ae7864aa2e4ab16a35df80a883462a0
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/upm.spec [new file with mode: 0644]

diff --git a/packaging/upm.spec b/packaging/upm.spec
new file mode 100644 (file)
index 0000000..5ac76a2
--- /dev/null
@@ -0,0 +1,58 @@
+Name:           upm
+Version:        0.1.8
+Release:        0
+License:        MIT
+Summary:        TODO
+Url:            https://github.com/intel-iot-devkit/upm
+# X-Vc-Url:     https://github.com/intel-iot-devkit/upm
+Group:          Contrib / Libraries
+Source:         %{name}-%{version}.tar.gz
+
+BuildRequires:  cmake
+BuildRequires:  pkgconfig(mraa)
+BuildRequires:  fdupes
+
+%description
+Sensor/Actuator repository for Mraa
+
+%package devel
+Summary:    TODO
+Group:      Development/Libraries
+Requires:   %{name} = %{version}-%{release}
+
+%description devel
+Sensor/Actuator repository for Mraa
+development 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}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*
+%exclude %{_libdir}/*/examples/*
+