mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-02 01:42:18 +00:00
6acd48643b
* chore: sync with Terra 38 * bump: libappimage * fix(ci): add lint and `dnf in` tests * fix(ci): bump commit-comment to @v2 Signed-off-by: madomado <wboy111@outlook.com> --------- Signed-off-by: madomado <wboy111@outlook.com>
84 lines
2.1 KiB
RPMSpec
84 lines
2.1 KiB
RPMSpec
%global forgeurl https://gitlab.com/ubports/development/core/lomiri-api
|
|
%global commit 9e2618e1a68f114581dad9f624bd509d46c9d984
|
|
%forgemeta
|
|
|
|
Name: lomiri-api
|
|
Version: 0.2.1
|
|
Release: 2%{?dist}
|
|
Summary: API for Lomiri
|
|
|
|
License: LGPL-3.0-or-later
|
|
URL: https://gitlab.com/ubports/development/core/lomiri-api
|
|
Source0: %{url}/-/archive/%commit/lomiri-api-%commit.tar.gz
|
|
|
|
BuildRequires: cmake
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: g++
|
|
BuildRequires: gcc
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
BuildRequires: pkgconfig(Qt5Quick)
|
|
BuildRequires: cppcheck
|
|
BuildRequires: doxygen
|
|
BuildRequires: fdupes
|
|
|
|
%description
|
|
API to interface with the Lomiri desktop environment.
|
|
|
|
%package devel
|
|
Summary: API library for Lomiri
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
This package contains development files needed for Lomiri API.
|
|
|
|
%package doc
|
|
Summary: Documenation for %{name}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
The %{name}-doc contains documentation for %{name}.
|
|
|
|
%prep
|
|
%autosetup -n lomiri-api-%commit
|
|
|
|
%build
|
|
# Requires static file that Fedora doesn't package
|
|
sed -i 's/add_subdirectory(gtest)//' test/CMakeLists.txt
|
|
# Hard-coded for Debians libdir
|
|
sed -i 's?lib/${CMAKE_LIBRARY_ARCHITECTURE}?%{_lib}?' CMakeLists.txt
|
|
%cmake -DCMAKE_INSTALL_LIBDIR=%{_lib}
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
%fdupes %buildroot%_docdir/liblomiri-api
|
|
|
|
%files
|
|
%doc README
|
|
%license COPYING
|
|
%{_libdir}/liblomiri-api.so.*
|
|
|
|
%files devel
|
|
%{_libdir}/liblomiri-api.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%dir %{_includedir}/lomiri
|
|
%{_includedir}/lomiri/*.h
|
|
%dir %{_includedir}/lomiri/api
|
|
%{_includedir}/lomiri/api/*.h
|
|
%dir %{_includedir}/lomiri/shell
|
|
%dir %{_includedir}/lomiri/shell/application
|
|
%{_includedir}/lomiri/shell/application/*.h
|
|
%dir %{_includedir}/lomiri/shell/launcher
|
|
%{_includedir}/lomiri/shell/launcher/*.h
|
|
%dir %{_includedir}/lomiri/shell/notifications
|
|
%{_includedir}/lomiri/shell/notifications/*.h
|
|
%dir %{_includedir}/lomiri/util
|
|
%{_includedir}/lomiri/util/*.h
|
|
|
|
%files doc
|
|
%{_docdir}/liblomiri-api/
|
|
|
|
%changelog
|
|
%autochangelog
|