source: projects/specs/trunk/p/perl-Text-Markdown/perl-Text-Markdown-vl.spec @ 9167

Revision 9167, 2.5 KB checked in by inagaki, 9 years ago (diff)

2014-12-19 Ryoichi INAGAKI <ryo1@…>

  • perl-Authen-{Captcha, Radius, SASL}, perl-DBM-Deep, perl-DateTime?-Format-{HTTP, Mail}, perl-Dist-CheckConflicts?, perl-Eval-Closure, perl-Package-DeprecationManager?, perl-Regexp-Common, perl-Term-ReadLine?-Gnu, perl-Text-Template: updated
  • perl-DateTime?-Format-{IBeat, W3CDTF}, perl-Declare-Constraints-Simple, perl-Text-Markdown: rebuilt
  • perl-String-Random: NEW


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