Author: peroyvind
Date: Wed Feb  7 20:34:56 2007
New Revision: 117318

Added:
   packages/cooker/mailcap/current/SOURCES/mailcap-2.0.4-java-web-start.patch
Modified:
   packages/cooker/mailcap/current/SPECS/mailcap.spec

Log:
add java web start type
cosmetics

Added: 
packages/cooker/mailcap/current/SOURCES/mailcap-2.0.4-java-web-start.patch
==============================================================================
--- (empty file)
+++ packages/cooker/mailcap/current/SOURCES/mailcap-2.0.4-java-web-start.patch  
Wed Feb  7 20:34:56 2007
@@ -0,0 +1,18 @@
+--- mailcap-2.0.4/mime.types~  2001-06-29 15:58:10.000000000 +0200
++++ mailcap-2.0.4/mime.types   2007-02-07 20:23:14.000000000 +0100
+@@ -164,6 +164,7 @@ application/x-gtar         gtar
+ application/x-gzip
+ application/x-hdf             hdf
+ application/x-javascript      js
++application/x-java-jnlp-file  jnlp
+ application/x-koan            skp skd skt skm
+ application/x-latex           latex
+ application/x-netcdf          nc cdf
+--- mailcap-2.0.4/mailcap~     2007-02-07 20:16:12.000000000 +0100
++++ mailcap-2.0.4/mailcap      2007-02-07 20:24:35.000000000 +0100
+@@ -191,3 +191,5 @@ application/applefile; rcvAppleSingle %s
+ # foo/bar; echo not mosaic
+ 
+ text/html; /usr/bin/links '%s'; needsterminal; description=HTML Text; 
nametemplate=%s.html
++
++type=application/x-java-jnlp-file; description="Java Web Start"; exts="jnlp"

Modified: packages/cooker/mailcap/current/SPECS/mailcap.spec
==============================================================================
--- packages/cooker/mailcap/current/SPECS/mailcap.spec  (original)
+++ packages/cooker/mailcap/current/SPECS/mailcap.spec  Wed Feb  7 20:34:56 2007
@@ -1,22 +1,23 @@
 # Defined in CVS makefile.
-%define name           mailcap
-%define version        2.0.4
-%define release        %mkrel 14
-
-Summary:               Associates helper applications with particular file 
types
-Name:                  %{name}
-Version:               %{version}
-Release:               %{release}
-License:             Public Domain
-Group:                 System/Configuration/Networking 
+%define        name    mailcap
+%define        version 2.0.4
+%define        release %mkrel 15
+
+Summary:       Associates helper applications with particular file types
+Name:          %{name}
+Version:       %{version}
+Release:       %{release}
+License:       Public Domain
+Group:         System/Configuration/Networking 
 # get the source from our cvs repository (see
 # http://www.linuxmandrake.com/en/cvs.php3)
-Source0:               %{name}-%{version}.tar.bz2
-Source1:               mimetypes
-Patch0:                mailcap-2.0.4.patch.bz2
-Url:                   
http://archive.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/mailcap.html
-BuildArchitectures:    noarch
-BuildRoot:             %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+Source0:       %{name}-%{version}.tar.bz2
+Source1:       mimetypes
+Patch0:                mailcap-2.0.4.patch.bz2
+Patch1:                mailcap-2.0.4-java-web-start.patch
+Url:           
http://archive.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/mailcap.html
+BuildArch:     noarch
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 
 %description
 The mailcap file is used by the metamail program.  Metamail reads the
@@ -30,39 +31,37 @@
 
 %prep
 %setup -q
-%patch0 -p 1 -b .mdk
+%patch0 -p1 -b .mdk
+%patch1 -p1 -b .javastart
 
 %build
 
 %install
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 perl -pi -e "s!/usr/man!%{_mandir}!g" Makefile
 %makeinstall
-mv $RPM_BUILD_ROOT/etc/mailcap $RPM_BUILD_ROOT/etc/mailcap.base
-mkdir -p $RPM_BUILD_ROOT/etc/menu-methods
-install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/menu-methods/mailcap
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(-,root,root)
-%doc ChangeLog
-%config(noreplace) /etc/mailcap.base
-%config(noreplace) /etc/mailcap.vga
-%config(noreplace) /etc/mime.types
-%config(noreplace) /etc/menu-methods/mailcap
-%{_mandir}/man4/*
+mv %{buildroot}%{_sysconfdir}/mailcap{,.base}
+install -m755 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/menu-methods/mailcap
 
 %pre
 if [ ! -f /etc/mailcap.base -a -f /etc/mailcap ]; then
-  mv /etc/mailcap /etc/mailcap.base
+       mv /etc/mailcap /etc/mailcap.base
 fi
 
 %post
-
 %update_menus
 
 %postun
-
 %clean_menus
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root)
+%doc ChangeLog
+%config(noreplace) %{_sysconfdir}/mailcap.base
+%config(noreplace) %{_sysconfdir}/mailcap.vga
+%config(noreplace) %{_sysconfdir}/mime.types
+%config(noreplace) %{_sysconfdir}/menu-methods/mailcap
+%{_mandir}/man4/*

Reply via email to