Blob Blame History Raw
Name:           printrun
Version:        2.0.0~rc6
%global upstream_version 2.0.0rc6
Release:        0%{?dist}
Summary:        RepRap printer interface and tools
License:        GPLv3+ and FSFAP

# fix locale location

BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  gcc

This package contains lang files outside of printrun module.
Building this tests that lang files are marked with %%lang in filelist.

%autosetup -p1 -n Printrun-printrun-%{upstream_version}



%pyproject_save_files printrun +auto

# Internal check if generated lang entries are same as
# the ones generated using %%find_lang
%find_lang pronterface
%find_lang plater

grep '^%%lang' %{pyproject_files} | sort > tested.lang
sort pronterface.lang plater.lang > expected.lang
diff tested.lang expected.lang

%files -f %{pyproject_files}
%doc README*
%license COPYING