# The naming scheme in non-Mandriva-based distros %if 0%{!?mklibname:1} %define mklibname(ds) lib%{1}%{?2:%{2}}%{-s:-static}%{-d:-devel} %endif %if 0%{!?mkrel:1} %define mkrel(c) %{1}%{?dist} %endif %define major 0 %define libname %mklibname gcroots %{major} %define devname %mklibname gcroots -d Name: libgcroots Version: 0.3.6 Release: %mkrel 1 Group: Libraries/Development License: Boehm-GC URL: https://github.com/uim/libgcroots Source0: https://github.com/uim/libgcroots/releases/download/%{version}/%{name}-%{version}.tar.bz2 BuildRequires: gcc-c++ BuildRequires: meson >= 0.61.0 Summary: Roots acquisition library for Garbage Collector %description libgcroots abstracts architecture-dependent part of garbage collector roots acquisition such as register windows of SPARC and register stack backing store of IA-64. This library encourages to have own GC such as for small-footprint, some application-specific optimizations, just learning or to test experimental ideas. %package -n %{libname} Summary: Roots acquisition library for Garbage Collector %description -n %{libname} libgcroots abstracts architecture-dependent part of garbage collector roots acquisition such as register windows of SPARC and register stack backing store of IA-64. This library encourages to have own GC such as for small-footprint, some application-specific optimizations, just learning or to test experimental ideas. %package -n %{devname} Summary: Development files for libgcroots Requires: %{libname} = %{version}-%{release} Requires: %{libname}%{?_isa} = %{version}-%{release} Requires: pkgconfig(pkg-config) Conflicts: %{?_lib}uim-devel < 2.0.0-3 %description -n %{devname} libgcroots abstracts architecture-dependent part of garbage collector roots acquisition such as register windows of SPARC and register stack backing store of IA-64. This package contains a header file and development library to help you to develop any own GC. %prep %autosetup -p1 %conf %meson %build %meson_build %install %meson_install %{?ldconfig_scriptlets} %files -n %{libname} %doc README %license COPYING %{_libdir}/libgcroots.so.%{major}* %files -n %{devname} %doc README %license COPYING %{_includedir}/gcroots.h %{_libdir}/libgcroots.so %{_libdir}/pkgconfig/gcroots.pc