discount/discount.spec
OBS User mrdocs 65fd6939b1 Accepting request 145740 from home:lnussel:branches:Publishing
submit to Factory?

- correct license in spec file. It's actually BSD4c
- changes from version 2.1.5a:
  * MKD_NOSTYLE – treat <style> blocks as regular html.
  * github flavored markdown support
  * in the markdown program, add
        -S flag (tell markdown to spit out style sections)
        -n flag (tell markdown not to output generated text)
- version 2.1.1.1 implements PHP markdown extra-style fenced code sections,
  where your chunks of code are surrounded by ~~~ lines instead of being
  indented 4 spaces.
- changes from version 2.1.0:
  * makepage now accepts markdown option flags a'la the markdown program (via
   -Fxxxx, -fname, or in the MARKDOWN_FLAGS environment variable.)
  * add a -E flag to theme to ignore context-sensitivity on <?theme xxx?> substitutions.

OBS-URL: https://build.opensuse.org/request/show/145740
OBS-URL: https://build.opensuse.org/package/show/Publishing/discount?expand=0&rev=3
2012-12-18 16:31:46 +00:00

99 lines
2.8 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# vim: set sw=4 ts=4 et nu:
Name: discount
Version: 2.1.5a
%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: BSD4c
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}