Accepting request 308221 from home:Mailaender:branches:home:mnhauke:ikiwiki

as requested in https://build.opensuse.org/request/show/308209

OBS-URL: https://build.opensuse.org/request/show/308221
OBS-URL: https://build.opensuse.org/package/show/Publishing/discount?expand=0&rev=7
This commit is contained in:
OBS User mrdocs 2015-05-22 06:17:47 +00:00 committed by Git OBS Bridge
parent b0fcc6e9a6
commit 3cc7a72e73
5 changed files with 158 additions and 27 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:10123d6535999e4e362e990fa77209471f6538e6c758e01d470eeb143048903e
size 84003

3
discount-2.1.8a.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c01502f4eedba8163dcd30c613ba5ee238a068f75291be127856261727e03526
size 85161

View File

@ -0,0 +1,16 @@
diff --git a/Makefile.in b/Makefile.in
index 6b88ebf..6d9609f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -108,9 +108,9 @@ test: $(PGMS) $(TESTFRAMEWORK) verify
done
cols: tools/cols.c config.h
- $(CC) -o cols tools/cols.c
+ $(CC) $(CFLAGS) -o cols tools/cols.c
echo: tools/echo.c config.h
- $(CC) -o echo tools/echo.c
+ $(CC) $(CFLAGS) -o echo tools/echo.c
clean:
rm -f $(PGMS) $(TESTFRAMEWORK) $(SAMPLE_PGMS) *.o

View File

@ -1,3 +1,94 @@
-------------------------------------------------------------------
Thu May 21 11:59:36 UTC 2015 - mailaender@opensuse.org
- add symlink with update-alternatives to un-conflict Markdown.pl
-------------------------------------------------------------------
Thu Apr 30 20:29:35 UTC 2015 - mardnh@gmx.de
- add build condition "fenced_code" to conditionally run configure
with "--with-fenced-code"
Building with this condition enables PHP markdown extra-style fenced code
sections, where your chunks of code are surrounded by ~~~ lines instead
of being indented 4 spaces.
-------------------------------------------------------------------
Thu Apr 30 13:01:27 UTC 2015 - mardnh@gmx.de
- update to 2.1.8a
- correct license in spec file. It's actually BSD-3-Clause
- added patch for fixing some comiler warnings:
discount-fix-compile-warings.diff
- ran spec-cleaner and specfile cleanup
- change from version 2.1.8a
When I put in the patch to ...
* Change the mail demangler to a debian-specific always mangle one way hack.
(enabled with the configure.sh option debian-glitch)
I messed up the format string and made the mangled email address into a fixed
bogus string. Sigh. Fixed (thanks to a patch from Alessandro Ghedini), updated
(and I really have to expand the runtime configuration flags array to be long
enough to fit 64 settings, but thats a fix for a different day) and released.
- change from version 2.1.8
After a year or so of letting the code sit and slowly accumulate fixes, a new
version which fixes a wad of bugs and adds a few new features. Some of this
code is front other people, and those changes will be marked with their names:
* FINALLY address the bug where markdown extra-style footnotes lose numbering
when they show up in nested element; I was not carrying the m-e reference#
inside the footnotes structure, but was instead carrying it in the parent
structure and not updating it. So I changed the footnotes structure to
include the reference + the list of footnotes, which made the misnumbering
go away on my tests.
* Fix makefile distclean to cleanup all the generated files and corrected the
names of the installed sample program man pages to end in .1
(Mark Pizzolato mark@infocomm.com)
* Change the mail demangler to a debian-specific always mangle one way hack.
(enabled with the configure.sh option debian-glitch)
* Add with-unmangled-email compile-time flag to disable mailto: mangling
* Allow the magic output filename -, which means send output to stdout instead
of to a file.
* Fix a bug where autolink + github flavored markdown absorbs the ^C eoln
character into a link at the end of a line.
* Tweak install.samples so that the user can supply a SAMPLE_PFX on the
command line SAMPLE_PFX=discount- make install.samples to install the sample
programs with a package-specific prefix.
* Emit pages in utf-8 instead of us-ascii (simply a change to the
Content-Type meta) (Nathan Phillip Brink binki@gentoo.org)
* Patch the horrible list handler to support long numeric list items
(George Hartzell hartzell@alerce.com)
* Various bugfixes (Masayoshi Sekimura sekimura@gmail.com)
* Fix support for CFLAGS=-m32 ./configure.sh by using CFLAGS for all build
invokations of CC. (Nathan Phillip Brink binki@gentoo.org)
* Github-style language attributes on fenced code blocks
(Loren Segal lsegal@amazon.com)
* When defining WORD & DWORD, check first for the MS Windows WinDef.h file;
if found, include it instead of defining WORD & DWORD ourselves.
* support url-encoded anchor links with with-urlencoded-anchor option
(Daisuke Murase typester@cpan.org)
- change from version 2.1.6
does nothing except for some bugfixes (and ignores some particularly scary
ones that I /must/ fix soon) and adds two small features.
* A < at the end of the input is exactly the same as \<(space)
* Markdown.pl does not appear to escape \<[nonwhite] sequences. Sigh.
* Tweak the previous Markdown does not escape... commit to simply push out
the backslash and back up to the start of the <[nonwhite] sequence,
so -fnohtml will continue to work.
* Treat hard <br/> (via two spaces) as whitespace.
* Tweak divquote handling so that two adjacent divquotes wont die if there
is a space between the second > & leading %
* Tweak one of the list tests back to the previous behavior (Ive put in a
hack for list indentation, and accidentally committed the changes. Oops!)
The features are that I now use styles for table cell alignment instead of
align=, and that Im using the 3-clause BSD license for this release
(because there is one widely used closed-source license that claims that you
cant dynamically link with code that uses the 4-clause license. Fine.
Ill 3-clause this release to make the stupid GPL happy.)
-------------------------------------------------------------------
Tue Dec 18 10:40:20 UTC 2012 - lnussel@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package discount
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,24 +16,28 @@
#
Name: discount
Version: 2.1.5a
Release: 0
%bcond_with fenced_code
%define soname 2
Name: discount
Version: 2.1.8a
Release: 0
Summary: Markdown text to HTML converter
License: BSD-4-Clause
License: BSD-3-Clause
Group: Productivity/Text/Convertors
Url: http://www.pell.portland.or.us/~orc/Code/discount/
Source: http://www.pell.portland.or.us/~orc/Code/discount/discount-%{version}.tar.bz2
Patch1: discount-disable_ldconfig.patch
Url: http://www.pell.portland.or.us/~orc/Code/discount/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch2: discount-fix-compile-warings.diff
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: libtool
BuildRequires: make
Requires: libmarkdown%{soname} = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Discount is an implementation of John Grubers Markdown text to HTML language
@ -62,48 +66,68 @@ of Markdown.
%prep
%setup -q
%patch1
%patch2 -p1
%build
CC="%__cc" \
CC="gcc" \
CFLAGS="%{optflags}" \
./configure.sh \
--shared \
--prefix="%{_prefix}" \
--execdir="%{_bindir}" \
--confdir="%{_sysconfdir}" \
--libdir="%{_libdir}" \
--mandir="%{_mandir}" \
--enable-all-features \
--shared \
--with-dl=BOTH
%if %{with fenced_code}
--with-fenced-code \
%endif
--with-dl=BOTH \
--enable-all-features
%__make %{?jobs:-j%{jobs}}
make %{?_smp_mflags}
%install
%__install -d "%{buildroot}%{_bindir}"
%__install -d "%{buildroot}%{_mandir}"
%__install -d "%{buildroot}%{_libdir}"
%__install -d "%{buildroot}%{_includedir}"
install -d "%{buildroot}%{_bindir}"
install -d "%{buildroot}%{_mandir}"
install -d "%{buildroot}%{_libdir}"
install -d "%{buildroot}%{_includedir}"
%__make \
DESTDIR="%{buildroot}" \
make \
DESTDIR=%{buildroot} \
install.everything
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%fdupes %{buildroot}%{_mandir}/man3
# update-alternatives
mv %{buildroot}%{_bindir}/markdown %{buildroot}%{_bindir}/discount-markdown
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_sysconfdir}/alternatives/markdown
ln -sf %{_sysconfdir}/alternatives/markdown %{buildroot}%{_bindir}/markdown
%post
update-alternatives \
--install %{_bindir}/markdown markdown %{_bindir}/discount-markdown 20
%postun
if [ $1 -eq 0 ] ; then
update-alternatives --remove markdown %{_bindir}/discount-markdown
fi
%post -n libmarkdown%{soname} -p /sbin/ldconfig
%postun -n libmarkdown%{soname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYRIGHT CREDITS README
%doc COPYRIGHT CREDITS README
%{_bindir}/makepage
%{_bindir}/markdown
%{_bindir}/discount-markdown
%ghost %{_sysconfdir}/alternatives/markdown
%{_bindir}/mkd2html
%{_bindir}/theme
%doc %{_mandir}/man1/*.1%{ext_man}
%doc %{_mandir}/man7/markdown.7%{ext_man}
%doc %{_mandir}/man7/mkd-extensions.7%{ext_man}
%{_mandir}/man1/*.1%{ext_man}
%{_mandir}/man7/markdown.7%{ext_man}
%{_mandir}/man7/mkd-extensions.7%{ext_man}
%files -n libmarkdown%{soname}
%defattr(-,root,root)