Files
packages/anda/lib/deviceinfo/deviceinfo.spec
T
Owen Zimmerman 5577258f44 chore: update license identifiers in lib folder, use %conf and some other small changes (#11507)
* chore: update license itentifiers in lib folder, use %conf and some other small changes

Signed-off-by: Owen-sz <owen@fyralabs.com>

* fix (libayatana-common): bdep gcc-c++

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

---------

Signed-off-by: Owen-sz <owen@fyralabs.com>
Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
2026-04-20 11:30:44 -05:00

65 lines
1.6 KiB
RPMSpec

%global forgeurl https://gitlab.com/ubports/development/core/deviceinfo
%global commit 41a4e2b50c18a4650cd3c3dae83cce72017fa74b
%forgemeta
Name: deviceinfo
Version: 0.2.4
Release: 2%?dist
Summary: Library to detect and configure devices
License: GPL-3.0-or-later
URL: https://gitlab.com/ubports/development/core/deviceinfo
Source0: %{url}/-/archive/%commit/deviceinfo-%commit.tar.gz
BuildRequires: cmake
BuildRequires: cmake-extras
BuildRequires: pkgconfig(yaml-cpp)
BuildRequires: gcc-c++
BuildRequires: gtest-devel
BuildRequires: gmock-devel
%description
Library to detect and configure devices for Lomiri.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -n deviceinfo-%commit
%conf
%cmake
%build
%cmake_build
%install
%cmake_install
install -Dm644 tools/device-info.1 %{buildroot}%{_mandir}/man1/device-info.1
%files
%license LICENSE
%dir %{_sysconfdir}/deviceinfo
%config %{_sysconfdir}/deviceinfo/default.yaml
%dir %{_sysconfdir}/deviceinfo/devices
%config %{_sysconfdir}/deviceinfo/devices/*.yaml
%dir %{_sysconfdir}/deviceinfo/sensorfw
%config %{_sysconfdir}/deviceinfo/sensorfw/*.conf
%{_bindir}/device-info
%{_mandir}/man1/device-info.1.gz
%{_libdir}/libdeviceinfo.so.*
%files devel
%dir %{_includedir}/deviceinfo
%{_includedir}/deviceinfo/deviceinfo.h
/usr/include/deviceinfo/deviceinfo_c_api.h
%{_libdir}/libdeviceinfo.so
%{_libdir}/pkgconfig/deviceinfo.pc
%changelog
%autochangelog