File albert.spec.fedora41 of Package albert

Name:           albert
Version:        0.0.0
Release:        0%{?dist}
Summary:        Plugin-based keyboard launcher
Source:         %{name}-%{version}.tar.gz
License:        custom
Group:          User Interface/X
URL:            https://albertlauncher.github.io/
Packager:       Manuel Schneider

BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
BuildRequires:  pkgconfig(Qt6Concurrent) >= 6.2
BuildRequires:  pkgconfig(Qt6Core) >= 6.2
BuildRequires:  pkgconfig(Qt6DBus) >= 6.2
BuildRequires:  pkgconfig(Qt6Gui) >= 6.2
BuildRequires:  pkgconfig(Qt6Network) >= 6.2
BuildRequires:  pkgconfig(Qt6Sql) >= 6.2
BuildRequires:  pkgconfig(Qt6StateMachine) >= 6.2
BuildRequires:  pkgconfig(Qt6Svg) >= 6.2
BuildRequires:  pkgconfig(Qt6Widgets) >= 6.2
BuildRequires:  pkgconfig(libarchive)
BuildRequires:  pkgconfig(libqalculate)
BuildRequires:  pkgconfig(python3)
BuildRequires:  pkgconfig(Qt6Linguist)
%if 0%{?suse_version}
BuildRequires:  qt6-declarative-devel
%else
BuildRequires:  qt6-qtdeclarative
%endif

Requires: python3-pip
%if 0%{?suse_version}
Requires:  qt6-qt5compat-imports
Requires:  qt6-scxml-imports
Requires:  qt6-sql-sqlite
%else
Requires:  qt6-qt5compat
%endif

BuildRoot:      %{_tmppath}/%{name}-v%{version}-build

%description
Albert is a desktop agnostic keyboard launcher that helps you to accomplish your workflows in a breeze.

# https://github.com/albertlauncher/albert/issues/1470
%global debug_package %{nil}

%prep
%setup

%build
%cmake -DBUILD_PLUGIN_DEBUG=OFF
%cmake_build

%install
%cmake_install

%if 0%{?suse_version}
%suse_update_desktop_file albert Utility DesktopUtility

%post -p /sbin/ldconfig
%desktop_database_post
%icon_theme_cache_post

%postun -p /sbin/ldconfig
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files
%doc README.md
%{_bindir}/albert
%{_datadir}/applications/albert.desktop
%{_datadir}/icons/hicolor/scalable/apps/albert.svg
%{_datadir}/albert/
%{_libdir}/albert/
%{_libdir}/libalbert.so*


%package devel
Summary: Albert plugin development files
Requires: %{name} = %{version}
Requires:  cmake
Requires:  gcc-c++

%description devel
Pulls packages and provides header files required for Albert plugin development

%files devel
%{_includedir}/albert/
%{_libdir}/cmake/Albert/

%changelog

* Fri Oct 27 2017 Manuel Schneider <manuelschneid3r@gmail.com>

- See https://raw.githubusercontent.com/albertlauncher/albert/master/CHANGELOG.md

openSUSE Build Service is sponsored by