File mklittlefs.spec of Package mklittlefs
#
# spec file for package mklittlefs
#
# Copyright (c) 2021 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 http://bugs.opensuse.org/
#
%global littlefs_commit abd90cb84c818a663b584575b019258d01d0065e
Name: mklittlefs
Version: 3.0.0
Release: 0
Summary: Utility for creating littlefs for upload on the ESP8266
License: MIT
Group: Development/Tools/Other
Url: https://github.com/earlephilhower/mklittlefs
Source: https://github.com/earlephilhower/mklittlefs/archive/%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/littlefs-project/littlefs/archive/%{littlefs_commit}/littlefs-%{littlefs_commit}.tar.gz
BuildRequires: gcc-c++
%description
Utility for creating littlefs for upload on the ESP8266.
%prep
%setup -q -a 1
# move submodule
rm -rf littlefs/*
mv littlefs-%{littlefs_commit}/* littlefs/
rm -rf littlefs-%{littlefs_commit}/*
%build
%make_build VERSION=%{version}
%install
# Makefile doesn't have install target
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
%files
%license LICENSE.txt
%{_bindir}/%{name}
%changelog