fltk/fltk.spec

158 lines
4.3 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:38:57 -04:00
%global _changelog_trimtime %(date +%s -d "1 year ago")
Name: fltk
2021-12-24 16:22:46 +08:00
Version: 1.3.8
Release: 1
2019-09-30 10:38:57 -04:00
Summary: C++ user interface toolkit
License: LGPLv2+ with exceptions
URL: http://www.fltk.org/
2021-12-24 16:22:46 +08:00
Source0: https://www.fltk.org/pub/fltk/1.3.8/fltk-1.3.8-source.tar.gz
2019-09-30 10:38:57 -04:00
Source1: fltk-config.sh
2020-01-11 20:47:19 +08:00
Patch0001: fltk-1.3.4-x-fluid_mimetype.patch
2019-09-30 10:38:57 -04:00
BuildRequires: gcc-c++ desktop-file-utils libjpeg-devel pkgconfig(libpng) pkgconfig(gl) pkgconfig(glu) pkgconfig(ice)
BuildRequires: pkgconfig(sm) pkgconfig(xext) pkgconfig(xinerama) pkgconfig(xft) pkgconfig(xt) pkgconfig(x11)
2021-07-20 16:00:47 +08:00
BuildRequires: pkgconfig(xcursor) pkgconfig(xproto) xorg-x11-utils zlib-devel autoconf
2019-09-30 10:38:57 -04:00
%description
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit.It provides modern GUI functionality without
the bloat, and supports 3D graphics via OpenGL and its built-in GLUT emulation.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} libstdc++-devel pkgconfig(gl) pkgconfig(glu)
Requires: pkgconfig(ice) pkgconfig(sm) pkgconfig(xft) pkgconfig(xt) pkgconfig(x11)
%description devel
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX(r)/Linux(r) (X11),
Microsoft(r) Windows(r), and MacOS(r) X. FLTK provides modern GUI functionality without the bloat and supports 3D
graphics via OpenGL(r) and its built-in GLUT emulation. It was originally developed by Mr. Bill Spitzak and is
currently maintained by a small group of developers across the world with a central repository
2021-12-24 16:22:46 +08:00
%package static
Summary: Static libraries for %{name}
Requires: %{name}-devel = %{version}-%{release}
%description static
%{summary}.
%package fluid
Summary: Fast Light User Interface Designer
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-devel
%description fluid
%{summary}, an interactive GUI designer for %{name}.
2019-11-06 19:07:00 +08:00
%package_help
2019-09-30 10:38:57 -04:00
%prep
2020-01-11 20:47:19 +08:00
%autosetup -n %{name}-%{version} -p1
2019-09-30 10:38:57 -04:00
sed -i.silent '\,^.SILENT:,d' makeinclude.in
autoconf
%build
# set DSOFLAGS too, used to link shlibs (LDFLAGS used only for static libs)
%{?__global_ldflags:DSOFLAGS="%{__global_ldflags}" ; export DSOFLAGS}
%configure \
--with-links \
--with-optim="%{optflags}" \
--disable-localjpeg \
--disable-localzlib \
--disable-localpng \
--enable-shared \
--enable-threads \
--enable-xdbe \
--enable-xinerama \
--enable-xft
%make_build
%install
%make_install
make install-linux -C fluid DESTDIR=$RPM_BUILD_ROOT
# we only apply this hack to multilib arch's
%ifarch x86_64
%global arch %(uname -i 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
%endif
rm -rf __docs
mv $RPM_BUILD_ROOT%{_docdir}/fltk __docs
rm -rv $RPM_BUILD_ROOT%{_mandir}/cat*
%check
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/fluid.desktop
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
2019-11-06 19:07:00 +08:00
%defattr(-,root,root)
2019-09-30 10:38:57 -04:00
%license COPYING
2019-11-06 19:07:00 +08:00
%{_libdir}/*.so.*
2019-09-30 10:38:57 -04:00
%files devel
2019-11-06 19:07:00 +08:00
%defattr(-,root,root)
2019-09-30 10:38:57 -04:00
%{_bindir}/fltk-config
%{?arch:%{_bindir}/fltk-config-%{arch}}
2019-11-06 19:07:00 +08:00
%{_libdir}/*.a
%{_libdir}/*.so
2019-09-30 10:38:57 -04:00
%{_includedir}/FL/
%{_includedir}/Fl
2021-12-24 16:22:46 +08:00
%exclude %{_libdir}/libfltk.a
%exclude %{_libdir}/libfltk_forms.a
%exclude %{_libdir}/libfltk_gl.a
%exclude %{_libdir}/libfltk_images.a
2019-09-30 10:38:57 -04:00
%files help
2019-11-06 19:07:00 +08:00
%defattr(-,root,root)
%doc README* ANNOUNCEMENT CHANGES* CREDITS __docs/*
2019-09-30 10:38:57 -04:00
%{_mandir}/man1/fltk-config.1*
%{_mandir}/man3/fltk.3*
2021-12-24 16:22:46 +08:00
%files static
%{_libdir}/libfltk.a
%{_libdir}/libfltk_forms.a
%{_libdir}/libfltk_gl.a
%{_libdir}/libfltk_images.a
%files fluid
%{_bindir}/fluid
2019-09-30 10:38:57 -04:00
%{_mandir}/man1/fluid.1*
2021-12-24 16:22:46 +08:00
%{_datadir}/applications/fluid.desktop
%{_datadir}/icons/hicolor/*/*/*
2019-09-30 10:38:57 -04:00
%changelog
2021-12-24 16:22:46 +08:00
* Fri Dec 24 2021 liuyumeng <liuyumeng5@huawei.com> - 1.3.8-1
- update to fltk-1.3.8-1
2021-07-20 16:00:47 +08:00
* Thu Jul 20 2021 liuyumeng <liuyumeng5@huawei.com> - 1.3.5-2
- delete gdb in buildrequires
2020-01-11 20:47:19 +08:00
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.3.5-1
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:update version to 1.3.5
2019-11-06 19:07:00 +08:00
* Thu Oct 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.4-9
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:modify the static package
2019-09-30 10:38:57 -04:00
* Wed Sep 11 2019 openEuler jimmy<dukaitian@huawei.com> - 1.3.4-8
- Package init jimmy