71 lines
1.4 KiB
RPMSpec
71 lines
1.4 KiB
RPMSpec
Name: zycore-c
|
|
Version: 1.5.2
|
|
|
|
%global forgeurl https://github.com/zyantific/%{name}
|
|
%global commit ba34692d371cde5f45539b5fa26ea11b09721751
|
|
%forgemeta
|
|
|
|
Release: %autorelease
|
|
Summary: Zyan Core Library for C
|
|
|
|
License: MIT
|
|
URL: %{forgeurl}
|
|
Source0: %{forgesource}
|
|
|
|
BuildRequires: gcc
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: meson >= 1.3
|
|
BuildRequires: pkgconfig(gtest)
|
|
BuildRequires: doxygen
|
|
|
|
%description
|
|
The Zyan Core Library for C is an internal library providing platform
|
|
independent types, macros and a fallback for environments without LibC.
|
|
|
|
%package devel
|
|
Summary: Development libraries and header files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
The %{name}-doc package contains the documentation for %{name}.
|
|
|
|
%prep
|
|
%forgesetup
|
|
|
|
%build
|
|
%meson \
|
|
-Ddoc=enabled \
|
|
-Dtests=enabled \
|
|
-Dexamples=enabled \
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
%check
|
|
%meson_test
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_libdir}/libZycore.so.1*
|
|
|
|
%files devel
|
|
%{_includedir}/Zycore/
|
|
%{_libdir}/pkgconfig/zycore.pc
|
|
%{_libdir}/libZycore.so
|
|
|
|
%files doc
|
|
%license LICENSE
|
|
%{_docdir}/Zycore/
|
|
|
|
%changelog
|
|
%autochangelog
|