1 |
%define major 2 |
2 |
%define libname %mklibname %{fname} %{major} |
3 |
%define develname %mklibname %{fname} %{major} -d |
4 |
|
5 |
%define fname fltk |
6 |
%define fver 2.0.x |
7 |
%define svn 8323 |
8 |
%define rel 2 |
9 |
|
10 |
%if %svn |
11 |
%define release %mkrel 0.%{svn}.%{rel} |
12 |
%define distname %{fname}-%{fver}-r%{svn}.tar.bz2 |
13 |
%define dirname %{fname}-%{fver}-r%{svn} |
14 |
%else |
15 |
%define release %mkrel %{rel} |
16 |
%define distname %{fname}-%{version}.tar.bz2 |
17 |
%define dirname %{fname}-%{version} |
18 |
%endif |
19 |
|
20 |
Name: fltk2 |
21 |
Version: 2.0.0 |
22 |
Release: %{release} |
23 |
Group: System/Libraries |
24 |
Summary: Fast Light Tool Kit (FLTK) version 2 |
25 |
License: LGPLv2+ with exceptions |
26 |
Source0: http://ftp.easysw.com/pub/fltk/snapshots/%{distname} |
27 |
# Fix underlinking - AdamW 2008/12 |
28 |
Patch1: fltk2-6525-underlink.patch |
29 |
URL: http://www.fltk.org |
30 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
31 |
BuildRequires: libx11-devel |
32 |
BuildRequires: libxext-devel |
33 |
BuildRequires: libxft-devel |
34 |
BuildRequires: libxi-devel |
35 |
BuildRequires: libxrender-devel |
36 |
BuildRequires: libxinerama-devel |
37 |
BuildRequires: freetype2-devel |
38 |
BuildRequires: jpeg-devel |
39 |
BuildRequires: png-devel |
40 |
BuildRequires: zlib-devel |
41 |
BuildRequires: mesaglut-devel |
42 |
BuildRequires: GL-devel |
43 |
BuildRequires: makedepend |
44 |
BuildRequires: man |
45 |
|
46 |
%description |
47 |
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd |
48 |
C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r), |
49 |
and Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally |
50 |
developed by Mr. Bill Spitzak and is currently maintained by a |
51 |
small group of developers across the world with a central |
52 |
repository in the US. |
53 |
|
54 |
%package -n %{libname} |
55 |
Summary: Fast Light Tool Kit (FLTK) 2 - main library |
56 |
Group: System/Libraries |
57 |
|
58 |
%description -n %{libname} |
59 |
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd |
60 |
C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r), |
61 |
and Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally |
62 |
developed by Mr. Bill Spitzak and is currently maintained by a |
63 |
small group of developers across the world with a central |
64 |
repository in the US. |
65 |
|
66 |
%package -n %{develname} |
67 |
Summary: Fast Light Tool Kit (FLTK) - development environment |
68 |
Group: Development/C |
69 |
Requires: %{libname} = %{version}-%{release} |
70 |
Provides: %{name}-devel = %{version}-%{release} |
71 |
|
72 |
%description -n %{develname} |
73 |
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd |
74 |
C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r), |
75 |
and Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally |
76 |
developed by Mr. Bill Spitzak and is currently maintained by a |
77 |
small group of developers across the world with a central |
78 |
repository in the US. This package contains development libraries |
79 |
and headers. |
80 |
|
81 |
%prep |
82 |
%setup -qn %{fname}-%{fver}-r%{svn} |
83 |
%patch1 -p1 -b .underlink |
84 |
|
85 |
%build |
86 |
%configure2_5x --enable-shared |
87 |
%make |
88 |
|
89 |
%install |
90 |
rm -rf %{buildroot} |
91 |
%makeinstall_std |
92 |
|
93 |
%clean |
94 |
rm -rf %{buildroot} |
95 |
|
96 |
%files -n %{libname} |
97 |
%defattr(-,root,root) |
98 |
%{_libdir}/libfltk*.so.%{major}* |
99 |
|
100 |
%files -n %{develname} |
101 |
%defattr(-,root,root) |
102 |
%doc README README_fltk1_to_fltk2.txt CREDITS CHANGES COPYING TODO |
103 |
%{_bindir}/%{name}-config |
104 |
%{_bindir}/fluid2 |
105 |
%{_includedir}/%{fname} |
106 |
%{_libdir}/libfltk*.so |
107 |
%{_libdir}/libfltk*.a |
108 |
|
109 |
|