2010-05-04 13:01:26 +00:00
|
|
|
#
|
2011-09-01 15:14:35 +00:00
|
|
|
# spec file for package perl-Text-Markdown
|
2010-05-04 13:01:26 +00:00
|
|
|
#
|
2011-09-01 11:11:31 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-05-04 13:01:26 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-09-01 15:14:35 +00:00
|
|
|
|
2010-05-04 13:01:26 +00:00
|
|
|
Name: perl-Text-Markdown
|
2011-09-01 11:11:31 +00:00
|
|
|
Version: 1.000031
|
2011-12-11 08:46:17 +00:00
|
|
|
Release: 0
|
2010-05-04 13:01:26 +00:00
|
|
|
%define cpan_name Text-Markdown
|
|
|
|
Summary: Convert Markdown syntax to (X)HTML
|
2011-12-11 08:46:17 +00:00
|
|
|
License: BSD-3-Clause
|
2011-09-01 11:11:31 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2011-12-11 08:46:17 +00:00
|
|
|
Url: http://search.cpan.org/dist/Text-Markdown/
|
2011-09-01 11:11:31 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz
|
2010-05-04 13:01:26 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
2011-09-01 11:11:31 +00:00
|
|
|
BuildRequires: perl(LWP::Simple)
|
2011-12-11 08:46:17 +00:00
|
|
|
BuildRequires: perl(List::MoreUtils)
|
2011-09-01 11:11:31 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(Test::Differences)
|
|
|
|
BuildRequires: perl(Test::Exception)
|
|
|
|
BuildRequires: perl(Text::Diff)
|
2011-12-11 08:46:17 +00:00
|
|
|
BuildRequires: perl-macros
|
2011-09-01 11:11:31 +00:00
|
|
|
%{perl_requires}
|
2010-05-04 13:01:26 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Markdown is a text-to-HTML filter; it translates an easy-to-read /
|
2011-09-01 11:11:31 +00:00
|
|
|
easy-to-write structured text format into HTML. Markdown's text format is
|
|
|
|
most similar to that of plain text email, and supports features such as
|
|
|
|
headers, *emphasis*, code blocks, blockquotes, and links.
|
2010-05-04 13:01:26 +00:00
|
|
|
|
|
|
|
Markdown's syntax is designed not as a generic markup language, but
|
|
|
|
specifically to serve as a front-end to (X)HTML. You can use span-level
|
2011-09-01 11:11:31 +00:00
|
|
|
HTML tags anywhere in a Markdown document, and you can use block level HTML
|
|
|
|
tags (like <div> and <table> as well).
|
2010-05-04 13:01:26 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2011-09-01 11:11:31 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2010-05-04 13:01:26 +00:00
|
|
|
|
|
|
|
%check
|
2011-09-01 11:11:31 +00:00
|
|
|
%{__make} test
|
2010-05-04 13:01:26 +00:00
|
|
|
|
|
|
|
%install
|
2011-09-01 11:11:31 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2010-05-04 13:01:26 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
2011-09-01 11:11:31 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
2010-05-04 13:01:26 +00:00
|
|
|
|
|
|
|
%files -f %{name}.files
|
2011-09-01 11:11:31 +00:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes License.text README Readme.text Todo
|
2010-05-04 13:01:26 +00:00
|
|
|
|
|
|
|
%changelog
|