mirror of
https://abf.rosa.ru/djam/fltk.git
synced 2025-02-23 17:02:52 +00:00
163 lines
4.7 KiB
RPMSpec
163 lines
4.7 KiB
RPMSpec
%define major 1.3
|
|
%define libname %mklibname %{name} %{major}
|
|
%define libforms %mklibname %{name}_forms %{major}
|
|
%define libgl %mklibname %{name}_gl %{major}
|
|
%define libimages %mklibname %{name}_images %{major}
|
|
%define devname %mklibname %{name} -d
|
|
|
|
Summary: Fast Light Tool Kit (FLTK)
|
|
Name: fltk
|
|
Version: 1.3.3
|
|
Release: 1
|
|
License: LGPLv2.1+
|
|
Group: System/Libraries
|
|
Url: http://www.fltk.org
|
|
Source0: ftp://ftp.easysw.com/pub/fltk/%{version}/%{name}-%{version}-source.tar.gz
|
|
Patch0: fltk-1.3.3-link.patch
|
|
## FIXME/TODO: upstream these asap -- Rex
|
|
# add lib64 support, drop extraneous libs (bug #708185) and ldflags (#1112930)
|
|
Patch1: fltk-1.3.2-fltk_config.patch
|
|
Patch2: fltk-1.1.8-fluid_desktop.patch
|
|
Patch3: fltk-1.3.3-lib-prefix.patch
|
|
Patch4: fltk-1.3.3-man-install-dir.patch
|
|
Patch5: fltk-1.3.3-install-fltk-config.patch
|
|
Patch6: fltk-1.3.3-do-not-use-internal-ABI.patch
|
|
Patch7: fltk-1.3.3-cmake35.patch
|
|
BuildRequires: cmake
|
|
BuildRequires: man
|
|
BuildRequires: jpeg-devel
|
|
#BuildRequires: pkgconfig(cairo)
|
|
BuildRequires: pkgconfig(gl)
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
BuildRequires: pkgconfig(libpng)
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xft)
|
|
BuildRequires: pkgconfig(xinerama)
|
|
|
|
%description
|
|
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
|
|
C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r),
|
|
and Microsoft(r) Windows(r) NT 4.0, 95, or 98. 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 in the US.
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%package -n %{libname}
|
|
Summary: Fast Light Tool Kit (FLTK) - main library
|
|
Group: System/Libraries
|
|
Provides: %{name} = %{EVRD}
|
|
Conflicts: %{name} < 1.3.2
|
|
|
|
%description -n %{libname}
|
|
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
|
|
C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r),
|
|
and Microsoft(r) Windows(r) NT 4.0, 95, or 98. 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 in the US.
|
|
|
|
%files -n %{libname}
|
|
%{_libdir}/libfltk.so.%{major}
|
|
%{_libdir}/libfltk.so.%{version}
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%package -n %{libforms}
|
|
Summary: Fast Light Tool Kit (FLTK) - library
|
|
Group: System/Libraries
|
|
Conflicts: %{_lib}fltk0 < 1.3.2-1
|
|
Conflicts: %{name} < 1.3.2
|
|
|
|
%description -n %{libforms}
|
|
This package contains a shared library for %{name}.
|
|
|
|
%files -n %{libforms}
|
|
%{_libdir}/libfltk_forms.so.%{major}
|
|
%{_libdir}/libfltk_forms.so.%{version}
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%package -n %{libgl}
|
|
Summary: Fast Light Tool Kit (FLTK) - library
|
|
Group: System/Libraries
|
|
Conflicts: %{_lib}fltk0 < 1.3.2-1
|
|
Conflicts: %{name} < 1.3.2
|
|
|
|
%description -n %{libgl}
|
|
This package contains a shared library for %{name}.
|
|
|
|
%files -n %{libgl}
|
|
%{_libdir}/libfltk_gl.so.%{major}
|
|
%{_libdir}/libfltk_gl.so.%{version}
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%package -n %{libimages}
|
|
Summary: Fast Light Tool Kit (FLTK) - library
|
|
Group: System/Libraries
|
|
Conflicts: %{_lib}fltk0 < 1.3.2-1
|
|
Conflicts: %{name} < 1.3.2
|
|
|
|
%description -n %{libimages}
|
|
This package contains a shared library for %{name}.
|
|
|
|
%files -n %{libimages}
|
|
%{_libdir}/libfltk_images.so.%{major}
|
|
%{_libdir}/libfltk_images.so.%{version}
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%package -n %{devname}
|
|
Summary: Fast Light Tool Kit (FLTK) - development environment
|
|
Group: Development/C
|
|
Requires: %{libname} = %{EVRD}
|
|
Requires: %{libforms} = %{EVRD}
|
|
Requires: %{libgl} = %{EVRD}
|
|
Requires: %{libimages} = %{EVRD}
|
|
Provides: %{name}-devel = %{EVRD}
|
|
|
|
%description -n %{devname}
|
|
Install libfltk1-devel if you need to develop FLTK applications. You'll
|
|
need to install the libfltk1.1 package if you plan to run dynamically
|
|
linked applications.
|
|
|
|
%files -n %{devname}
|
|
%doc README CHANGES
|
|
%{_includedir}/F?
|
|
%{_bindir}/fltk-config
|
|
%{_bindir}/fluid
|
|
%{multiarch_bindir}/fltk-config
|
|
%{_mandir}/man?/*
|
|
%{_libdir}/libfltk*.so
|
|
%{_libdir}/libfltk*.a
|
|
%dir %{_libdir}/fltk
|
|
%{_libdir}/fltk/*
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -q
|
|
%apply_patches
|
|
|
|
%build
|
|
%define Werror_cflags %{nil}
|
|
export LDFLAGS="$LDFLAGS -lXfixes"
|
|
%cmake \
|
|
-DOPTION_BUILD_SHARED_LIBS=ON \
|
|
-DOPTION_PREFIX_MAN=%{_mandir} \
|
|
-DOPTION_PREFIX_LIB=%{_libdir} \
|
|
-DOPTION_BUILD_EXAMPLES=OFF \
|
|
-DOPTION_PREFIX_CONFIG=%{_libdir}/FLTK-%{api} \
|
|
-DFLTK_USE_SYSTEM_ZLIB=ON \
|
|
-DFLTK_USE_SYSTEM_JPEG=ON \
|
|
-DFLTK_USE_SYSTEM_PNG=ON \
|
|
-DBUILD_EXAMPLES=OFF
|
|
%make
|
|
|
|
%install
|
|
%makeinstall_std -C build
|
|
|
|
%multiarch_binaries %{buildroot}%{_bindir}/fltk-config
|
|
|