File declaro.spec of Package declaro
#
# spec file for package declaro
#
# 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: declaro
Version: 0.0.1+git
Release: 0
Summary: A simple declarative wrapper for any Linux distro
License: SUSE-Public-Domain
URL: https://github.com/mantinhas/declaro
Source0: %{name}-%{version}.tar.gz
BuildRequires: make
Requires: bash
Requires: coreutils
Requires: diffutils
Requires: findutils
Requires: sed
Requires: sudo
Requires: tar
BuildArch: noarch
%description
declaro is a powerful declarative package manager wrapper that lets you
define a clean "reset state" for your system and provides tools to manage
and reset your system back to that declarative state. It forces you to
explicitly define what you want to keep, rather than what you want to remove.
declaro was written to be package manager agnostic, supporting apt, dnf,
zypper, pacman, and other package managers through simple configuration files.
%prep
%autosetup
%build
# Nothing to build - bash scripts only
%install
make install DESTDIR=%{buildroot} PREFIX=%{_prefix} SUDO=""
# Create the /etc/declaro directory that the application expects
install -d %{buildroot}%{_sysconfdir}/declaro
%files
%doc README.md
%{_bindir}/declaro
%dir %{_datadir}/declaro
%{_datadir}/declaro/bin/
%{_datadir}/declaro/config/
%dir %{_sysconfdir}/declaro
%changelog