From 60b9bd40d18eae02d006b22979a4fd757d82c6bee8b48a5151d940f3f4ba0ff0 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Sun, 16 Jan 2011 00:17:25 +0000 Subject: [PATCH] 2.0.4 OBS-URL: https://build.opensuse.org/package/show/Publishing/discount?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + discount-2.0.4.tar.bz2 | 3 + discount-disable_ldconfig.patch | 18 ++++++ discount.changes | 5 ++ discount.spec | 98 +++++++++++++++++++++++++++++++++ 6 files changed, 148 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 discount-2.0.4.tar.bz2 create mode 100644 discount-disable_ldconfig.patch create mode 100644 discount.changes create mode 100644 discount.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/discount-2.0.4.tar.bz2 b/discount-2.0.4.tar.bz2 new file mode 100644 index 0000000..6889137 --- /dev/null +++ b/discount-2.0.4.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad44c2c2c68d1f74daf2767509e24df666bae272500664f9290d2ed8997b9b2b +size 78435 diff --git a/discount-disable_ldconfig.patch b/discount-disable_ldconfig.patch new file mode 100644 index 0000000..f6d6d43 --- /dev/null +++ b/discount-disable_ldconfig.patch @@ -0,0 +1,18 @@ +--- configure.inc.orig 2011-01-16 01:10:26.000000000 +0100 ++++ configure.inc 2011-01-16 01:10:49.000000000 +0100 +@@ -1198,7 +1198,6 @@ + if $AC_CC $_VFLAGS -o /tmp/ngc$$.so /tmp/ngc$$.c; then + USE_SONAME=T + fi +- LDCONFIG=`AC_PATH=/sbin:/usr/sbin:/usr/local/sbin acLookFor ldconfig` + __config_files="$__config_files librarian.sh" + cat > librarian.sh << EOF + #! /bin/sh +@@ -1232,7 +1231,6 @@ + install)$PROG_INSTALL -c \$FULLNAME "\$1" + $PROG_LN_S -f \$FULLNAME \$1/\$LIBNAME.\$MAJOR + $PROG_LN_S -f \$FULLNAME \$1/\$LIBNAME +- test "$LDCONFIG" && $LDCONFIG "\$1" + ;; + esac + EOF diff --git a/discount.changes b/discount.changes new file mode 100644 index 0000000..8ff7584 --- /dev/null +++ b/discount.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Jan 16 00:17:08 CET 2011 - pascal.bleser@opensuse.org + +- initial version (2.0.4) + diff --git a/discount.spec b/discount.spec new file mode 100644 index 0000000..543f045 --- /dev/null +++ b/discount.spec @@ -0,0 +1,98 @@ +# vim: set sw=4 ts=4 et nu: + +Name: discount +Version: 2.0.4 +%define soname 2 +Release: 0 +Summary: Markdown text to HTML converter +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/ +Group: Productivity/Text/Convertors +License: BSD3c +BuildRoot: %{_tmppath}/build-%{name}-%{version} +BuildRequires: gcc make glibc-devel +BuildRequires: autoconf automake libtool +Requires: libmarkdown%{soname} = %{version} + +%description +Discount is an implementation of John Gruber’s Markdown text to HTML language +with some extensions from PHP Markdown Extra, Pandoc, and other implementations +of Markdown. + +%package -n libmarkdown%{soname} +Summary: Markdown text to HTML converter library +Group: Development/Libraries/C and C++ + +%description -n libmarkdown%{soname} +Discount is an implementation of John Gruber’s Markdown text to HTML language +with some extensions from PHP Markdown Extra, Pandoc, and other implementations +of Markdown. + +%package -n libmarkdown-devel +Summary: Markdown text to HTML converter library +Group: Development/Libraries/C and C++ +Requires: libmarkdown%{soname} = %{version} + +%description -n libmarkdown-devel +Discount is an implementation of John Gruber’s Markdown text to HTML language +with some extensions from PHP Markdown Extra, Pandoc, and other implementations +of Markdown. + +%prep +%setup -q +%patch1 + +%build +CC="%__cc" \ +CFLAGS="%{optflags}" \ +./configure.sh \ + --prefix="%{_prefix}" \ + --execdir="%{_bindir}" \ + --confdir="%{_sysconfdir}" \ + --libdir="%{_libdir}" \ + --mandir="%{_mandir}" \ + --enable-all-features \ + --shared \ + --with-dl=BOTH + +%__make %{?jobs:-j%{jobs}} + +%install +%__install -d "%{buildroot}%{_bindir}" +%__install -d "%{buildroot}%{_mandir}" +%__install -d "%{buildroot}%{_libdir}" +%__install -d "%{buildroot}%{_includedir}" + +%__make \ + DESTDIR="%{buildroot}" \ + install.everything + +%clean +%{?buildroot:%__rm -rf "%{buildroot}"} + +%post -n libmarkdown%{soname} -p /sbin/ldconfig +%postun -n libmarkdown%{soname} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc COPYRIGHT CREDITS README +%{_bindir}/makepage +%{_bindir}/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} + +%files -n libmarkdown%{soname} +%defattr(-,root,root) +%{_libdir}/libmarkdown.so.%{soname} +%{_libdir}/libmarkdown.so.%{soname}.* + +%files -n libmarkdown-devel +%defattr(-,root,root) +%{_includedir}/mkdio.h +%{_libdir}/libmarkdown.so +%{_mandir}/man3/*.3%{ext_man} +