Blame upm.spec

d7a1d1b
Name:    upm
d24b982
Version: 2.0.0
58340f4
Release: 3%{?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
d7a1d1b
BuildRequires: nodejs-devel nodejs-packaging nodejs-mraa
d7a1d1b
BuildRequires: python3-devel python3-setuptools python3-mraa
d7a1d1b
BuildRequires: swig
d7a1d1b
BuildRequires: doxygen graphviz sphinx
d7a1d1b
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
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
d7a1d1b
d7a1d1b
%prep
d7a1d1b
%autosetup -p1
d7a1d1b
d7a1d1b
find . -name \*.cxx -exec chmod -x {} \;
d7a1d1b
d7a1d1b
%build
d7a1d1b
if [ "%{_libdir}" = "%{_prefix}/lib64" ]; then
d7a1d1b
  %cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_SKIP_RPATH=ON -DUSE_LIB64:BOOL=ON -DVERSION:STRING=%{version} .
d7a1d1b
else
d7a1d1b
  %cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_SKIP_RPATH=ON -DUSE_LIB64:BOOL=OFF -DVERSION:STRING=%{version} .
d7a1d1b
fi
d7a1d1b
de033e7
%make_build
d7a1d1b
d7a1d1b
%install
de033e7
%make_install
d7a1d1b
54b4b9e
rm -f %{buildroot}/%{_includedir}/upm/upm_utilities.hpp
d7a1d1b
d7a1d1b
# Symlink nodejs dependencies
d7a1d1b
%nodejs_symlink_deps
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
d7a1d1b
%files -n nodejs-upm
d7a1d1b
%{nodejs_sitelib}/jsupm_*/
d7a1d1b
d7a1d1b
%changelog
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