- fltk-1.1.x-r5555 snapshot, for 64bit issues (#219348)
- restore static libs (they're tightly coupled with fltk-config) - cleanup %description's
This commit is contained in:
parent
7a10b478a0
commit
222547698d
@ -1 +1,2 @@
|
|||||||
fltk-1.1.7-source.tar.bz2
|
fltk-1.1.7-source.tar.bz2
|
||||||
|
fltk-1.1.x-r5555.tar.bz2
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
done
|
done
|
||||||
|
|
||||||
+test:
|
+test:
|
||||||
+ (cd test;; $(MAKE) $(MFLAGS)) ||:
|
+ (cd test;; $(MAKE) $(MFLAGS)) || exit 1
|
||||||
+
|
+
|
||||||
install: makeinclude
|
install: makeinclude
|
||||||
-mkdir -p $(DESTDIR)$(bindir)
|
-mkdir -p $(DESTDIR)$(bindir)
|
||||||
|
65
fltk.spec
65
fltk.spec
@ -1,13 +1,20 @@
|
|||||||
|
|
||||||
|
%define snap r5555
|
||||||
|
#define _disable_static --disable-static
|
||||||
|
|
||||||
Summary: C++ user interface toolkit
|
Summary: C++ user interface toolkit
|
||||||
Name: fltk
|
Name: fltk
|
||||||
Version: 1.1.7
|
Version: 1.1.7
|
||||||
Release: 6%{?dist}
|
Release: 7.%{snap}%{?dist}
|
||||||
|
|
||||||
License: LGPL with exceptions
|
License: LGPL with exceptions
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://www.fltk.org/
|
URL: http://www.fltk.org/
|
||||||
|
%if "%{?snap:1}" == "1"
|
||||||
|
Source0: ftp://ftp.easysw.com/pub/fltk/snapshots/fltk-1.1.x-%{snap}.tar.bz2
|
||||||
|
%else
|
||||||
Source0: http://ftp.easysw.com/pub/fltk/%{version}/%{name}-%{version}-source.tar.bz2
|
Source0: http://ftp.easysw.com/pub/fltk/%{version}/%{name}-%{version}-source.tar.bz2
|
||||||
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
# See http://bugzilla.redhat.com/199656
|
# See http://bugzilla.redhat.com/199656
|
||||||
@ -29,8 +36,14 @@ BuildRequires: pkgconfig
|
|||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: man
|
BuildRequires: man
|
||||||
|
|
||||||
|
%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
|
%package devel
|
||||||
Summary: Development package for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: libstdc++-devel
|
Requires: libstdc++-devel
|
||||||
@ -41,36 +54,27 @@ Requires: libX11-devel libSM-devel libICE-devel
|
|||||||
%else
|
%else
|
||||||
Requires: xorg-x11-devel
|
Requires: xorg-x11-devel
|
||||||
%endif
|
%endif
|
||||||
|
%description devel
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
%package fluid
|
%package fluid
|
||||||
Summary: Fast Light User Interface Designer
|
Summary: Fast Light User Interface Designer
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Requires: %{name}-devel = %{version}-%{release}
|
Requires: %{name}-devel = %{version}-%{release}
|
||||||
|
|
||||||
%description
|
|
||||||
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for
|
|
||||||
UNIX/Linux (X11), Microsoft Windows, and Mac OS X. It provides modern
|
|
||||||
GUI functionality without the bloat, and supports 3D graphics via
|
|
||||||
OpenGL and its built-in GLUT emulation. FLTK is designed to be small
|
|
||||||
and modular enough to be statically linked, and also works fine as a
|
|
||||||
shared library.
|
|
||||||
|
|
||||||
%description devel
|
|
||||||
This package contains development files for %{name}
|
|
||||||
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for
|
|
||||||
UNIX/Linux (X11), Microsoft Windows, and Mac OS X. It provides modern
|
|
||||||
GUI functionality without the bloat, and supports 3D graphics via
|
|
||||||
OpenGL and its built-in GLUT emulation.
|
|
||||||
|
|
||||||
%description fluid
|
%description fluid
|
||||||
fluid stands for the Fast Light User Interface Designer. It is an
|
%{summary}, an interactive GUI designer for %{name}.
|
||||||
interactive GUI designer for FLTK.
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}%{?extraversion}
|
%if "%{?snap:1}" == "1"
|
||||||
|
%setup -q -n fltk-1.1.x-%{snap}
|
||||||
|
%else
|
||||||
|
%setup -q
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{?snap:1}" != "1"
|
||||||
%patch1 -p1 -b .199656
|
%patch1 -p1 -b .199656
|
||||||
|
%endif
|
||||||
%patch2 -p1 -b .test
|
%patch2 -p1 -b .test
|
||||||
|
|
||||||
|
|
||||||
@ -79,7 +83,7 @@ export CPPFLAGS="$(pkg-config xft --cflags)"
|
|||||||
export LDFLAGS="$(pkg-config xft --libs)"
|
export LDFLAGS="$(pkg-config xft --libs)"
|
||||||
|
|
||||||
%configure \
|
%configure \
|
||||||
--disable-static \
|
%{?_disable_static} \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-threads \
|
--enable-threads \
|
||||||
--enable-xdbe \
|
--enable-xdbe \
|
||||||
@ -106,11 +110,13 @@ mv $RPM_BUILD_ROOT%{_docdir}/fltk __docs
|
|||||||
## unpackaged files
|
## unpackaged files
|
||||||
# errant docs
|
# errant docs
|
||||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
|
||||||
|
%if "%{?_disable_static:1}" == "1"
|
||||||
# static libs
|
# static libs
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
|
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
|
||||||
# games: checkers/sudoku
|
%endif
|
||||||
|
# omit examples/games:
|
||||||
make -C test uninstall-linux DESTDIR=$RPM_BUILD_ROOT
|
make -C test uninstall-linux DESTDIR=$RPM_BUILD_ROOT
|
||||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man?/{sudoku,checkers}*
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man?/{blocks,checkers,sudoku}*
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -154,6 +160,12 @@ update-desktop-database >& /dev/null ||:
|
|||||||
%{_libdir}/libfltk_forms.so
|
%{_libdir}/libfltk_forms.so
|
||||||
%{_libdir}/libfltk_gl.so
|
%{_libdir}/libfltk_gl.so
|
||||||
%{_libdir}/libfltk_images.so
|
%{_libdir}/libfltk_images.so
|
||||||
|
%if "%{?_disable_static:1}" != "1"
|
||||||
|
%{_libdir}/libfltk.a
|
||||||
|
%{_libdir}/libfltk_forms.a
|
||||||
|
%{_libdir}/libfltk_gl.a
|
||||||
|
%{_libdir}/libfltk_images.a
|
||||||
|
%endif
|
||||||
%{_mandir}/man1/fltk-config.1*
|
%{_mandir}/man1/fltk-config.1*
|
||||||
%{_mandir}/man3/fltk.3*
|
%{_mandir}/man3/fltk.3*
|
||||||
|
|
||||||
@ -168,6 +180,11 @@ update-desktop-database >& /dev/null ||:
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-7.r5555
|
||||||
|
- fltk-1.1.x-r5555 snapshot, for 64bit issues (#219348)
|
||||||
|
- restore static libs (they're tightly coupled with fltk-config)
|
||||||
|
- cleanup %%description's
|
||||||
|
|
||||||
* Mon Dec 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-6
|
* Mon Dec 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-6
|
||||||
- move tests to %%check section
|
- move tests to %%check section
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user