Accepting request 866749 from Publishing

- Update to version 2.2.6:
  * No changelog provided
- Drop no longer needed discount-fix-compile-warings.diff

OBS-URL: https://build.opensuse.org/request/show/866749
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/discount?expand=0&rev=12
This commit is contained in:
Dominique Leuenberger 2021-01-30 12:55:36 +00:00 committed by Git OBS Bridge
commit 7421eb1147
6 changed files with 22 additions and 33 deletions

View File

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

3
discount-2.2.6.tar.bz2 Normal file
View File

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

View File

@ -1,8 +1,8 @@
Index: discount-2.2.4/configure.inc Index: discount-2.2.6/configure.inc
=================================================================== ===================================================================
--- discount-2.2.4.orig/configure.inc --- discount-2.2.6.orig/configure.inc
+++ discount-2.2.4/configure.inc +++ discount-2.2.6/configure.inc
@@ -1393,7 +1393,6 @@ __AC_ELF_LIBRARIAN() { @@ -1455,7 +1455,6 @@ __AC_ELF_LIBRARIAN() {
if $AC_CC $_VFLAGS -o ngc$$.so ngc$$.c; then if $AC_CC $_VFLAGS -o ngc$$.so ngc$$.c; then
USE_SONAME=T USE_SONAME=T
fi fi
@ -10,7 +10,7 @@ Index: discount-2.2.4/configure.inc
if [ "$LDCONFIG" ]; then if [ "$LDCONFIG" ]; then
case `uname -s 2>/dev/null | $AC_UPPERCASE` in case `uname -s 2>/dev/null | $AC_UPPERCASE` in
@@ -1439,7 +1438,6 @@ install)$PROG_INSTALL -c \$FULLNAME "\$1 @@ -1501,7 +1500,6 @@ install)$PROG_INSTALL -c \$FULLNAME "\$1
$PROG_LN_S -f \$FULLNAME \$1/\$LIBNAME.\$MAJOR $PROG_LN_S -f \$FULLNAME \$1/\$LIBNAME.\$MAJOR
$PROG_LN_S -f \$FULLNAME \$1/\$LIBNAME $PROG_LN_S -f \$FULLNAME \$1/\$LIBNAME
EOF EOF

View File

@ -1,16 +0,0 @@
Index: discount-2.2.4/Makefile.in
===================================================================
--- discount-2.2.4.orig/Makefile.in
+++ discount-2.2.4/Makefile.in
@@ -125,9 +125,9 @@ test: $(PGMS) $(TESTFRAMEWORK) verify
branch: tools/branch.c config.h
$(CC) -o branch tools/branch.c
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,10 @@
-------------------------------------------------------------------
Tue Jan 26 09:04:18 UTC 2021 - Martin Pluskal <mpluskal@suse.com>
- Update to version 2.2.6:
* No changelog provided
- Drop no longer needed discount-fix-compile-warings.diff
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 7 14:44:33 UTC 2019 - Martin Pluskal <mpluskal@suse.com> Mon Jan 7 14:44:33 UTC 2019 - Martin Pluskal <mpluskal@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package discount # spec file for package discount
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,15 +19,14 @@
%define sover 2 %define sover 2
%bcond_with fenced_code %bcond_with fenced_code
Name: discount Name: discount
Version: 2.2.4 Version: 2.2.6
Release: 0 Release: 0
Summary: Markdown text to HTML converter Summary: Markdown text to HTML converter
License: BSD-3-Clause License: BSD-3-Clause
Group: Productivity/Text/Convertors Group: Productivity/Text/Convertors
URL: http://www.pell.portland.or.us/~orc/Code/discount/ URL: https://www.pell.portland.or.us/~orc/Code/discount/
Source: http://www.pell.portland.or.us/~orc/Code/discount/discount-%{version}.tar.bz2 Source: http://www.pell.portland.or.us/~orc/Code/discount/discount-%{version}.tar.bz2
Patch1: discount-disable_ldconfig.patch Patch1: discount-disable_ldconfig.patch
Patch2: discount-fix-compile-warings.diff
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: pkgconfig BuildRequires: pkgconfig
Provides: markdown Provides: markdown
@ -57,12 +56,10 @@ with some extensions from PHP Markdown Extra, Pandoc, and other implementations
of Markdown. of Markdown.
%prep %prep
%setup -q %autosetup -p1
%patch1 -p1
%patch2 -p1
%build %build
./configure.sh \ CFLAGS="%{optflags}" ./configure.sh \
--shared \ --shared \
--prefix="%{_prefix}" \ --prefix="%{_prefix}" \
--execdir="%{_bindir}" \ --execdir="%{_bindir}" \
@ -73,8 +70,9 @@ of Markdown.
--with-fenced-code \ --with-fenced-code \
%endif %endif
--with-dl=BOTH \ --with-dl=BOTH \
--pkg-config \
--enable-all-features --enable-all-features
make %{?_smp_mflags} CFLAGS="%{optflags} -fPIC" %make_build --jobs=1
%install %install
make DESTDIR=%{buildroot} install.everything make DESTDIR=%{buildroot} install.everything