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