Browse Source

mailcap: update to 2.1.37

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3439 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 13 years ago
parent
commit
8d77e17e5a
1 changed files with 22 additions and 18 deletions
  1. 22 18
      m/mailcap/mailcap-vl.spec

+ 22 - 18
m/mailcap/mailcap-vl.spec

@@ -1,12 +1,15 @@
-Summary: Associates helper applications with particular file types.
-Summary(ja): ファイル形式とヘルパーアプリケーションを関連付ける
+Summary:     Helper application and MIME type associations for file types
+Summary(ja): ファイル形式に対するヘルパーアプリケーションとMIMEタイプの対応データベース
 Name: mailcap
-Version: 2.1.23
+Version: 2.1.37
 Release: 1%{?_dist_release}
-License: public domain
+
+License: Public Domain and MIT
 Group: System Environment/Base
-Source0: %{name}-%{version}.tar.gz
-Patch0: mailcap-2.1.14-text_html.patch
+URL:   http://git.fedorahosted.org/git/mailcap.git
+
+Source0: https://fedorahosted.org/released/mailcap/%{name}-%{version}.tar.xz
+
 BuildArch: noarch
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
@@ -15,10 +18,8 @@ The mailcap file is used by the metamail program. Metamail reads the
 mailcap file to determine how it should display non-text or multimedia
 material. Basically, mailcap associates a particular type of file with
 a particular program that a mail agent or other program can call to
-handle the file.
-
-Mailcap should be installed to allow certain programs to be able to
-handle non-text files.
+handle the file. Mailcap should be installed to allow certain programs 
+to be able to handle non-text files.
 
 %description -l ja
 mailcap は metamail プログラムが使用します.Metamail は非テキスト形式の
@@ -29,28 +30,31 @@ mailcap の情報を読み込みます. mailcap は基本的には, 特定のフ
 
 %prep
 %setup -q
-%patch0 -p1 
 
 %build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/etc
-install -m 644 mailcap $RPM_BUILD_ROOT/etc
-install -m 644 mime.types $RPM_BUILD_ROOT/etc
-mkdir -p $RPM_BUILD_ROOT%{_mandir}/man4
-install -m 644 mailcap.4 $RPM_BUILD_ROOT%{_mandir}/man4
+make install DESTDIR=$RPM_BUILD_ROOT sysconfdir=%{_sysconfdir}
+mandir=%{_mandir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
-%config /etc/mailcap
-%config /etc/mime.types
+%doc COPYING NEWS
+%config(noreplace) %{_sysconfdir}/mailcap
+%config(noreplace) %{_sysconfdir}/mime.types
 %{_mandir}/man4/mailcap.*
 
 %changelog
+* Wed Apr 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.37-1
+- new upstream release
+- add URL
+- add MIT to License:
+- cleanup spec file
+
 * Fri Jun  6 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.23-1
 - applied new versioning policy
 - spec in UTF-8