[packages/mxml] - same-arch dependencies, separated -apidocs

qboosh qboosh at pld-linux.org
Sat Nov 28 19:24:52 CET 2026


commit e95a58ec2baa66ce4b917f8445ebffd56cc82a3c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Nov 28 19:24:59 2026 +0100

    - same-arch dependencies, separated -apidocs

 mxml.spec | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/mxml.spec b/mxml.spec
index 94cea5f..f52a3ed 100644
--- a/mxml.spec
+++ b/mxml.spec
@@ -9,7 +9,8 @@ Source0:	https://github.com/michaelrsweet/mxml/releases/download/v%{version}/%{n
 # Source0-md5:	35f8416ee2d27ceab653ea2ff64c794c
 Patch0:		%{name}-CVE-2018-20004.patch
 URL:		http://www.minixml.org/
-BuildRequires:	autoconf
+BuildRequires:	autoconf >= 2.50
+BuildRequires:	rpm-build >= 4.6
 BuildRequires:	sed >= 4.0
 BuildRequires:	zlib-devel
 # Conflicts due SONAME
@@ -42,7 +43,7 @@ bez narzuconych limitów poza dostępną pamięcią.
 Summary:	Header files for mxml library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki mxml
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}%{?_isa} = %{version}-%{release}
 Conflicts:	libmxml-devel
 
 %description devel
@@ -55,7 +56,7 @@ Pliki nagłówkowe biblioteki mxml.
 Summary:	Static mxml library
 Summary(pl.UTF-8):	Statyczna biblioteka mxml
 Group:		Development/Libraries
-Requires:	%{name}-devel = %{version}-%{release}
+Requires:	%{name}-devel%{?_isa} = %{version}-%{release}
 Conflicts:	libmxml-static
 
 %description static
@@ -64,6 +65,18 @@ Static mxml library.
 %description static -l pl.UTF-8
 Statyczna biblioteka mxml.
 
+%package apidocs
+Summary:	API documentation for mxml library
+Summary(pl.UTF-8):	Dokumentacja API biblioteki mxml
+Group:		Documentation
+BuildArch:	noarch
+
+%description apidocs
+API documentation for mxml library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki mxml.
+
 %prep
 %setup -q
 %patch -P0 -p1
@@ -74,6 +87,7 @@ Statyczna biblioteka mxml.
 %{__autoconf}
 %configure \
 	--enable-shared
+
 %{__make} \
 	OPTIM="%{rpmcflags} -fPIC"
 
@@ -102,7 +116,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%doc doc/*.html
 %{_libdir}/libmxml.so
 %{_pkgconfigdir}/mxml.pc
 %{_includedir}/mxml.h
@@ -111,3 +124,7 @@ rm -rf $RPM_BUILD_ROOT
 %files static
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libmxml.a
+
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/*.{css,html,png}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mxml.git/commitdiff/e95a58ec2baa66ce4b917f8445ebffd56cc82a3c



More information about the pld-cvs-commit mailing list