[hexchat] add el6 support
tingping
tingping at fedoraproject.org
Sun Jan 13 07:49:12 UTC 2013
commit 669a1e7ae38d291ade984b678bf6ea577b280fcb
Author: TingPing <tingping at tingping.se>
Date: Sun Jan 13 02:45:54 2013 -0500
add el6 support
.gitignore | 1 +
hexchat.spec | 9 ++++++---
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..64b19b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hexchat-2.9.4.tar.xz
diff --git a/hexchat.spec b/hexchat.spec
index 359ecf1..883dac8 100644
--- a/hexchat.spec
+++ b/hexchat.spec
@@ -49,10 +49,13 @@ rm -f %{buildroot}%{_sysconfdir}/gconf/schemas/apps_hexchat_url_handler.schemas
# Fix opening irc:// links by adding mimetype and editing exec
desktop-file-install \
- --delete-original \
--add-mime-type='x-scheme-handler/irc;x-scheme-handler/ircs' \
- --set-key=Exec --set-value='sh -c "hexchat --existing --url %U || exec hexchat"' \
- %{buildroot}/%{_datadir}/applications/hexchat.desktop
+ --remove-key=Exec \
+ --dir=%{buildroot}%{_datadir}/applications/ \
+ %{buildroot}%{_datadir}/applications/hexchat.desktop
+
+# Workaround for EL's version of desktop-file-install
+echo Exec="sh -c \"hexchat --existing --url %U || exec hexchat\"">>%{buildroot}%{_datadir}/applications/hexchat.desktop
%find_lang %{name}
More information about the scm-commits
mailing list