mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-12 14:40:39 +00:00
feat: add qmenumodel (#329)
Signed-off-by: cat-master21 <96554164+cat-master21@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "qmenumodel.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
Name: qmenumodel
|
||||
Version: 0.9.1
|
||||
Release: %autorelease
|
||||
Summary: Qt5 renderer for Ayatana Indicators
|
||||
License: LGPLv3
|
||||
URL: https://github.com/AyatanaIndicators/qmenumodel
|
||||
Source0: https://releases.ayatana-indicators.org/source/qmenumodel/qmenumodel-%{version}.tar.gz
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: cmake-extras
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: qt5-doctools
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: qt5-qtdeclarative-devel
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(gio-2.0)
|
||||
BuildRequires: dbus-test-runner
|
||||
|
||||
%description
|
||||
Qt bindings for GMenuModel that allows connecting to a menu model exposed on
|
||||
D-Bus and presents it as a list model. It can be used to expose indicator or
|
||||
application menus for applications using the Qt framework.
|
||||
|
||||
%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 qmenumodel-%{version}
|
||||
|
||||
%build
|
||||
%cmake -DENABLE_TESTS=ON -DENABLE_COVERAGE=ON -DGENERATE_DOC=ON
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%files
|
||||
%license COPYING.LGPL
|
||||
%{_libdir}/libqmenumodel.so.*
|
||||
%dir %{_qt5_qmldir}/QMenuModel.1
|
||||
%{_qt5_qmldir}/QMenuModel.1/libqmenumodel-qml.so
|
||||
%{_qt5_qmldir}/QMenuModel.1/qmldir
|
||||
|
||||
%files devel
|
||||
%dir %{_includedir}/qmenumodel
|
||||
%{_includedir}/qmenumodel/*.h
|
||||
%{_libdir}/libqmenumodel.so
|
||||
%{_libdir}/pkgconfig/qmenumodel.pc
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Reference in New Issue
Block a user