Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > bfc77cee29838ff639f65a8a9f4383f6 > files > 6

albert-0.14.21-4.2.mga7.src.rpm

%global plugincommit 67a7a34734c4665dcb1a504432de5d2e5a56ac90
%global pluginshortcommit %(c=%{plugincommit}; echo ${c:0:7})
%global pythoncommit b9099037dec445bf5f2a91331e4d0ac4b3fb4dcc
%global pythonshortcommit %(c=%{pythoncommit}; echo ${c:0:7})
%global __python %__python3

Name: albert
Version: 0.14.21
%define subrel 2
Release: %mkrel 4
Summary: A fast and flexible keyboard launcher
License: GPLv2+
Group: Graphical desktop/Other
URL: https://github.com/albertlauncher/albert
Source0: https://github.com/albertlauncher/albert/archive/v%{version}/albert-%{version}.tar.gz
Source1: https://github.com/albertlauncher/plugins/archive/%{plugincommit}/%{name}-plugins-%{pluginshortcommit}.tar.gz
Source2: https://github.com/albertlauncher/python/archive/%{pythoncommit}/%{name}-python-%{pythonshortcommit}.tar.gz
Patch0: albert-0.14.18-fix-linking.patch
Patch1: albert-0.14.18-find-and-use-python-libraries-and-headers.patch

BuildRequires: cmake
BuildRequires: pybind11-devel
BuildRequires: pkgconfig(muparser)
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(libqalculate) >= 2.2.1
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)

# Required for notify-send, used for un-implemented actions:
Requires: libnotify
# mga#25029
Requires: qt5-database-plugin-sqlite

%description
Access everything with virtually zero effort. Run applications, open files
or their paths, open bookmarks in your browser, search the web, calculate
things and a lot more …

Albert is a desktop agnostic launcher. Its goals are usability and beauty,
performance and extensibility. It is written in C++ and based on the Qt
framework.

%prep
%setup -q -a 1 -a 2
rmdir plugins
mv plugins-%{plugincommit} plugins
rmdir plugins/python/share/modules
mv python-%{pythoncommit} plugins/python/share/modules
rmdir plugins/python/pybind11
%patch0 -p1 -b .fixbuild
%patch1 -p1 -b .findpython -d plugins
perl -pi -e 's/^.*pybind11.*$//g' plugins/python/CMakeLists.txt
perl -pi -e 's|lib/albert|%{_lib}|g' {application,lib{,/albertcore,/globalshortcut,/xdg},plugins}/CMakeLists.txt
perl -pi -e 's|lib/albert|%{_lib}/albert|g' {application,plugins}/CMakeLists.txt

%build
%cmake_qt5 -DBUILD_VIRTUALBOX=no \
           -DCMAKE_INSTALL_LIBDIR="%{_lib}" \
           -DCMAKE_SKIP_RPATH=OFF
%make_build

%install
%make_install -C build

%files
%{_bindir}/albert
%{_datadir}/albert/
%{_iconsdir}/hicolor/scalable/apps/albert.svg
%{_datadir}/applications/albert.desktop
%{_libdir}/albert/


%changelog
* Sun Jul 07 2019 daviddavid <daviddavid> 0.14.21-4.2.mga7
+ Revision: 1419361
- disable rpath
- fix cmake lib install dir
- add missing dependency on qt5-database-plugin-sqlite (mga#25029)

* Fri Mar 29 2019 umeabot <umeabot> 0.14.21-4.mga7
+ Revision: 1381221
- Qt5 Rebuild

* Wed Jan 09 2019 daviddavid <daviddavid> 0.14.21-3.mga7
+ Revision: 1353052
- rebuild for new Python 3.7

* Fri Sep 21 2018 umeabot <umeabot> 0.14.21-2.mga7
+ Revision: 1294638
- Mageia 7 Mass Rebuild

* Thu Jun 14 2018 buchan <buchan> 0.14.21-1.mga7
+ Revision: 1236859
- Update to 0.14.21
- update submodule sources accordingly
- BR qt5qml-devel
- Update to 0.14.18
- Drop patches that were upstreamed
- Add sources for the plugins that were moved to submodules
- Switch to python 3 (some python plugins now use python 3 features)
- BR pybind11-devel and qalculate-devel
- Move internal libraries to an application-specific directory

* Mon Dec 11 2017 buchan <buchan> 0.12.0-1.mga7
+ Revision: 1182244
- imported package albert