File maddy.spec of Package maddy
#
# spec file for package maddy
#
# Copyright (c) 2018 SUSE LINUX 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: maddy
Version: 0.1.0+20180907.d6b3201
Release: 0
Summary: C++ Markdown to HTML header-only parser library
License: MIT
Group: Development/Libraries/C and C++
URL: https://github.com/mujx/maddy
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: ninja
BuildRequires: pkg-config
%description
Maddy is a C++ Markdown to HTML header-only parser library.
%package devel
Summary: Development files for %{name}
Provides: %{name}-%{version}
%description devel
Maddy is a C++ Markdown to HTML header-only parser library.
%prep
%autosetup -p1
%build
%cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
%ninja_build
%install
cd build
%ninja_install
%files devel
%doc README.md
%license LICENSE AUTHORS
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}
%changelog