Group :: Development/Other
RPM: pkgconf
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define sover 4
%def_disable snapshot
# have no kyua for armh
%ifarch armh
%def_disable check
%else
%def_enable check
%endif
Name: pkgconf
Version: 2.0.2
Release: alt1
Summary: Package compiler and linker metadata toolkit
Group: Development/Other
License: MIT
Url: https://pkgconf.org/
%if_disabled snapshot
Source: https://distfiles.dereferenced.org/%name/%name-%version.tar.xz
%else
Vcs: https://github.com/pkgconf/pkgconf.git
Source: %name-%version.tar
%endif
Requires: lib%name = %EVR
BuildRequires(pre): rpm-macros-meson
BuildRequires(pre): meson
%{?_enable_check:BuildRequires: kyua atf-tests}
%description
pkgconf is a program which helps to configure compiler and linker flags
for development libraries. It is similar to pkg-config from
freedesktop.org.
%package -n lib%name
Summary: Shared library for %name
Group: System/Libraries
%description -n lib%name
lib%name is a library which provides access to most of pkgconf's functionality,
to allow other tooling such as compilers and IDEs to discover and use libraries.
configured by %name.
%package -n lib%name-devel
Summary: Development files for lib%name
Group: Development/C
Requires: lib%name = %EVR
%description -n lib%name-devel
This package provides development files for lib%name.
%prep
%setup
%build
%meson %{?_disable_check:-Dtests=disabled}
%nil
%meson_build
%check
%__meson_test
%install
%meson_install
mkdir -p %buildroot%_pkgconfigdir/personality.d
mkdir -p %buildroot%_datadir/pkgconfig/personality.d
%files
%dir %_pkgconfigdir/personality.d
%dir %_datadir/pkgconfig/personality.d
%_bindir/%name
%_man1dir/%name.1*
%_man5dir/pc.5*
%_man5dir/%name-personality.5*
%doc README.md AUTHORS NEWS
%files -n lib%name
%_libdir/lib%name.so.%{sover}*
%files -n lib%name-devel
%_includedir/%name/
%_libdir/lib%name.so
%_pkgconfigdir/lib%name.pc
%exclude %_datadir/aclocal
%exclude %_man7dir/pkg.m4.7*
%changelog
…
Full changelog you can see here
%def_disable snapshot
# have no kyua for armh
%ifarch armh
%def_disable check
%else
%def_enable check
%endif
Name: pkgconf
Version: 2.0.2
Release: alt1
Summary: Package compiler and linker metadata toolkit
Group: Development/Other
License: MIT
Url: https://pkgconf.org/
%if_disabled snapshot
Source: https://distfiles.dereferenced.org/%name/%name-%version.tar.xz
%else
Vcs: https://github.com/pkgconf/pkgconf.git
Source: %name-%version.tar
%endif
Requires: lib%name = %EVR
BuildRequires(pre): rpm-macros-meson
BuildRequires(pre): meson
%{?_enable_check:BuildRequires: kyua atf-tests}
%description
pkgconf is a program which helps to configure compiler and linker flags
for development libraries. It is similar to pkg-config from
freedesktop.org.
%package -n lib%name
Summary: Shared library for %name
Group: System/Libraries
%description -n lib%name
lib%name is a library which provides access to most of pkgconf's functionality,
to allow other tooling such as compilers and IDEs to discover and use libraries.
configured by %name.
%package -n lib%name-devel
Summary: Development files for lib%name
Group: Development/C
Requires: lib%name = %EVR
%description -n lib%name-devel
This package provides development files for lib%name.
%prep
%setup
%build
%meson %{?_disable_check:-Dtests=disabled}
%nil
%meson_build
%check
%__meson_test
%install
%meson_install
mkdir -p %buildroot%_pkgconfigdir/personality.d
mkdir -p %buildroot%_datadir/pkgconfig/personality.d
%files
%dir %_pkgconfigdir/personality.d
%dir %_datadir/pkgconfig/personality.d
%_bindir/%name
%_man1dir/%name.1*
%_man5dir/pc.5*
%_man5dir/%name-personality.5*
%doc README.md AUTHORS NEWS
%files -n lib%name
%_libdir/lib%name.so.%{sover}*
%files -n lib%name-devel
%_includedir/%name/
%_libdir/lib%name.so
%_pkgconfigdir/lib%name.pc
%exclude %_datadir/aclocal
%exclude %_man7dir/pkg.m4.7*
%changelog
…
Full changelog you can see here