.spec cosmetics

epel9
Rex Dieter 9 years ago
parent 06d275296c
commit 482292184e

11
.gitignore vendored

@ -1,12 +1 @@
/powerdevil-5.1.95.tar.xz
/powerdevil-5.2.0.tar.xz
/powerdevil-5.2.1.tar.xz
/powerdevil-5.2.2.tar.xz
/powerdevil-5.2.95.tar.xz
/powerdevil-5.3.0.tar.xz
/powerdevil-5.3.1.tar.xz
/powerdevil-5.3.2.tar.xz
/powerdevil-5.4.0.tar.xz
/powerdevil-5.4.1.tar.xz
/powerdevil-5.4.2.tar.xz
/powerdevil-5.4.3.tar.xz

@ -1,10 +1,10 @@
Name: powerdevil
Name: powerdevil
Version: 5.4.3
Release: 1%{?dist}
Summary: Manages the power consumption settings of a Plasma Shell
Release: 2%{?dist}
Summary: Manages the power consumption settings of a Plasma Shell
License: GPLv2+
URL: https://projects.kde.org/projects/kde/workspace/powerdevil
License: GPLv2+
URL: https://projects.kde.org/projects/kde/workspace/powerdevil
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
@ -12,38 +12,36 @@ URL: https://projects.kde.org/projects/kde/workspace/powerdevil
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz
Patch0: powerdevil-enable-upower.patch
# TODO: document why this is (still) needed and not yet upstreamed? -- rex
Patch0: powerdevil-enable-upower.patch
BuildRequires: libxcb-devel
BuildRequires: xcb-util-keysyms-devel
BuildRequires: xcb-util-image-devel
BuildRequires: xcb-util-wm-devel
BuildRequires: libXrandr-devel
BuildRequires: systemd-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtx11extras-devel
BuildRequires: kf5-rpm-macros
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: kf5-kactivities-devel
BuildRequires: kf5-kauth-devel
BuildRequires: kf5-kidletime-devel
BuildRequires: kf5-kconfig-devel
BuildRequires: kf5-solid-devel
BuildRequires: kf5-ki18n-devel
BuildRequires: kf5-kdelibs4support-devel
BuildRequires: kf5-kglobalaccel-devel
BuildRequires: kf5-ki18n-devel
BuildRequires: kf5-kidletime-devel
BuildRequires: kf5-kio-devel
BuildRequires: kf5-kwindowsystem-devel
BuildRequires: kf5-plasma-devel
BuildRequires: kf5-knotifyconfig-devel
BuildRequires: kf5-kdelibs4support-devel
BuildRequires: kf5-kscreen-devel
BuildRequires: kf5-kactivities-devel
BuildRequires: kf5-kwindowsystem-devel
BuildRequires: kf5-plasma-devel
BuildRequires: kf5-rpm-macros
BuildRequires: kf5-solid-devel
BuildRequires: libxcb-devel
BuildRequires: libXrandr-devel
BuildRequires: plasma-workspace-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtx11extras-devel
BuildRequires: systemd-devel
BuildRequires: xcb-util-image-devel
BuildRequires: xcb-util-keysyms-devel
BuildRequires: xcb-util-wm-devel
Requires: kf5-filesystem
@ -51,49 +49,55 @@ Requires: kf5-filesystem
Powerdevil is an utility for powermanagement. It consists
of a daemon (a KDED module) and a KCModule for its configuration.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .enable-upower
%build
mkdir -p %{_target_platform}
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} ..
popd
make %{?_smp_mflags} -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang powerdevil5 --with-qt --with-kde --all-name
%find_lang powerdevil5 --with-qt --all-name
# Don't bother with -devel
rm %{buildroot}/%{_libdir}/libpowerdevil{configcommonprivate,core,ui}.so
%post -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f powerdevil5.lang
%doc COPYING
%config %{_sysconfdir}/dbus-1/system.d/org.kde.powerdevil.backlighthelper.conf
%{_libdir}/libpowerdevilconfigcommonprivate.so.*
%{_libdir}/libpowerdevilcore.so.*
%{_libdir}/libpowerdevilui.so.*
%{_kf5_qtplugindir}/*.so
%{_kf5_libexecdir}/kauth/backlighthelper
%license COPYING
%{_sysconfdir}/dbus-1/system.d/org.kde.powerdevil.backlighthelper.conf
%{_datadir}/dbus-1/system-services/org.kde.powerdevil.backlighthelper.service
%{_datadir}/polkit-1/actions/org.kde.powerdevil.backlighthelper.policy
%{_kf5_libexecdir}/kauth/backlighthelper
%{_kf5_libdir}/libpowerdevilconfigcommonprivate.so.*
%{_kf5_libdir}/libpowerdevilcore.so.*
%{_kf5_libdir}/libpowerdevilui.so.*
%{_kf5_qtplugindir}/*.so
%{_kf5_datadir}/knotifications5/powerdevil.notifyrc
%{_kf5_datadir}/kservices5/*.desktop
%{_kf5_datadir}/kservices5/kded/*.desktop
%{_kf5_datadir}/kservicetypes5/*.desktop
%{_datadir}/polkit-1/actions/org.kde.powerdevil.backlighthelper.policy
%{_datadir}/doc/HTML/en/kcontrol/powerdevil
%dir %{_kf5_docdir}/HTML/en/kcontrol/
%{_kf5_docdir}/HTML/en/kcontrol/powerdevil/
%changelog
* Wed Nov 18 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.3-2
- .spec cosmetics
* Thu Nov 05 2015 Daniel Vrátil <dvratil@fedoraproject.org> - 5.4.3-1
- Plasma 5.4.3

Loading…
Cancel
Save