File lowdown.spec of Package lowdown
#
# spec file for package lowdown
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: lowdown
Version: 0.10.0
Release: 0
Summary: Standards compliant, fast, secure markdown processing library
License: ISC
URL: https://kristaps.bsd.lv/lowdown/
Source: %{name}-VERSION_0_10_0.tar.gz
BuildRequires: gcc
BuildRequires: make
BuildRequires: fdupes
Patch0: https://raw.githubusercontent.com/archlinux/svntogit-community/packages/lowdown/trunk/shared.patch
%description
lowdown is a Markdown translator producing HTML5, roff documents in the ms and man formats, LaTeX, gemini, OpenDocument, and terminal output. The open source C source code has no dependencies.
%package devel
Summary: Development files for lowdown
%description devel
Header and library for lowdown
%prep
%setup -q -n %{name}-VERSION_0_10_0
%patch0 -p1
%build
./configure PREFIX=%{_prefix} MANDIR=%{_mandir} LIBDIR=%{_libdir}
export LDFLAGS=""%{build_ldflags}""
sed -i "s/^LDFLAGS.*/LDFLAGS = $LDFLAGS/" Makefile.configure
%make_build
%install
%make_install
%fdupes %{buildroot}/%{_prefix}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%license LICENSE.md
%doc README.md
%{_bindir}/lowdown
%{_bindir}/lowdown-diff
%{_mandir}/man1/lowdown*
%{_mandir}/man3/lowdown*
%{_mandir}/man5/lowdown*
%files devel
%{_includedir}/lowdown.h
%{_libdir}/liblowdown.so
%{_libdir}/pkgconfig/lowdown.pc
%changelog