perl-Text-Markdown-vl.spec 2.2 KB

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