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