Spec file modernization and fixes:
Update to SPDX license tag Clean up spec file formatting Remove obsolete snapshot build support Migrate from uname -i to uname -m
This commit is contained in:
parent
cea97d4577
commit
6ab01c0d48
37
fltk.spec
37
fltk.spec
@ -1,36 +1,28 @@
|
||||
#global snap r9671
|
||||
|
||||
# trim changelog included in binary rpms
|
||||
%global _changelog_trimtime %(date +%s -d "1 year ago")
|
||||
|
||||
Summary: C++ user interface toolkit
|
||||
Name: fltk
|
||||
Version: 1.3.8
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: C++ user interface toolkit
|
||||
|
||||
# see COPYING (or http://www.fltk.org/COPYING.php ) for exceptions details
|
||||
License: LGPLv2+ with exceptions
|
||||
License: LGPL-2.0-or-later with exceptions
|
||||
URL: http://www.fltk.org/
|
||||
|
||||
%if "%{?snap:1}" == "1"
|
||||
Source0: http://ftp.easysw.com/pub/fltk/snapshots/fltk-1.3.x-%{snap}.tar.bz2
|
||||
%else
|
||||
Source0: http://fltk.org/pub/%{name}/%{version}/%{name}-%{version}-source.tar.gz
|
||||
%endif
|
||||
|
||||
Source1: fltk-config.sh
|
||||
|
||||
Patch0: fltk-cmake.patch
|
||||
# add lib64 support, drop extraneous libs (bug #708185) and ldflags (#1112930)
|
||||
Patch1: fltk-1.3.4-fltk_config.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: make
|
||||
BuildRequires: texlive-latex
|
||||
# fltk bug with pdf generation, investigate later
|
||||
#BuildRequires: texlive-epstopdf
|
||||
BuildRequires: pkgconfig(libjpeg)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(gl) pkgconfig(glu)
|
||||
@ -40,7 +32,6 @@ BuildRequires: pkgconfig(xext) pkgconfig(xinerama) pkgconfig(xft) pkgconfig(xt)
|
||||
BuildRequires: pkgconfig(xcursor)
|
||||
BuildRequires: pkgconfig(xproto)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
BuildRequires: make
|
||||
|
||||
%description
|
||||
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit.
|
||||
@ -77,11 +68,7 @@ Requires: %{name}-devel
|
||||
|
||||
|
||||
%prep
|
||||
%if 0%{?snap:1}
|
||||
%autosetup -p1 -n fltk-1.3.x-%{snap}
|
||||
%else
|
||||
%autosetup -p1
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
@ -100,8 +87,8 @@ make docs -C %{_vpath_builddir}
|
||||
%cmake_install
|
||||
|
||||
# we only apply this hack to multilib arch's
|
||||
%ifarch x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparc
|
||||
%global arch %(uname -i 2>/dev/null || echo undefined)
|
||||
%ifarch x86_64 %{ix86}
|
||||
%global arch %(uname -m 2>/dev/null || echo undefined)
|
||||
mv $RPM_BUILD_ROOT%{_bindir}/fltk-config \
|
||||
$RPM_BUILD_ROOT%{_bindir}/fltk-config-%{arch}
|
||||
install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/fltk-config
|
||||
@ -109,11 +96,12 @@ install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/fltk-config
|
||||
|
||||
|
||||
%check
|
||||
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/fluid.desktop
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/fluid.desktop
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
|
||||
%files
|
||||
%doc ANNOUNCEMENT CHANGES CREDITS README
|
||||
%license COPYING
|
||||
@ -151,6 +139,13 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/fluid.desktop
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Aug 27 2022 Richard Shaw <hobbes1069@gmail.com> - 1.3.8-4
|
||||
- Spec file modernization and fixes:
|
||||
Update to SPDX license tag
|
||||
Clean up spec file formatting
|
||||
Remove obsolete snapshot build support
|
||||
Migrate from uname -i to uname -m
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user