Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37901881
en ru br
ALT Linux repos
S:2.2.7d-alt1

Group :: Text tools
RPM: discount

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: discount-2.2.7d-alt1.patch
Download


 .gear/discount.spec                   | 99 +++++++++++++++++++++++++++++++++++
 .gear/discount.watch                  |  3 ++
 .gear/rules                           |  7 +++
 .gear/tags/list                       |  1 +
 discount-2.2.7d-alt-no-ldconfig.patch | 11 ++++
 5 files changed, 121 insertions(+)
diff --git a/.gear/discount.spec b/.gear/discount.spec
new file mode 100644
index 0000000..e6ba708
--- /dev/null
+++ b/.gear/discount.spec
@@ -0,0 +1,99 @@
+%define sover 0
+
+Name: discount
+Version: 2.2.7d
+Release: alt1
+
+Summary: A implementation of John Gruber's Markdown markup language.
+# BSD, BSD-style, BSD-4-Clause-UC ...
+License: BSD-style
+Group: Text tools
+Url: http://www.pell.portland.or.us/~orc/Code/discount/
+
+Source: %name-%version.tar
+Source44: %name.watch
+Patch: %name-%version-%release.patch
+Patch1: %name-2.2.7d-alt-no-ldconfig.patch
+
+Requires: lib%name = %EVR
+
+%description
+DISCOUNT is a implementation of John Gruber's Markdown markup language.
+
+%package -n lib%name
+Summary: Shared libraries of DISCOUNT
+Group: System/Libraries
+
+%description -n lib%name
+DISCOUNT is a implementation of John Gruber's Markdown markup language.
+
+This package contains shared libraries of DISCOUNT.
+
+%package -n lib%name-devel
+Summary: Development files of DISCOUNT
+Group: Development/C
+Requires: lib%name = %EVR
+
+%description -n lib%name-devel
+DISCOUNT is a implementation of John Gruber's Markdown markup language.
+
+This package contains development files of DISCOUNT.
+
+%prep
+%setup
+%patch -p1
+%patch1 -p1
+
+%build
+# non-GNU configure
+%add_optflags %optflags_shared
+CFLAGS="%optflags" ./configure.sh \
+	--prefix=%_prefix \
+	--libdir=%_libdir \
+	--shared \
+	--pkg-config
+%nil
+%make
+
+%install
+#mkdir -p %buildroot/%_bindir
+%make DESTDIR=%buildroot install.everything
+
+%check
+LD_LIBRARY_PATH=%buildroot%_libdir %make test
+
+
+%files
+%_bindir/makepage
+%_bindir/markdown
+%_bindir/mkd2html
+%_bindir/theme
+%_man1dir/makepage.1*
+%_man1dir/markdown.1*
+%_man1dir/mkd2html.1*
+%_man1dir/theme.1*
+%_man7dir/markdown.7*
+%_man7dir/mkd-extensions.7*
+
+%files -n lib%name
+%_libdir/libmarkdown.so.*
+
+%files -n lib%name-devel
+%_includedir/mkdio.h
+%_pkgconfigdir/libmarkdown.pc
+%_libdir/libmarkdown.so
+%_man3dir/*
+
+%changelog
+* Thu Aug 31 2023 Yuri N. Sedunov <aris@altlinux.org> 2.2.7d-alt1
+- 2.2.7d
+
+* Wed Mar 14 2018 Ildar Mulyukov <ildar@altlinux.ru> 2.2.3a-alt1.git.13.gddf8b6f
+- new version
+
+* Sat Sep 06 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.1.7-alt1.git20140807
+- Version 2.1.7
+
+* Wed Jun 16 2010 Kirill A. Shutemov <kas@altlinux.org> 1.6.5-alt1
+- First build for ALT Linux Sisyphus
+
diff --git a/.gear/discount.watch b/.gear/discount.watch
new file mode 100644
index 0000000..2148eaa
--- /dev/null
+++ b/.gear/discount.watch
@@ -0,0 +1,3 @@
+version=4
+opts=dversionmangle=s/\+(debian|dfsg|ds|deb)(\.?\d+)?$// \
+  https://github.com/Orc/discount/tags .*/v?(\d\S+)\.tar\.gz
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..bbdcb48
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,7 @@
+spec: .gear/discount.spec
+copy: .gear/discount.watch
+copy?: *.patch
+tar: v@version@:.
+diff: v@version@:. .
+#tar: origin/master:.
+#diff: origin/master:. . name=@name@-build-alt.patch
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..eef2b99
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+133d55475ebc458e67c1bb490f83fda7e955304f v2.2.7d
diff --git a/discount-2.2.7d-alt-no-ldconfig.patch b/discount-2.2.7d-alt-no-ldconfig.patch
new file mode 100644
index 0000000..170f44b
--- /dev/null
+++ b/discount-2.2.7d-alt-no-ldconfig.patch
@@ -0,0 +1,11 @@
+--- discount-2.2.7d/configure.inc~	2018-03-12 19:24:20.000000000 +0000
++++ discount-2.2.7d/configure.inc	2023-09-01 09:33:19.260877953 +0000
+@@ -1434,7 +1434,7 @@
+ 	$PROG_LN_S -f \$FULLNAME \$1/\$LIBNAME.\$MAJOR
+ 	$PROG_LN_S -f \$FULLNAME \$1/\$LIBNAME
+ EOF
+-    test "$LDCONFIG" && echo '	'$LDCONFIG '"$1"' >> librarian.sh
++    test "$LDCONFIG" && echo '	'[ -v DESTDIR ] ||  $LDCONFIG '"$1"' >> librarian.sh
+     cat >> librarian.sh << EOF
+ 	;;
+ esac
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin