mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit e5527417c7)
Co-authored-by: metcya <134973769+metcya@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "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 <metcya@gmail.com>
|
||||
|
||||
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 <metcya@gmail.com>
|
||||
- Initial package
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("skeeto/u-config"));
|
||||
Reference in New Issue
Block a user