diff --git a/anda/tools/u-config/anda.hcl b/anda/tools/u-config/anda.hcl new file mode 100644 index 0000000000..bc13ecfa43 --- /dev/null +++ b/anda/tools/u-config/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "u-config.spec" + } +} diff --git a/anda/tools/u-config/u-config.spec b/anda/tools/u-config/u-config.spec new file mode 100644 index 0000000000..97651f07ce --- /dev/null +++ b/anda/tools/u-config/u-config.spec @@ -0,0 +1,45 @@ +%global forgeurl https://github.com/skeeto/u-config +Version: 0.34.0 +%forgemeta + +Name: u-config +Release: 1%{?dist} +Summary: A smaller, simpler, portable pkg-config clone + +License: Unlicense +URL: %{forgeurl} +Source0: %{forgesource} + +Packager: metcya + +BuildRequires: gcc + +%description +u-config ("micro-config") is a small, highly portable pkg-config and pkgconf +clone. It was written primarily for w64devkit and Windows, but can also serve +as a reliable drop-in replacement on other platforms. Notable features: + +%prep +%forgeautosetup + +%build +%__cc $CFLAGS \ + $CPPFLAGS \ + -DPKG_CONFIG_LIBDIR="\"%{_libdir}/pkgconfig\"" \ + $LDFLAGS \ + -o u-config \ + main_posix.c + +%install +install -Dm 755 u-config %{buildroot}%{_bindir}/u-config +install -Dm 655 u-config.1 %{buildroot}%{_mandir}/man1/u-config.1 + +%files +%license UNLICENSE +%doc README.md +%{_bindir}/u-config +%{_mandir}/man1/u-config.1.* + +%changelog +* Tue Mar 03 2026 metcya +- Initial package diff --git a/anda/tools/u-config/update.rhai b/anda/tools/u-config/update.rhai new file mode 100644 index 0000000000..175fe08da0 --- /dev/null +++ b/anda/tools/u-config/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("skeeto/u-config"));