From 2fb7c42c38dd0fd142974a9f1e8e14ea44dd5e05 Mon Sep 17 00:00:00 2001 From: Guido Aulisi Date: Sat, 12 Aug 2023 22:41:28 +0200 Subject: [PATCH] Initial import --- .gitignore | 1 + sources | 1 + zix.spec | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 .gitignore create mode 100644 sources create mode 100644 zix.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2a93ae1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/zix-262d4a1522c38be0588746e874159da5c7bb457d.tar.bz2 diff --git a/sources b/sources new file mode 100644 index 0000000..9b7bfba --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (zix-262d4a1522c38be0588746e874159da5c7bb457d.tar.bz2) = 659754aa5a21c12848526362fdfea373607925b9c44b111e6774fe0af2095ef08c6805995d59197f8f14a40fb432cd5377f734cd10aa955d76df198ba6757f2f diff --git a/zix.spec b/zix.spec new file mode 100644 index 0000000..4ebc952 --- /dev/null +++ b/zix.spec @@ -0,0 +1,97 @@ +%global forgeurl https://gitlab.com/drobilla/zix +%global commit 262d4a1522c38be0588746e874159da5c7bb457d + +%global maj 0 + +%forgemeta + +Name: zix +Version: 0.3.1 +Release: 6%{?dist} +Summary: A lightweight C library of portability wrappers and data structures + +License: ISC +URL: %{forgeurl} +Source0: %{forgesource} + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: meson +BuildRequires: doxygen +BuildRequires: python3-sphinx +BuildRequires: python3-sphinxygen + +%description +%{name} is a lightweight C library of portability wrappers and data structures. + +%package devel +Summary: Development 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 files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Provides: bundled(js-jquery) = 3.6.0 +Buildarch: noarch + +%description doc +The %{name}-doc package contains documentation files for +developing applications that use %{name}. + +%prep +%forgesetup + +%build +# Do not build benchmarks +%meson -Dbenchmarks=disabled +%meson_build + +%install +%meson_install +# Delete duplicated sphinx docs +rm -rf %{buildroot}%{_docdir}/%{name}-%{maj}/singlehtml +# Delete sphinx buildinfo +rm -f %{buildroot}%{_docdir}/%{name}-%{maj}/html/.buildinfo +# Move devel docs to the right directory +install -d %{buildroot}%{_docdir}/%{name} +mv %{buildroot}%{_docdir}/%{name}-%{maj} %{buildroot}%{_docdir}/%{name} + +%check +%meson_test + +%files +%license COPYING +%doc README.md +%{_libdir}/lib%{name}-%{maj}.so.%{maj}* + +%files devel +%{_includedir}/%{name}-%{maj} +%{_libdir}/lib%{name}-%{maj}.so +%{_libdir}/pkgconfig/%{name}-%{maj}.pc + +%files doc +%doc %{_docdir}/%{name}/%{name}-%{maj} + +%changelog +* Sun Apr 16 2023 Guido Aulisi - 0.3.1-6 +- Delete single html documetation +- Make doc package noarch + +* Sun Mar 19 2023 Guido Aulisi - 0.3.1-5 +- Put documentation files into separate package + +* Sat Mar 11 2023 Guido Aulisi - 0.3.1-4 +- Fix BRs + +* Sun Feb 26 2023 Guido Aulisi - 0.3.1-3 +- Enable docs + +* Sun Feb 05 2023 Guido Aulisi - 0.3.1-2 +- Remove unneeded BR glib2-devel + +* Sun Feb 05 2023 Guido Aulisi - 0.3.1-1 +- Initial import