Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c864314c0d | ||
|
|
f4976635d4 | ||
|
|
d9681a4ba4 |
||
|
|
80be453dc0 |
||
|
|
c522a80cb0 |
3 changed files with 19 additions and 29 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -1,4 +1 @@
|
|||
/zycore-c-1.4.1.tar.gz
|
||||
/zycore-c-1.5.0.tar.gz
|
||||
/zycore-c-1.5.1.tar.gz
|
||||
/zycore-c-1.5.2.tar.gz
|
||||
/zycore-c-*.tar*
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (zycore-c-1.5.2.tar.gz) = dd410010b99e11f40ad5234d21c9857bd57e47591ed9caec45c6199bfd690f7158499659c874680f2087bfd2b6eee41f08e95c367f83af3585690ce7d20ccb87
|
||||
SHA512 (zycore-c-ba34692d371cde5f45539b5fa26ea11b09721751.tar.gz) = 03a570bc6415a4aed8183590a56a69b8bdffffcca84383cb411af58b479cad367d5206839ddacd3a0b9a90a6a2c4134d6234f94de386dbfaad73e75ad6d7307b
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
%global forgeurl https://github.com/zyantific/zycore-c
|
||||
Name: zycore-c
|
||||
Version: 1.5.2
|
||||
|
||||
%global forgeurl https://github.com/zyantific/%{name}
|
||||
%global commit ba34692d371cde5f45539b5fa26ea11b09721751
|
||||
%forgemeta
|
||||
|
||||
%global sover %{echo %{version} | cut -d '.' -f 1,2}
|
||||
|
||||
Name: zycore-c
|
||||
Release: %autorelease
|
||||
Summary: Zyan Core Library for C
|
||||
|
||||
|
|
@ -12,13 +12,10 @@ License: MIT
|
|||
URL: %{forgeurl}
|
||||
Source0: %{forgesource}
|
||||
|
||||
# https://github.com/zyantific/zycore-c/issues/59
|
||||
ExcludeArch: s390x
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
BuildRequires: ninja-build
|
||||
BuildRequires: gtest-devel
|
||||
BuildRequires: meson >= 1.3
|
||||
BuildRequires: pkgconfig(gtest)
|
||||
BuildRequires: doxygen
|
||||
|
||||
%description
|
||||
|
|
@ -41,33 +38,29 @@ BuildArch: noarch
|
|||
The %{name}-doc package contains the documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
%forgesetup
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
-GNinja \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DZYCORE_BUILD_SHARED_LIB=ON \
|
||||
-DZYCORE_BUILD_TESTS=ON \
|
||||
-DZYCORE_BUILD_EXAMPLES=ON \
|
||||
%cmake_build
|
||||
%meson \
|
||||
-Ddoc=enabled \
|
||||
-Dtests=enabled \
|
||||
-Dexamples=enabled \
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
rm -r %{buildroot}%{_mandir}/man3
|
||||
%meson_install
|
||||
|
||||
%check
|
||||
%ctest
|
||||
%meson_test
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_libdir}/libZycore.so.%{sover}*
|
||||
%{_libdir}/libZycore.so.1*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/Zycore/
|
||||
%{_libdir}/cmake/zycore/
|
||||
%{_libdir}/pkgconfig/zycore.pc
|
||||
%{_libdir}/libZycore.so
|
||||
|
||||
%files doc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue