File blueprint-compiler.spec of Package blueprint-compiler

#
# spec file for package blueprint-compiler
#
# Copyright (c) 2025 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 https://bugs.opensuse.org/
#

Name:           blueprint-compiler
Version:        0.18.0+git20250705.a691b96
Release:        0
Summary:        A markup language for GTK user interfaces
License:        LGPL-3.0-only
#URL:            https://gitlab.gnome.org/jwestman/%%{name}
URL:            https://gitlab.gnome.org/GNOME/%{name}
Source:         %{name}-%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  python-rpm-macros
BuildRequires:  meson
BuildArch:      noarch

%description
A markup language for GTK user interfaces.
Docs: https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/

%package devel
Summary: Development files for blueprint-compiler

%description devel
Development files and headers for blueprint-compiler

%prep
%setup -q
find . -type f -exec sed -i 's@#!%{_bindir}/env python3$@#!%{_bindir}/python3@' {} +
find . -type f -exec sed -i 's@#!%{_bindir}/env python$@#!%{_bindir}/python@' {} +

%build
%meson
%meson_build

%install
%meson_install

%files
%license COPYING
%doc README.md
%{_bindir}/blueprint-compiler
### Guess we're swapping from this:
# %%dir %%{_datadir}/%%{name}/
# %%dir %%{_datadir}/%%{name}/blueprintcompiler
# %%{_datadir}/%%{name}/blueprintcompiler/*
### Back to this:
%dir %{python3_sitelib}/blueprintcompiler
%{python3_sitelib}/blueprintcompiler/*
#####

%files devel
%{_datadir}/pkgconfig/%{name}.pc

%changelog

openSUSE Build Service is sponsored by