|
 |
bcbe6bf |
# Nodejs >= 12 is not supported by current versions of SWIG.
|
|
 |
bcbe6bf |
%bcond_with nodejs_pkg
|
|
 |
bcbe6bf |
|
|
 |
bcbe6bf |
%if %{with nodejs_pkg}
|
|
 |
bcbe6bf |
%global BUILD_NODEJS ON
|
|
 |
bcbe6bf |
%else
|
|
 |
bcbe6bf |
%global BUILD_NODEJS OFF
|
|
 |
bcbe6bf |
%endif
|
|
 |
bcbe6bf |
|
|
 |
d7a1d1b |
Name: upm
|
|
 |
d24b982 |
Version: 2.0.0
|
|
 |
69e9686 |
Release: 9%{?dist}
|
|
 |
d7a1d1b |
Summary: A high level library for sensors and actuators
|
|
 |
d7a1d1b |
License: MIT
|
|
 |
d24b982 |
URL: https://projects.eclipse.org/projects/iot.upm/
|
|
 |
d7a1d1b |
|
|
 |
d24b982 |
Source0: https://github.com/intel-iot-devkit/upm/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
# To quote "Only x86, arm and mock platforms currently supported"
|
|
 |
d7a1d1b |
ExcludeArch: %{power64} s390x
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
BuildRequires: cmake
|
|
 |
d7a1d1b |
BuildRequires: gcc gcc-c++
|
|
 |
d7a1d1b |
BuildRequires: libjpeg-turbo-devel
|
|
 |
d7a1d1b |
BuildRequires: mraa-devel
|
|
 |
bcbe6bf |
%if %{with nodejs_pkg}
|
|
 |
d7a1d1b |
BuildRequires: nodejs-devel nodejs-packaging nodejs-mraa
|
|
 |
bcbe6bf |
%endif
|
|
 |
d7a1d1b |
BuildRequires: python3-devel python3-setuptools python3-mraa
|
|
 |
d7a1d1b |
BuildRequires: swig
|
|
 |
d7a1d1b |
BuildRequires: doxygen graphviz sphinx
|
|
 |
d7a1d1b |
|
|
 |
bcbe6bf |
%if %{without nodejs_pkg}
|
|
 |
bcbe6bf |
Obsoletes: nodejs-upm < %{version}-%{release}
|
|
 |
bcbe6bf |
%endif
|
|
 |
bcbe6bf |
|
|
 |
d7a1d1b |
%description
|
|
 |
d7a1d1b |
UPM is a high level repository that provides software drivers for a wide variety
|
|
 |
d7a1d1b |
of commonly used sensors and actuators. These software drivers interact with the
|
|
 |
d7a1d1b |
underlying hardware platform through calls to MRAA APIs.
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
%package devel
|
|
 |
d7a1d1b |
Summary: Development package for %{name}
|
|
 |
d7a1d1b |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
 |
de033e7 |
Requires: libjpeg-turbo-devel
|
|
 |
de033e7 |
Requires: mraa-devel
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
%description devel
|
|
 |
d7a1d1b |
Files for development with %{name}.
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
%package -n python3-upm
|
|
 |
d7a1d1b |
Summary: Python3 bindings for sensors and actuators
|
|
 |
d7a1d1b |
License: GPLv2+
|
|
 |
d7a1d1b |
%{?python_provide:%python_provide python3-upm}
|
|
 |
d7a1d1b |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
 |
d7a1d1b |
Requires: python3-mraa
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
%description -n python3-upm
|
|
 |
d7a1d1b |
Python3 bindings for sensors and actuators
|
|
 |
d7a1d1b |
|
|
 |
bcbe6bf |
%if %{with nodejs_pkg}
|
|
 |
d7a1d1b |
%package -n nodejs-upm
|
|
 |
d7a1d1b |
Summary: NodeJS package for sensors and actuators
|
|
 |
d7a1d1b |
License: GPLv2+
|
|
 |
d7a1d1b |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
 |
d7a1d1b |
Requires: nodejs-mraa
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
%description -n nodejs-upm
|
|
 |
d7a1d1b |
NodeJS bindings for sensors and actuators
|
|
 |
bcbe6bf |
%endif
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
%prep
|
|
 |
d7a1d1b |
%autosetup -p1
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
find . -name \*.cxx -exec chmod -x {} \;
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
%build
|
|
 |
6a2941d |
%cmake -DBUILDSWIGNODE=%{BUILD_NODEJS} -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_SKIP_RPATH=ON -DUSE_LIB64:BOOL=%["%{?_isa_bits}" == "64" ? "ON" : "OFF"] -DVERSION:STRING=%{version} -DWERROR=OFF
|
|
 |
6a2941d |
%cmake_build
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
%install
|
|
 |
6a2941d |
%cmake_install
|
|
 |
d7a1d1b |
|
|
 |
54b4b9e |
rm -f %{buildroot}/%{_includedir}/upm/upm_utilities.hpp
|
|
 |
5e6e91b |
sed -i '/Requires: jpeg/d' %{buildroot}/%{_libdir}/pkgconfig/upm-vcap.pc
|
|
 |
d7a1d1b |
|
|
 |
bcbe6bf |
%if %{with nodejs_pkg}
|
|
 |
d7a1d1b |
# Symlink nodejs dependencies
|
|
 |
d7a1d1b |
%nodejs_symlink_deps
|
|
 |
bcbe6bf |
%endif
|
|
 |
d7a1d1b |
|
|
 |
de033e7 |
%ldconfig_scriptlets
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
%files
|
|
 |
d7a1d1b |
%license LICENSE
|
|
 |
d7a1d1b |
%doc README.md
|
|
 |
d7a1d1b |
%{_libdir}/lib%{name}*.so.*
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
%files devel
|
|
 |
d7a1d1b |
%{_includedir}/upm/
|
|
 |
d7a1d1b |
%{_datadir}/upm/
|
|
 |
d7a1d1b |
%{_libdir}/pkgconfig/%{name}*.pc
|
|
 |
d7a1d1b |
%{_libdir}/lib%{name}*.so
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
%files -n python3-upm
|
|
 |
d7a1d1b |
%{python3_sitearch}/upm/
|
|
 |
d7a1d1b |
|
|
 |
bcbe6bf |
%if %{with nodejs_pkg}
|
|
 |
d7a1d1b |
%files -n nodejs-upm
|
|
 |
d7a1d1b |
%{nodejs_sitelib}/jsupm_*/
|
|
 |
bcbe6bf |
%endif
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
%changelog
|
|
 |
69e9686 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-9
|
|
 |
69e9686 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
69e9686 |
|
|
 |
ab71ad6 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-8
|
|
 |
ab71ad6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
ab71ad6 |
|
|
 |
4ee0344 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-7
|
|
 |
4ee0344 |
- Rebuilt for Python 3.9
|
|
 |
4ee0344 |
|
|
 |
5e6e91b |
* Wed May 13 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2.0.0-6
|
|
 |
5e6e91b |
- Fix incorrect jpeg devel requires
|
|
 |
5e6e91b |
|
|
 |
bcbe6bf |
* Thu Apr 16 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-5
|
|
 |
bcbe6bf |
- Make the package installable again
|
|
 |
bcbe6bf |
- Disable Nodejs package, as SWIG does not support Nodejs >= 12
|
|
 |
bcbe6bf |
|
|
 |
5085748 |
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
|
|
 |
5085748 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
5085748 |
|
|
 |
58340f4 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-3
|
|
 |
58340f4 |
- Rebuilt for Python 3.8
|
|
 |
58340f4 |
|
|
 |
a2ba9a9 |
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
|
 |
a2ba9a9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
a2ba9a9 |
|
|
 |
d24b982 |
* Thu May 30 2019 Peter Robinson <pbrobinson@fedoraproject.org> 2.0.0-1
|
|
 |
d24b982 |
- New upstream 2.0.0 release
|
|
 |
d24b982 |
|
|
 |
8f7f935 |
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-2
|
|
 |
8f7f935 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
8f7f935 |
|
|
 |
de033e7 |
* Sun Oct 14 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.7.1-1
|
|
 |
de033e7 |
- New upstream 1.7.1 release
|
|
 |
de033e7 |
- Minor cleanups
|
|
 |
de033e7 |
|
|
 |
d7a1d1b |
* Mon Sep 10 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.7.0-2
|
|
 |
d7a1d1b |
- Add nodejs-mraa dep for nodejs-upm sub package
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
* Sun Sep 9 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.7.0-1
|
|
 |
d7a1d1b |
- New upstream 1.7.0 release
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
* Thu Oct 12 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.5.0-1
|
|
 |
d7a1d1b |
- New upstream 1.5.0 release
|
|
 |
d7a1d1b |
|
|
 |
d7a1d1b |
* Tue May 16 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.3.0-1
|
|
 |
d7a1d1b |
- Initial package
|