Browse Source

xdg-utils: add htmlview as compat script, add O: htmlview, add P: htmlview

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3651 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 13 years ago
parent
commit
b625fa4877
2 changed files with 21 additions and 2 deletions
  1. 9 0
      x/xdg-utils/htmlview.sh
  2. 12 2
      x/xdg-utils/xdg-utils-vl.spec

+ 9 - 0
x/xdg-utils/htmlview.sh

@@ -0,0 +1,9 @@
+#!/bin/sh
+# htmlview compat script
+
+if [ $# -gt 0 ]; then
+ exec /usr/bin/xdg-open "$@"
+else
+ exec /usr/bin/xdg-open http://vinelinux.org/
+fi
+

+ 12 - 2
x/xdg-utils/xdg-utils-vl.spec

@@ -2,12 +2,13 @@ Summary: Basic desktop integration functions
 Summary(ja): デスクトップ統合の基本機能
 Name:    xdg-utils
 Version: 1.1.0
-Release: 0.rc1%{?_dist_release}
+Release: 1.rc1%{?_dist_release}
 URL:     http://portland.freedesktop.org/
 License: MIT 
 Group:   System Environment/Base
 
 Source0: http://portland.freedesktop.org/download/xdg-utils-%{version}-rc1.tar.gz
+Source1: htmlview.sh
 Patch1: xdg-utils-1.1.0-browser.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
@@ -17,6 +18,9 @@ Requires: coreutils
 Requires: desktop-file-utils
 Requires: which
 
+Obsoletes: htmlview
+Provides: htmlview
+
 Vendor: Project Vine
 Distribution: Vine Linux
 Packager: daisuke
@@ -76,12 +80,13 @@ xdg-utils パッケージは、Linux を含むさまざまな自由デスクト
 
 %__make %{?_smp_mflags}
 
-
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %__make install DESTDIR=$RPM_BUILD_ROOT
 
+install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/htmlview
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -89,9 +94,14 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %doc ChangeLog LICENSE README TODO
 %{_bindir}/xdg-*
+%{_bindir}/htmlview
 %{_mandir}/man1/xdg-*
 
 %changelog
+* Fri Apr 22 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.0-1.rc1
+- add htmlview compatibility script
+- add Obsoletes: htmlview, add Provides: htmlview
+
 * Tue Apr 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.0-0.rc1
 - update to 1.1.0-rc1