|
|
@ -1,39 +1,37 @@
|
|
|
|
#global snap r9671
|
|
|
|
#global snap r9671
|
|
|
|
|
|
|
|
|
|
|
|
# TODO:
|
|
|
|
|
|
|
|
# * port .spec to use cmake
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# trim changelog included in binary rpms
|
|
|
|
# trim changelog included in binary rpms
|
|
|
|
%global _changelog_trimtime %(date +%s -d "1 year ago")
|
|
|
|
%global _changelog_trimtime %(date +%s -d "1 year ago")
|
|
|
|
|
|
|
|
|
|
|
|
Summary: C++ user interface toolkit
|
|
|
|
Summary: C++ user interface toolkit
|
|
|
|
Name: fltk
|
|
|
|
Name: fltk
|
|
|
|
Version: 1.3.4
|
|
|
|
Version: 1.3.8
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
|
|
|
|
# see COPYING (or http://www.fltk.org/COPYING.php ) for exceptions details
|
|
|
|
# see COPYING (or http://www.fltk.org/COPYING.php ) for exceptions details
|
|
|
|
License: LGPLv2+ with exceptions
|
|
|
|
License: LGPLv2+ with exceptions
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
URL: http://www.fltk.org/
|
|
|
|
URL: http://www.fltk.org/
|
|
|
|
|
|
|
|
|
|
|
|
%if "%{?snap:1}" == "1"
|
|
|
|
%if "%{?snap:1}" == "1"
|
|
|
|
Source0: http://ftp.easysw.com/pub/fltk/snapshots/fltk-1.3.x-%{snap}.tar.bz2
|
|
|
|
Source0: http://ftp.easysw.com/pub/fltk/snapshots/fltk-1.3.x-%{snap}.tar.bz2
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
Source0: http://fltk.org/pub/fltk/1.3.4/fltk-1.3.4-1-source.tar.gz
|
|
|
|
Source0: http://fltk.org/pub/%{name}/%{version}/%{name}-%{version}-source.tar.gz
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Source1: fltk-config.sh
|
|
|
|
Source1: fltk-config.sh
|
|
|
|
|
|
|
|
|
|
|
|
## FIXME/TODO: upstream these asap -- Rex
|
|
|
|
Patch0: fltk-cmake.patch
|
|
|
|
# add lib64 support, drop extraneous libs (bug #708185) and ldflags (#1112930)
|
|
|
|
# add lib64 support, drop extraneous libs (bug #708185) and ldflags (#1112930)
|
|
|
|
Patch1: fltk-1.3.4-fltk_config.patch
|
|
|
|
Patch1: fltk-1.3.4-fltk_config.patch
|
|
|
|
|
|
|
|
|
|
|
|
## upstream patches
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
## upstreamable patches
|
|
|
|
|
|
|
|
Patch100: fltk-1.3.4-x-fluid_mimetype.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
|
|
|
BuildRequires: texlive-latex
|
|
|
|
|
|
|
|
# fltk bug with pdf generation, investigate later
|
|
|
|
|
|
|
|
#BuildRequires: texlive-epstopdf
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(libjpeg)
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
BuildRequires: pkgconfig(gl) pkgconfig(glu)
|
|
|
|
BuildRequires: pkgconfig(gl) pkgconfig(glu)
|
|
|
|
BuildRequires: pkgconfig(ice)
|
|
|
|
BuildRequires: pkgconfig(ice)
|
|
|
@ -41,9 +39,8 @@ BuildRequires: pkgconfig(sm)
|
|
|
|
BuildRequires: pkgconfig(xext) pkgconfig(xinerama) pkgconfig(xft) pkgconfig(xt) pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xext) pkgconfig(xinerama) pkgconfig(xft) pkgconfig(xt) pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xcursor)
|
|
|
|
BuildRequires: pkgconfig(xcursor)
|
|
|
|
BuildRequires: pkgconfig(xproto)
|
|
|
|
BuildRequires: pkgconfig(xproto)
|
|
|
|
BuildRequires: xorg-x11-utils
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit.
|
|
|
|
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit.
|
|
|
@ -55,9 +52,13 @@ It provides modern GUI functionality without the bloat, and supports
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: libstdc++-devel
|
|
|
|
Requires: libstdc++-devel
|
|
|
|
|
|
|
|
Requires: pkgconfig(fontconfig)
|
|
|
|
Requires: pkgconfig(gl) pkgconfig(glu)
|
|
|
|
Requires: pkgconfig(gl) pkgconfig(glu)
|
|
|
|
Requires: pkgconfig(ice) pkgconfig(sm)
|
|
|
|
Requires: pkgconfig(ice) pkgconfig(sm)
|
|
|
|
Requires: pkgconfig(xft) pkgconfig(xt) pkgconfig(x11)
|
|
|
|
Requires: pkgconfig(xft) pkgconfig(xt) pkgconfig(x11)
|
|
|
|
|
|
|
|
Requires: pkgconfig(libjpeg)
|
|
|
|
|
|
|
|
Requires: pkgconfig(libpng)
|
|
|
|
|
|
|
|
Requires: pkgconfig(zlib)
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
@ -77,41 +78,26 @@ Requires: %{name}-devel
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%if 0%{?snap:1}
|
|
|
|
%if 0%{?snap:1}
|
|
|
|
%setup -q -n fltk-1.3.x-%{snap}
|
|
|
|
%autosetup -p1 -n fltk-1.3.x-%{snap}
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%setup -q -n fltk-%{version}-1
|
|
|
|
%autosetup -p1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%patch1 -p1 -b .fltk_config
|
|
|
|
|
|
|
|
%patch100 -p1 -b .x-fluid_mimetype
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# verbose build output
|
|
|
|
|
|
|
|
sed -i.silent '\,^.SILENT:,d' makeinclude.in
|
|
|
|
|
|
|
|
autoconf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# set DSOFLAGS too, used to link shlibs (LDFLAGS used only for static libs)
|
|
|
|
%cmake -DFLTK_CONFIG_PATH:PATH=%{_libdir}/cmake/fltk \
|
|
|
|
%{?__global_ldflags:DSOFLAGS="%{__global_ldflags}" ; export DSOFLAGS}
|
|
|
|
-DOpenGL_GL_PREFERENCE=GLVND \
|
|
|
|
|
|
|
|
-DOPTION_BUILD_HTML_DOCUMENTATION:BOOL=ON \
|
|
|
|
|
|
|
|
-DOPTION_BUILD_PDF_DOCUMENTATION:BOOL=OFF \
|
|
|
|
|
|
|
|
-DOPTION_BUILD_SHARED_LIBS:BOOL=ON
|
|
|
|
|
|
|
|
|
|
|
|
%configure \
|
|
|
|
%cmake_build
|
|
|
|
--with-links \
|
|
|
|
|
|
|
|
--with-optim="%{optflags}" \
|
|
|
|
|
|
|
|
--disable-localjpeg \
|
|
|
|
|
|
|
|
--disable-localzlib \
|
|
|
|
|
|
|
|
--disable-localpng \
|
|
|
|
|
|
|
|
--enable-shared \
|
|
|
|
|
|
|
|
--enable-threads \
|
|
|
|
|
|
|
|
--enable-xdbe \
|
|
|
|
|
|
|
|
--enable-xinerama \
|
|
|
|
|
|
|
|
--enable-xft
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make docs -C %{_vpath_builddir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%cmake_install
|
|
|
|
make install-linux -C fluid DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# we only apply this hack to multilib arch's
|
|
|
|
# we only apply this hack to multilib arch's
|
|
|
|
%ifarch x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparc
|
|
|
|
%ifarch x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparc
|
|
|
@ -121,42 +107,34 @@ mv $RPM_BUILD_ROOT%{_bindir}/fltk-config \
|
|
|
|
install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/fltk-config
|
|
|
|
install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/fltk-config
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# docs
|
|
|
|
|
|
|
|
rm -rf __docs
|
|
|
|
|
|
|
|
mv $RPM_BUILD_ROOT%{_docdir}/fltk __docs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## unpackaged files
|
|
|
|
|
|
|
|
# errant docs
|
|
|
|
|
|
|
|
rm -rv $RPM_BUILD_ROOT%{_mandir}/cat*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/fluid.desktop
|
|
|
|
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/fluid.desktop
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc ANNOUNCEMENT CHANGES CREDITS README
|
|
|
|
%doc ANNOUNCEMENT CHANGES CREDITS README
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/libfltk.so.1.3
|
|
|
|
%{_libdir}/libfltk.so.1.3*
|
|
|
|
%{_libdir}/libfltk_forms.so.1.3
|
|
|
|
%{_libdir}/libfltk_forms.so.1.3*
|
|
|
|
%{_libdir}/libfltk_gl.so.1.3
|
|
|
|
%{_libdir}/libfltk_gl.so.1.3*
|
|
|
|
%{_libdir}/libfltk_images.so.1.3
|
|
|
|
%{_libdir}/libfltk_images.so.1.3*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%doc __docs/*
|
|
|
|
%doc %{_vpath_builddir}/documentation/html
|
|
|
|
%{_bindir}/fltk-config
|
|
|
|
%{_bindir}/fltk-config
|
|
|
|
%{?arch:%{_bindir}/fltk-config-%{arch}}
|
|
|
|
%{?arch:%{_bindir}/fltk-config-%{arch}}
|
|
|
|
%{_includedir}/FL/
|
|
|
|
%{_includedir}/FL/
|
|
|
|
%{_includedir}/Fl
|
|
|
|
|
|
|
|
%{_libdir}/libfltk.so
|
|
|
|
%{_libdir}/libfltk.so
|
|
|
|
%{_libdir}/libfltk_forms.so
|
|
|
|
%{_libdir}/libfltk_forms.so
|
|
|
|
%{_libdir}/libfltk_gl.so
|
|
|
|
%{_libdir}/libfltk_gl.so
|
|
|
|
%{_libdir}/libfltk_images.so
|
|
|
|
%{_libdir}/libfltk_images.so
|
|
|
|
|
|
|
|
%{_libdir}/cmake/fltk/
|
|
|
|
%{_mandir}/man1/fltk-config.1*
|
|
|
|
%{_mandir}/man1/fltk-config.1*
|
|
|
|
%{_mandir}/man3/fltk.3*
|
|
|
|
%{_mandir}/man3/fltk.3*
|
|
|
|
|
|
|
|
%{_mandir}/man6/*.6*
|
|
|
|
|
|
|
|
|
|
|
|
%files static
|
|
|
|
%files static
|
|
|
|
%{_libdir}/libfltk.a
|
|
|
|
%{_libdir}/libfltk.a
|
|
|
@ -168,12 +146,69 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/fluid.desktop
|
|
|
|
%{_bindir}/fluid
|
|
|
|
%{_bindir}/fluid
|
|
|
|
%{_mandir}/man1/fluid.1*
|
|
|
|
%{_mandir}/man1/fluid.1*
|
|
|
|
%{_datadir}/applications/fluid.desktop
|
|
|
|
%{_datadir}/applications/fluid.desktop
|
|
|
|
|
|
|
|
%{_datadir}/mime/packages/fluid.xml
|
|
|
|
%{_datadir}/icons/hicolor/*/*/*
|
|
|
|
%{_datadir}/icons/hicolor/*/*/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Jul 25 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.3.4-5
|
|
|
|
* Fri Dec 17 2021 Jan Grulich <jgrulich@redhat.com> - 1.3.8-1
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
- 1.3.8
|
|
|
|
|
|
|
|
Resolves: bz#2025415
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.3.6-2
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 29 2021 Jan Grulich <jgrulich@redhat.com> - 1.3.6-1
|
|
|
|
|
|
|
|
- 1.3.6
|
|
|
|
|
|
|
|
Resolves: bz#1976712
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.3.5-11
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-10
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 21 2021 Adam Jackson <ajax@redhat.com> - 1.3.5-9
|
|
|
|
|
|
|
|
- Remove BuildRequires xprop entirely. If present, the configure script will call
|
|
|
|
|
|
|
|
it looking for a property on the root window that Fedora's X server does not
|
|
|
|
|
|
|
|
set, and which would not work anyway since there is no X server running in the
|
|
|
|
|
|
|
|
buildroot, so we can just remove the dependency.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-8
|
|
|
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Adam Jackson <ajax@redhat.com> - 1.3.5-7
|
|
|
|
|
|
|
|
- BuildRequires xprop not xorg-x11-server-utils
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 14 2020 Rex Dieter <rdieter@fedoraproject.org> - 1.3.5-5
|
|
|
|
|
|
|
|
- restore fltk_config.patch lost in last (cmake) merge
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 11 2020 Rex Dieter <rdieter@fedoraproject.org> - 1.3.5-4
|
|
|
|
|
|
|
|
- merge cmake PR
|
|
|
|
|
|
|
|
- spec cosmetics
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Mar 03 2019 Richard Shaw <hobbes1069@gmail.com> - 1.3.5-1
|
|
|
|
|
|
|
|
- Update to 1.3.5.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-7
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Rex Dieter <rdieter@fedoraproject.org> - 1.3.4-6
|
|
|
|
|
|
|
|
- use %%make_build %%make_install %%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-5
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|