perl-File-MMagic-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. %define _use_internal_dependency_generator 0
  2. %define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib)
  3. %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
  4. Summary: file command like perl5 module
  5. Summary(ja): file コマンド風 perl5 モジュール
  6. Name: perl-File-MMagic
  7. Version: 1.27
  8. Release: 2%{_dist_release}
  9. Url: http://search.cpan.org/~knok/File-MMagic/
  10. License: distributable
  11. Group: Development/Libraries
  12. Source: http://www.perl.com/CPAN/modules/by-module/File/File-MMagic-%{version}.tar.gz
  13. Requires: perl >= 1:5.8.6
  14. Buildroot: %{_tmppath}/%{name}-%{version}-root
  15. BuildArch: noarch
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. This module is to guess file type from its contents like file(1)
  20. command.
  21. %description -l ja
  22. このモジュールは、file(1)コマンドに相当する機能、すなわちファイルの内
  23. 容からその種類を推測するためのものです。
  24. # Provide perl-specific find-{provides,requires}.
  25. %define __find_provides /usr/lib/rpm/find-provides.perl
  26. %define __find_requires /usr/lib/rpm/find-requires.perl
  27. %prep
  28. %setup -q -n File-MMagic-%{version}
  29. %build
  30. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
  31. make
  32. make test
  33. %install
  34. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  35. make DESTDIR=$RPM_BUILD_ROOT install
  36. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  37. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  38. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  39. sed "s@^$RPM_BUILD_ROOT@@g" |
  40. grep -v perllocal.pod |
  41. grep -v "\.packlist" > File-MMagic-%{version}-filelist
  42. if [ "$(cat File-MMagic-%{version}-filelist)X" = "X" ] ; then
  43. echo "ERROR: EMPTY FILE LIST"
  44. exit -1
  45. fi
  46. %clean
  47. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  48. %files -f File-MMagic-%{version}-filelist
  49. %defattr(-,root,root)
  50. %doc COPYING README.en README.ja ChangeLog
  51. %changelog
  52. * Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 1.27-2vl5
  53. - spec in utf-8
  54. * Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.27-1vl5
  55. - rebuilt with perl 5.10.0
  56. - applied new versioning policy
  57. * Wed Sep 26 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.27-0vl2
  58. - chaneged Group to Development/Libraries
  59. * Sun May 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.27-0vl1
  60. - new upstrean release
  61. - chaneged Group to Development/Languages
  62. * Mon Nov 29 2004 IWAI, Masaharu <iwai@alib.jp> 1.22-0vl2
  63. - rebuild on perl-5.8.6-0vl1
  64. - add many documents: COPYING, README.en, README.ja and ChangeLog
  65. - add Url tag
  66. - change build arch: noarch
  67. * Fri Sep 17 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.22-0vl1
  68. - updated to 1.22
  69. - Requires: perl >= 1:5.8.2
  70. * Tue May 11 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.21-1vl1
  71. - updated to 1.21
  72. - s/Copyright/License/
  73. - changed Group:Applications/CPAN (based on Fedora)
  74. * Wed Dec 10 2003 IWAI, Masaharu <iwai@alib.jp> 1.16-3vl2
  75. - build with perl-5.8.2
  76. - add %%{perl_sitelib}/File directory in %%files
  77. * Fri May 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  78. - 1.16-3vl1:
  79. - synced with rawhide
  80. * Tue Dec 10 2002 Chip Turner <cturner@redhat.com>
  81. - update to latest version from CPAN
  82. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  83. - automated release bump and build
  84. * Tue Aug 6 2002 Chip Turner <cturner@localhost.localdomain>
  85. - update to 1.15
  86. * Fri Dec 7 2001 root <root@redhat.com>
  87. - Spec file was autogenerated.
  88. * Sat Jun 16 2001 <sagami@vinelinux.org>
  89. - 1.12-0vl3: correct Group
  90. * Sat Jun 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  91. - 1.12-0vl2
  92. - rebuilt with perl-5.6.1
  93. * Wed Jun 13 2001 Jun Nishii <jun@vinelinux.org> 1.12-0vl1
  94. - ver.up
  95. - modify for Vine
  96. * Fri Dec 31 1999 Ryuji Abe <raeva@t3.rim.or.jp>
  97. - Installed correctly directories.
  98. * Sat Dec 11 1999 Ryuji Abe <raeva@t3.rim.or.jp>
  99. - Rebuild for RHL-6.1.
  100. * Thu Dec 02 1999 Ryuji Abe <raeva@t3.rim.or.jp>
  101. - Specified Obsoletes: File-MMagic.
  102. * Wed Dec 01 1999 Ryuji Abe <raeva@t3.rim.or.jp>
  103. - Fixed package name (Added prefix `perl-').
  104. * Thu Sep 09 1999 Ryuji Abe <raeva@t3.rim.or.jp>
  105. - First build.