Sync from SUSE:ALP:Source:Standard:1.0 perl-Text-Markdown revision e5abc214690bc7a91d490788598c45d8

This commit is contained in:
Adrian Schröter 2023-05-17 14:45:02 +02:00
commit 5af1350ccd
5 changed files with 213 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
Text-Markdown-1.000031.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

37
cpanspec.yml Normal file
View File

@ -0,0 +1,37 @@
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
preamble: |-
Requires(post): update-alternatives
%post
update-alternatives \
--install %{_bindir}/markdown markdown %{_bindir}/Markdown.pl 30
%postun
if [ $1 -eq 0 ] ; then
update-alternatives --remove markdown %{_bindir}/Markdown.pl
fi
post_prep: |-
sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL
post_install: |-
# update-alternatives
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_sysconfdir}/alternatives/markdown
ln -sf %{_sysconfdir}/alternatives/markdown %{buildroot}%{_bindir}/markdown
echo "%ghost %{_sysconfdir}/alternatives/markdown" >> %{name}.files
echo "%{_bindir}/markdown" >> %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@ -0,0 +1,57 @@
-------------------------------------------------------------------
Fri Aug 19 11:22:18 UTC 2022 - Jan Baier <jbaier@suse.com>
- fix missing post script dependency on update-alternatives
-------------------------------------------------------------------
Tue Oct 3 03:28:55 UTC 2017 - coolo@suse.com
- patch Makefile.PL to build with perl 5.26
-------------------------------------------------------------------
Thu May 21 11:09:35 UTC 2015 - coolo@suse.com
- translate previous change into cpanspec.yml
-------------------------------------------------------------------
Thu May 21 09:40:02 UTC 2015 - mailaender@opensuse.org
- add a Debian compatible symlink with update-alternatives
-------------------------------------------------------------------
Fri Dec 9 08:41:49 UTC 2011 - coolo@suse.com
- fix license to be in spdx.org format
-------------------------------------------------------------------
Sun Nov 20 10:57:12 UTC 2011 - lnussel@suse.de
- remove superfluous build deps. They come in via
inc/Module/Install/Metadata.pm but are optional.
-------------------------------------------------------------------
Thu Sep 1 10:35:54 UTC 2011 - coolo@suse.com
- updated to 1.000031, tons of changes
-------------------------------------------------------------------
Wed Dec 1 13:35:46 UTC 2010 - coolo@novell.com
- switch to perl_requires macro
-------------------------------------------------------------------
Tue May 4 12:49:22 UTC 2010 - chris@computersalat.de
- recreated by cpanspec 1.78
- added Authors
-------------------------------------------------------------------
Mon May 3 08:15:45 UTC 2010 - lnussel@suse.de
- make noarch
-------------------------------------------------------------------
Thu Feb 7 15:13:51 CET 2008 - lnussel@suse.de
- initial version 1.0.3

93
perl-Text-Markdown.spec Normal file
View File

@ -0,0 +1,93 @@
#
# spec file for package perl-Text-Markdown
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: perl-Text-Markdown
Version: 1.000031
Release: 0
%define cpan_name Text-Markdown
Summary: Convert Markdown syntax to (X)HTML
License: BSD-3-Clause
Group: Development/Libraries/Perl
URL: http://search.cpan.org/dist/Text-Markdown/
Source0: https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::Exception)
%{perl_requires}
# MANUAL BEGIN
Requires(post): update-alternatives
%post
update-alternatives \
--install %{_bindir}/markdown markdown %{_bindir}/Markdown.pl 30
%postun
if [ $1 -eq 0 ] ; then
update-alternatives --remove markdown %{_bindir}/Markdown.pl
fi
# MANUAL END
%description
Markdown is a text-to-HTML filter; it translates an easy-to-read /
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.
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
HTML tags anywhere in a Markdown document, and you can use block level HTML
tags (like <div> and <table> as well).
%prep
%setup -q -n %{cpan_name}-%{version}
# MANUAL BEGIN
sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL
# MANUAL END
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
# MANUAL BEGIN
# update-alternatives
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_sysconfdir}/alternatives/markdown
ln -sf %{_sysconfdir}/alternatives/markdown %{buildroot}%{_bindir}/markdown
echo "%ghost %{_sysconfdir}/alternatives/markdown" >> %{name}.files
echo "%{_bindir}/markdown" >> %{name}.files
# MANUAL END
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README Readme.text Todo
%license License.text
%changelog