Compare commits

..

No commits in common. "rawhide" and "f38" have entirely different histories.

5 changed files with 83 additions and 27 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
/zycore-c-*.tar*
/zycore-c-1.4.1.tar.gz

View file

@ -1,5 +1,9 @@
upstream_package_name: zycore-c
upstream_project_url: https://github.com/zyantific/zycore-c
upstream_tag_template: v{version}
downstream_package_name: zycore-c
specfile_path: zycore-c.spec
jobs:
- job: pull_from_upstream

32
65.patch Normal file
View file

@ -0,0 +1,32 @@
From 23e9bd9cba86b1dac9a35a4cadc91a7c42cd036e Mon Sep 17 00:00:00 2001
From: Felix Wang <77263945+topazus@users.noreply.github.com>
Date: Wed, 7 Jun 2023 04:21:27 -0400
Subject: [PATCH] Set DOXYGEN_GENERATE_MAN config option to generate manpages
---
CMakeLists.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e14145c..0634d13 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -228,12 +228,18 @@ install(DIRECTORY "include/" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
find_package(Doxygen)
if (DOXYGEN_FOUND)
+ set(DOXYGEN_GENERATE_MAN YES)
doxygen_add_docs(ZycoreDoc "include/Zycore/" ALL)
install(
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/"
DESTINATION "${CMAKE_INSTALL_DOCDIR}/api"
COMPONENT Documentation
)
+ install(
+ DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/man/man3/"
+ DESTINATION "${CMAKE_INSTALL_MANDIR}/man3"
+ COMPONENT Documentation
+ )
endif()
# =============================================================================================== #

View file

@ -1 +1 @@
SHA512 (zycore-c-ba34692d371cde5f45539b5fa26ea11b09721751.tar.gz) = 03a570bc6415a4aed8183590a56a69b8bdffffcca84383cb411af58b479cad367d5206839ddacd3a0b9a90a6a2c4134d6234f94de386dbfaad73e75ad6d7307b
SHA512 (zycore-c-1.4.1.tar.gz) = 8cfb1b5dc49ae1d3216398b125125ced52603c6ae7772d08ff5f8c7be0ab7d7aa257f70678f7afa7805b7937520808fa5968ae98bfe7604e46c56e79460c0b5e

View file

@ -1,21 +1,22 @@
%global sover 1.4
Name: zycore-c
Version: 1.5.2
%global forgeurl https://github.com/zyantific/%{name}
%global commit ba34692d371cde5f45539b5fa26ea11b09721751
%forgemeta
Version: 1.4.1
Release: %autorelease
Summary: Zyan Core Library for C
License: MIT
URL: %{forgeurl}
Source0: %{forgesource}
URL: https://github.com/zyantific/zycore-c
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
# Set DOXYGEN_GENERATE_MAN config option to generate manpages
Patch0: https://github.com/zyantific/zycore-c/pull/65.patch
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: meson >= 1.3
BuildRequires: pkgconfig(gtest)
# https://github.com/zyantific/zycore-c/issues/59
ExcludeArch: s390x
BuildRequires: gcc gcc-c++
BuildRequires: cmake
BuildRequires: gtest-devel
BuildRequires: doxygen
%description
@ -38,34 +39,53 @@ BuildArch: noarch
The %{name}-doc package contains the documentation for %{name}.
%prep
%forgesetup
%autosetup -p1
%build
%meson \
-Ddoc=enabled \
-Dtests=enabled \
-Dexamples=enabled \
%meson_build
%cmake \
-DZYCORE_BUILD_SHARED_LIB=ON \
-DZYCORE_BUILD_TESTS=ON \
-DZYCORE_BUILD_EXAMPLES=ON \
%cmake_build
%install
%meson_install
%cmake_install
%check
%meson_test
%ctest
%files
%license LICENSE
%doc README.md
%{_libdir}/libZycore.so.1*
%{_libdir}/libZycore.so.%{sover}*
%files devel
%{_includedir}/Zycore/
%{_libdir}/pkgconfig/zycore.pc
%dir %{_includedir}/Zycore
%dir %{_includedir}/Zycore/API
%dir %{_includedir}/Zycore/Internal
%{_includedir}/Zycore/*.h
%{_includedir}/Zycore/API/*.h
%{_includedir}/Zycore/Internal/*.h
%dir %{_libdir}/cmake/zycore
%{_libdir}/cmake/zycore/*.cmake
%{_libdir}/libZycore.so
%{_mandir}/man3/*
%files doc
%license LICENSE
%{_docdir}/Zycore/
%dir %{_datadir}/doc/Zycore
%dir %{_datadir}/doc/Zycore/api
%dir %{_datadir}/doc/Zycore/api/search
%{_datadir}/doc/Zycore/api/*.css
%{_datadir}/doc/Zycore/api/*.png
%{_datadir}/doc/Zycore/api/*.html
%{_datadir}/doc/Zycore/api/*.map
%{_datadir}/doc/Zycore/api/*.md5
%{_datadir}/doc/Zycore/api/*.js
%{_datadir}/doc/Zycore/api/*.svg
%{_datadir}/doc/Zycore/api/search/*.js
%{_datadir}/doc/Zycore/api/search/*.svg
%{_datadir}/doc/Zycore/api/search/*.css
%changelog
%autochangelog