Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37039793
en ru br
ALT Linux repos
S:2.2.7d-alt1

Group :: Text tools
RPM: discount

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define sover 0

Name: discount
Version: 2.2.7d
Release: alt1

Summary: A implementation of John Gruber's Markdown markup language.
# BSD, BSD-style, BSD-4-Clause-UC ...
License: BSD-style
Group: Text tools
Url: http://www.pell.portland.or.us/~orc/Code/discount/

Source: %name-%version.tar
Source44: %name.watch
Patch: %name-%version-%release.patch
Patch1: %name-2.2.7d-alt-no-ldconfig.patch

Requires: lib%name = %EVR

%description
DISCOUNT is a implementation of John Gruber's Markdown markup language.

%package -n lib%name
Summary: Shared libraries of DISCOUNT
Group: System/Libraries

%description -n lib%name
DISCOUNT is a implementation of John Gruber's Markdown markup language.

This package contains shared libraries of DISCOUNT.

%package -n lib%name-devel
Summary: Development files of DISCOUNT
Group: Development/C
Requires: lib%name = %EVR

%description -n lib%name-devel
DISCOUNT is a implementation of John Gruber's Markdown markup language.

This package contains development files of DISCOUNT.

%prep
%setup
%patch -p1
%patch1 -p1

%build
# non-GNU configure
%add_optflags %optflags_shared
CFLAGS="%optflags" ./configure.sh \
--prefix=%_prefix \
--libdir=%_libdir \
--shared \
--pkg-config
%nil
%make

%install
#mkdir -p %buildroot/%_bindir
%make DESTDIR=%buildroot install.everything

%check
LD_LIBRARY_PATH=%buildroot%_libdir %make test


%files
%_bindir/makepage
%_bindir/markdown
%_bindir/mkd2html
%_bindir/theme
%_man1dir/makepage.1*
%_man1dir/markdown.1*
%_man1dir/mkd2html.1*
%_man1dir/theme.1*
%_man7dir/markdown.7*
%_man7dir/mkd-extensions.7*

%files -n lib%name
%_libdir/libmarkdown.so.*

%files -n lib%name-devel
%_includedir/mkdio.h
%_pkgconfigdir/libmarkdown.pc
%_libdir/libmarkdown.so
%_man3dir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin