discount/discount.spec

120 lines
3.5 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.

#
# spec file for package discount
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: discount
Version: 2.1.5a
Release: 0
%define soname 2
Summary: Markdown text to HTML converter
License: BSD-4-Clause
Group: Productivity/Text/Convertors
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/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: libtool
BuildRequires: make
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}
%changelog