99 lines
2.8 KiB
RPMSpec
99 lines
2.8 KiB
RPMSpec
|
# 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}
|
|||
|
|