[apcupsd] Remove --vendor flag to desktop-file-install on F19+
Toshio くらとみ
toshio at fedoraproject.org
Thu Feb 14 21:01:24 UTC 2013
commit c96b4bc2c8ada06331b2ed4538c4036e1aabb1d2
Author: Toshio Kuratomi <toshio at fedoraproject.org>
Date: Thu Feb 14 13:01:14 2013 -0800
Remove --vendor flag to desktop-file-install on F19+
apcupsd.spec | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/apcupsd.spec b/apcupsd.spec
index 4056699..7b109c4 100644
--- a/apcupsd.spec
+++ b/apcupsd.spec
@@ -1,6 +1,6 @@
Name: apcupsd
Version: 3.14.10
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: APC UPS Power Control Daemon for Linux
Group: System Environment/Daemons
@@ -119,7 +119,10 @@ install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -d %{buildroot}%{_sysconfdir}/httpd/conf.d
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
-desktop-file-install --vendor="fedora" \
+desktop-file-install \
+%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7)
+ --vendor="fedora" \
+%endif
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
--delete-original \
${RPM_BUILD_ROOT}%{_datadir}/applications/gapcmon.desktop
@@ -162,7 +165,7 @@ rm -rf $RPM_BUILD_ROOT
%files gui
%defattr(-,root,root,-)
%{_bindir}/gapcmon
-%{_datadir}/applications/fedora-gapcmon.desktop
+%{_datadir}/applications/*gapcmon.desktop
%{_datadir}/pixmaps/apcupsd.png
%{_datadir}/pixmaps/charging.png
%{_datadir}/pixmaps/gapc_prefs.png
@@ -182,6 +185,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Feb 14 2013 Toshio Kuratomi <toshio at fedoraproject.org> - 3.14.10-9
+- Remove --vendor flag to desktop-file-install on F19+
+
* Tue Feb 05 2013 Michal Hlavinka <mhlavink at redhat.com> - 3.14.10-8
- remove obsolete documentation
More information about the scm-commits
mailing list