File qtransparency.spec of Package qtransparency
#
# spec file for package qtransparency
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _name transparen
Name: qtransparency
Version: 2.9.0
Release: 0
License: GPL-2.0
Summary: A set of transparent applications
Url: http://hugo.pereira.free.fr/software/index.php?page=software&full=1
Group: System/X11/Utilities
Source: %{_name}cy-%{version}.tar.gz
BuildRequires: aspell-devel
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: gcc-c++
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: pkgconfig(xcb-shape)
BuildRequires: pkgconfig(zlib)
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Transparency is a set of transparent applications:
* a transparent calendar;
* a transparent analog clock;
* a transparent CPU load display for user, nice and system jobs, based on /proc/stat file;
* a transparent display for memory and swap load, based on /proc/meminfo file;
* a transparent display for network load, based on /proc/net/dev file;
* a transparent display for disk load, based on /proc/stat, /proc/partitions and /dev informations;
* a transparent display to monitor laptop's battery
* a transparent summary of all previous informations in text format;
* a basic transparent image viewer, ImageView.
%prep
%setup -q -n %{_name}cy-%{version}
%build
%cmake \
-DUSE_QT5=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?_smp_mflags}
%install
%__make VERBOSE=1 DESTDIR=%{buildroot} install/strip/fast -C build
install -dm 0755 %{buildroot}%{_datadir}/{applications,pixmaps}
install -Dm 0644 %{_name}*.desktop %{buildroot}%{_datadir}/applications
install -Dm 0644 %{_name}cy.png %{buildroot}%{_datadir}/pixmaps
install -Dm 0644 memory/%{_name}t-memory-load.png %{buildroot}%{_datadir}/pixmaps
install -Dm 0644 summary/%{_name}t-system-monitor.png %{buildroot}%{_datadir}/pixmaps
install -Dm 0644 cpu/%{_name}t-cpu-load.png %{buildroot}%{_datadir}/pixmaps
install -Dm 0644 clock/%{_name}t-clock.png %{buildroot}%{_datadir}/pixmaps
install -Dm 0644 disk/%{_name}t-disk-load.png %{buildroot}%{_datadir}/pixmaps
install -Dm 0644 pictures/%{_name}t-picture-viewer.png %{buildroot}%{_datadir}/pixmaps
install -Dm 0644 network/%{_name}t-network-load.png %{buildroot}%{_datadir}/pixmaps
install -Dm 0644 calendar/%{_name}t-calendar.png %{buildroot}%{_datadir}/pixmaps
install -Dm 0644 acpi/%{_name}t-acpi.png %{buildroot}%{_datadir}/pixmaps
%suse_update_desktop_file -r %{_name}t-clock Qt Utility DesktopUtility TimeUtility
%suse_update_desktop_file -r %{_name}cy-settings Qt Utility DesktopUtility
%suse_update_desktop_file -r %{_name}cy Qt Utility DesktopUtility
%suse_update_desktop_file -r %{_name}t-calendar Qt Utility DesktopUtility TimeUtility
%suse_update_desktop_file -r %{_name}t-pictures Qt Graphics Viewer
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/%{_name}*
%{_datadir}/applications/%{_name}*.desktop
%{_datadir}/pixmaps/%{_name}*.png