Pascal Bleser 2011-01-16 00:17:25 +00:00 committed by Git OBS Bridge
commit 60b9bd40d1
6 changed files with 148 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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

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

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

View File

@ -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

5
discount.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Sun Jan 16 00:17:08 CET 2011 - pascal.bleser@opensuse.org
- initial version (2.0.4)

98
discount.spec Normal file
View File

@ -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 Grubers 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 Grubers 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 Grubers 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}