From 35facf7e72226412a00978a7eec7eab30fee1875 Mon Sep 17 00:00:00 2001 From: Mystro256 Date: Feb 23 2018 23:30:58 +0000 Subject: Update to 1.1, add weak dependency on kernel-tools --- diff --git a/.gitignore b/.gitignore index 3dcb859..5af1a11 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /0.8.tar.gz /0.9.tar.gz /1.0.tar.gz +/1.1.tar.gz diff --git a/sources b/sources index 8595d36..666b0f8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (1.0.tar.gz) = ae3a14cf4b89c3ab2376ac7feaa60d5125850b3afccf8aa7414376eed47294886981f38578901e87489741da2c0904906a0fea7c50119662aad68aa6a8c7d4b3 +SHA512 (1.1.tar.gz) = 3400f2b6c249fd2e1bbbc61f23e3450ff90fabb8dd74f2903ce1f0d07e7ce3d1e61b07295736138d4697235dbee9157d3f32a8d296a649c93f73e03e3555af1e diff --git a/tlp.spec b/tlp.spec index f383a99..c729ba1 100644 --- a/tlp.spec +++ b/tlp.spec @@ -1,6 +1,6 @@ Name: tlp -Version: 1.0 -Release: 3%{?dist} +Version: 1.1 +Release: 1%{?dist} Summary: Advanced power management tool for Linux License: GPLv2+ URL: http://linrunner.de/en/tlp/tlp.html @@ -10,6 +10,7 @@ Source1: 50-tlp.preset BuildRequires: perl-generators BuildRequires: systemd +BuildRequires: libappstream-glib #The following requires are not detected: Requires: ethtool @@ -21,8 +22,7 @@ Requires: systemd Requires: udev Requires: usbutils Requires: pciutils -##This should be changed to a rich require when supported, available to s390x: -#Requires: kernel-tools +Recommends: kernel-tools #Note: Conflicts with laptop-mode-tools #Makes sure laptop_mode isn't being used: @@ -61,6 +61,10 @@ make install-man DESTDIR=%{buildroot} #Install preset (source 1): install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_presetdir}/50-tlp.preset +%check +appstream-util validate-relax --nonet \ + %{buildroot}/%{_datadir}/metainfo/*.xml + %files %config(noreplace) %{_sysconfdir}/default/tlp %doc COPYING LICENSE README @@ -73,6 +77,7 @@ install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_presetdir}/50-tlp.preset %{_datadir}/bash-completion/completions/* %{_presetdir}/50-tlp.preset %{_unitdir}/*.service +%{_datadir}/metainfo/*.metainfo.xml %files rdw %doc COPYING LICENSE README @@ -100,6 +105,10 @@ fi /bin/systemctl enable NetworkManager-dispatcher.service >/dev/null 2>&1 || : %changelog +* Fri Feb 23 2018 Jeremy Newton - 1.1-1 +- Update to 1.1 +- Add weak require for kernel-tools + * Sun Sep 03 2017 Jeremy Newton - 1.0-3 - Remove kernel-tools require, fixes s390x