[leafpad] Add conditionals.
Jon Ciesla
limb at fedoraproject.org
Wed Apr 24 19:19:56 UTC 2013
commit b665137d487cdc476e0a542b792a43c235a71c8a
Author: Jon Ciesla <limburgher at gmail.com>
Date: Wed Apr 24 14:16:00 2013 -0500
Add conditionals.
leafpad.spec | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/leafpad.spec b/leafpad.spec
index 88bc9ff..208e033 100644
--- a/leafpad.spec
+++ b/leafpad.spec
@@ -1,6 +1,10 @@
+%if 0%{?fedora} && 0%{?fedora} < 19
+%global with_desktop_vendor_tag 1
+%endif
+
Name: leafpad
Version: 0.8.18.1
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: GTK+ based simple text editor
@@ -36,6 +40,9 @@ rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
+%if %{with_desktop_vendor_tag}
+ --vendor fedora
+%endif
--delete-original \
$RPM_BUILD_ROOT%{_datadir}/applications/leafpad.desktop
%find_lang %{name}
@@ -66,6 +73,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_datadir}/pixmaps/leafpad.*
%changelog
+* Wed Apr 24 2013 Jon Ciesla <limburgher at gmail.com> - 0.8.18.1-8
+- Added conditionals.
+
* Wed Apr 24 2013 Jon Ciesla <limburgher at gmail.com> - 0.8.18.1-7
- Drop desktop vendor tag.
More information about the scm-commits
mailing list