File mdp.spec of Package mdp
Name: mdp
Version: 1.0.18
Release: 0
Summary: A command-line based markdown presentation tool
License: GPL-3.0-only
URL: https://github.com/visit1985/%{name}
Source: https://github.com/visit1985/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(ncursesw)
%description
mdp is a command line tool that transform markdown files into presentation
and that pages them on the command line.
%prep
%autosetup
%build
%make_build CFLAGS="%{optflags} $(pkg-config --cflags ncursesw)" LIBS="$(pkg-config --libs ncursesw)"
%install
#%make_install
mkdir -p %{buildroot}%{_bindir}
install -m 755 mdp -t %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m 644 mdp.1 -t %{buildroot}%{_mandir}/man1
%files
%license COPYING
%doc README.md sample.md
%{_bindir}/mdp
%{_mandir}/man1/mdp.1%{?ext_man}
%changelog