File meson-tools.spec of Package meson-tools

# spec file for package meson-tools
# Copyright (c) 2017 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

Name:           meson-tools
Version:        0.1
Release:        0
Summary:        Utilities for Amlogic SoCs
License:        GPL-2.0+ AND MIT
Group:          System/Boot
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libopenssl-devel
BuildRequires:  pkg-config

Utilities for working with Amlogic "Meson" SoCs

%setup -q

make %{?_smp_mflags} CFLAGS="$(pkg-config --cflags openssl) %{optflags}" \
                    LDFLAGS="$(pkg-config --libs   openssl)"

install -D -m 755 amlbootsig %{buildroot}%{_bindir}/amlbootsig
install -D -m 755 unamlbootsig %{buildroot}%{_bindir}/unamlbootsig
install -D -m 755 amlinfo %{buildroot}%{_bindir}/amlinfo