Compare commits

..

No commits in common. "f33" and "master" have entirely different histories.
f33 ... master

3 changed files with 49 additions and 33 deletions

20
fix_gcc8.patch Normal file
View File

@ -0,0 +1,20 @@
--- a/src/YDialog.cc
+++ b/src/YDialog.cc
@@ -687,7 +687,7 @@ YDialog::showText( const std::string & text, bool useRichText )
dialog->waitForEvent();
dialog->destroy();
}
- catch ( YUIException exception )
+ catch ( const YUIException & exception )
{
// Don't let the application die just because help couldn't be displayed.
@@ -811,7 +811,7 @@ YDialog::showRelNotesText()
}
dialog->destroy();
}
- catch ( YUIException exception )
+ catch ( const YUIException & exception )
{
// Don't let the application die just because RN couldn't be displayed.

View File

@ -1,6 +1,4 @@
%undefine __cmake_in_source_build
%global major_so_ver 12
%global major_so_ver 8
# Place rpm-macros into proper location.
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
@ -11,15 +9,20 @@
# Define libsuffix.
%global libsuffix yui
# CMake-builds go out-of-tree.
%global _cmake_build_subdir build-%{_target_platform}
Name: lib%{libsuffix}
Version: 3.10.0
Release: 1%{?dist}
Version: 3.3.3
Release: 6%{?dist}
Summary: GUI-abstraction library
License: (LGPLv2 or LGPLv3) and MIT
URL: https://github.com/%{name}/%{name}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# Based on https://github.com/libyui/libyui/commit/b1f593cd99fd33cc3f0cf9b4f5151f672b68d96e
Patch0: fix_gcc8.patch
BuildRequires: gcc-c++
BuildRequires: boost-devel
@ -66,27 +69,31 @@ brief examples how to build a UI using %{name}.
%build
%{__mkdir} -p %{_cmake_build_subdir}
pushd %{_cmake_build_subdir}
%cmake \
-DYPREFIX=%{_prefix} \
-DLIB_DIR=%{_libdir} \
-DCMAKE_BUILD_TYPE=RELEASE \
-DRESPECT_FLAGS=ON \
-DSKIP_LATEX=ON \
%{nil}
..
%cmake_build
%cmake_build --target docs
%make_build
%make_build docs
popd
%install
mkdir -p %{buildroot}%{_libdir}/%{libsuffix} \
pushd %{_cmake_build_subdir}
%{__mkdir} -p %{buildroot}%{_libdir}/%{libsuffix} \
%{buildroot}%{_datadir}/%{name}/theme
%cmake_install
%make_install
# Create a macro for use in other spec-files.
mkdir -p %{buildroot}/%{macrosdir}
cat << EOF > %{buildroot}/%{macrosdir}/macros.%{name}
%{__mkdir} -p %{buildroot}/%{macrosdir}
%{__cat} << EOF > %{buildroot}/%{macrosdir}/macros.%{name}
%_%{name}_major_so_ver %{major_so_ver}
%_%{name}_datadir %%{_datadir}/%{name}
%_%{name}_includedir %%{_includedir}/%{libsuffix}
@ -95,18 +102,19 @@ cat << EOF > %{buildroot}/%{macrosdir}/macros.%{name}
EOF
# Delete obsolete files.
rm -rf %{buildroot}%{_defaultdocdir} \
examples/{CMake*,.gitignore} \
%{_vpath_builddir}/doc/html/*.m*
%{__rm} -rf %{buildroot}%{_defaultdocdir} \
../examples/{CMake*,.gitignore} \
doc/html/*.m*
# Install documentation.
mkdir -p %{buildroot}%{?_pkgdocdir}
cp -a README.md package/libyui.changes \
examples/ %{_vpath_builddir}/doc/html/ \
%{__mkdir} -p %{buildroot}%{?_pkgdocdir}
%{__cp} -a ../README.md ../package/libyui.changes \
../examples/ doc/html/ \
%{buildroot}%{?_pkgdocdir}
# Hard-link documentation.
%{_bindir}/hardlink -cv %{buildroot}%{?_pkgdocdir}/html
%{_sbindir}/hardlink -cv %{buildroot}%{?_pkgdocdir}/html
popd
%ldconfig_scriptlets
@ -141,18 +149,6 @@ cp -a README.md package/libyui.changes \
%changelog
* Sat Aug 01 2020 Neal Gompa <ngompa13@gmail.com> - 3.10.0-1
- Rebase to 3.10.0 (#1669818)
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Aug 14 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.3.3-7
- Fix FTBFS - updated path of hardlink
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (libyui-3.10.0.tar.gz) = 8c3186fdff7b3f6f49b25dcb7085f3906a2fa59b7e951b52a9c3aef62eb2b4941cfcfa59da334d4cc9445152130afe3214bd70b9e2efef67dbb9186a439b0d85
SHA512 (libyui-3.3.3.tar.gz) = 1db31218703c90e7b8b877b613997e0984275a0923c7837c6e813626c0037d56d524168e0f56e8ca36561c1af5480a0f379e8f87fbc4a380570a6d9ab336977f