librtas/librtas-doc.spec
Jan Engelhardt e601eb69a4 Accepting request 945835 from home:michals
- librtasevent: Fix memory page address print issue (bsc#1193846 ltc#193949).
   + librtasevent-Fix-memory-page-address-print-issue.patch

- Add -ffat-lto-objects to avoid ppc64le build error

- librtasevent: Fix memory page address print issue (bsc#1193846 ltc#193949).
   + librtasevent-Fix-memory-page-address-print-issue.patch

OBS-URL: https://build.opensuse.org/request/show/945835
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/librtas?expand=0&rev=55
2022-01-12 15:59:08 +00:00

60 lines
1.8 KiB
RPMSpec

#
# spec file for package librtas-doc
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: librtas-doc
Version: 2.0.2
Release: 0
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: libtool
Summary: Documents for librtas
License: LGPL-2.1-or-later
Group: Documentation/Other
ExclusiveArch: ppc ppc64 ppc64le
URL: https://github.com/ibm-power-utilities/librtas
Source0: https://github.com/ibm-power-utilities/librtas/archive/v%{version}.tar.gz#/librtas-%{version}.tar.gz
Patch0: librtas.fix_doc_path.patch
Patch1: librtasevent-Fix-memory-page-address-print-issue.patch
%description
This package provides librtas documentation
%prep
%setup -n librtas-%{version}
%autopatch -p1
%build
./autogen.sh
%configure
make CFLAGS="%optflags -fPIC -g -I $PWD/librtasevent_src" LIB_DIR="%{_libdir}" %{?_smp_mflags}
%install
rm -rf doc/*/latex
make install DESTDIR=%buildroot LIB_DIR="%{_libdir}"
rm -rf %buildroot/%_libdir
rm -rf %buildroot/%_includedir
%fdupes %buildroot/%_docdir
%files
%defattr(-, root, root)
%doc %{_docdir}/librtas
%changelog