From 67bc4fb3adbb3b995cc6f6c4134cd20a199b005b Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Mon, 18 Jul 2022 19:18:43 +0800 Subject: [PATCH] spec: add doc sub package --- libepoxy.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/libepoxy.spec b/libepoxy.spec index 03feebd..8540a90 100644 --- a/libepoxy.spec +++ b/libepoxy.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: epoxy runtime library Name: libepoxy Version: 1.5.8 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} License: MIT URL: https://github.com/anholt/libepoxy Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz @@ -25,6 +26,15 @@ Requires: %{name}%{?_isa} = %{version}-%{release} This package contains libraries and header files for developing applications that use %{name}. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name} + %prep %autosetup -p1 @@ -45,7 +55,6 @@ xvfb-run -d -s "-screen 0 640x480x24" ninja -C %{_vpath_builddir} test || \ %files %license COPYING -%doc README.md %{_libdir}/libepoxy.so.0* %files devel @@ -53,7 +62,13 @@ xvfb-run -d -s "-screen 0 640x480x24" ninja -C %{_vpath_builddir} test || \ %{_libdir}/libepoxy.so %{_libdir}/pkgconfig/epoxy.pc +%files doc +%doc README.md + %changelog +* Fri Jul 15 2022 Chang Gao - 1.5.8-1.0.1 +- Add doc sub package + * Tue Jun 29 2021 Olivier Fourdan - 1.5.8-1 - libepoxy 1.5.8 (rhbz#1976780) -- Gitee