perl-Text-Markdown-vl.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. %define pkgname Text-Markdown
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 1.000031
  5. Release: 2%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/~bobtfish/Text-Markdown/
  9. Summary: Text::Markdown - Convert Markdown syntax to (X)HTML
  10. Summary(ja): Text::Markdown - Markdown 文法から (X)HTML への変換
  11. Source0: http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/%{pkgname}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. # Dependency
  15. BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
  16. BuildRequires: perl(FindBin)
  17. BuildRequires: perl(List::MoreUtils)
  18. BuildRequires: perl(Test::Differences)
  19. BuildRequires: perl(Test::Exception)
  20. BuildRequires: perl(Test::More) >= 0.42
  21. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: yasumichi
  25. %description
  26. Markdown is a text-to-HTML filter; it translates an easy-to-read /
  27. easy-to-write structured text format into HTML. Markdown's text format is
  28. most similar to that of plain text email, and supports features such as
  29. headers, *emphasis*, code blocks, blockquotes, and links.
  30. Markdown's syntax is designed not as a generic markup language, but
  31. specifically to serve as a front-end to (X)HTML. You can use span-level
  32. HTML tags anywhere in a Markdown document, and you can use block level HTML
  33. tags (like <div> and <table> as well).
  34. #%%description -l ja
  35. %prep
  36. %setup -q -n %{pkgname}-%{version}
  37. %build
  38. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  39. %{__make} %{?_smp_mflags}
  40. %install
  41. %{__rm} -rf ${RPM_BUILD_ROOT}
  42. %{__make} pure_install DESTDIR=${RPM_BUILD_ROOT}
  43. # remove unnecessary files.
  44. find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';'
  45. find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
  46. find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
  47. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  48. # generate file list
  49. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  50. sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files
  51. if [ "$(cat %{name}.files)X" = "X" ] ; then
  52. echo "ERROR: EMPTY FILE LIST"
  53. exit -1
  54. fi
  55. %clean
  56. %{__rm} -rf ${RPM_BUILD_ROOT}
  57. %files -f %{name}.files
  58. %defattr(-,root,root)
  59. %doc Changes README
  60. %changelog
  61. * Fri Dec 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.000031-2
  62. - rebuilt with perl 5.16.3
  63. - added URL tag
  64. * Fri Oct 05 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.000031-1
  65. - initial build for Vine Linux