Remove useless Fl_Roller widget.
[ntk.git] / ntk.spec.in
blob8921450a84c7dd0568b9c4b2ca4083b5c63f03f6
2 # "$Id: ntk.spec.in 8646 2011-05-10 20:47:21Z matt $"
4 # RPM spec file for FLTK.
6 # Copyright 1998-2011 by Bill Spitzak and others.
8 # This library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Library General Public
10 # License as published by the Free Software Foundation; either
11 # version 2 of the License, or (at your option) any later version.
13 # This library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Library General Public License for more details.
18 # You should have received a copy of the GNU Library General Public
19 # License along with this library; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 # USA.
23 # Please report all bugs and problems on the following page:
25 # http://www.ntk.org/str.php
28 %define version @FL_MAJOR_VERSION@.@FL_MINOR_VERSION@.@FL_PATCH_VERSION@
29 %define release 1
30 %define prefix /usr
32 Summary: Fast Light Tool Kit (FLTK)
33 Name: ntk
34 Version: %{version}
35 Release: %{release}
36 License: LGPL
37 Group: System Environment/Libraries
38 Source: ftp://ftp.ntk.org/pub/ntk/%{version}/ntk-%{version}-source.tar.gz
39 URL: http://www.ntk.org/
40 Packager: FLTK Developer <ntk@ntk.org>
41 # use BuildRoot so as not to disturb the version already installed
42 BuildRoot: /var/tmp/ntk-%{PACKAGE_VERSION}
44 %description
45 The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a
46 cross-platform C++ GUI toolkit for UNIX(r)/Linux(r) (X11),
47 Microsoft(r) Windows(r), and MacOS(r) X. FLTK provides modern
48 GUI functionality without the bloat and supports 3D graphics via
49 OpenGL(r) and its built-in GLUT emulation.
51 %package devel
52 Summary: FLTK Development Environment
53 Group: Development/Libraries
55 %description devel
56 Install ntk-devel if you need to develop FLTK applications.
57 You'll need to install the ntk package if you plan to run
58 dynamically linked applications.
60 %package games
61 Summary: FLTK Games
62 Group: Games
64 %description games
65 Install ntk-games to play Block Attack!, Checkers, or Sudoku on your computer.
67 %prep
68 %setup
70 %build
71 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --mandir=%{_mandir} --enable-largefile --enable-shared --enable-threads --enable-xft --enable-xdbe --enable-xinerama
73 # If we got this far, all prerequisite libraries must be here.
74 make
76 %install
77 # these lines just make sure the directory structure in the
78 # RPM_BUILD_ROOT exists
79 rm -rf $RPM_BUILD_ROOT
80 mkdir -p $RPM_BUILD_ROOT
82 make -e DESTDIR=$RPM_BUILD_ROOT install install-desktop
84 %clean
85 rm -rf $RPM_BUILD_ROOT
87 %files
88 %defattr(-,root,root)
89 %dir %{prefix}/lib
90 %{prefix}/lib/libntk*.so.*
92 %files devel
93 %defattr(-,root,root)
95 %dir %{prefix}/bin
96 %{prefix}/bin/ntk-config
97 %{prefix}/bin/fluid
99 %dir %{prefix}/include/FL
100 %{prefix}/include/FL/*
101 %{prefix}/include/Fl
103 %dir %{prefix}/lib
104 %{prefix}/lib/libntk*.so
105 %{prefix}/lib/libntk*.a
107 %dir %{_mandir}
108 %{_mandir}/cat1/*
109 %{_mandir}/cat3/*
110 %{_mandir}/man1/*
111 %{_mandir}/man3/*
113 %dir %{prefix}/share/doc/ntk
114 %{prefix}/share/doc/ntk/*
116 %dir %{prefix}/share/applications
117 %{prefix}/share/applications/*
119 %dir %{prefix}/share/icons
120 %{prefix}/share/icons/hicolor/*/apps/fluid.png
122 %dir %{prefix}/share/mimelnk
123 %{prefix}/share/mimelnk/*
125 %files games
126 %dir %{prefix}/bin
127 %{prefix}/bin/blocks
128 %{prefix}/bin/checkers
129 %{prefix}/bin/sudoku
131 %dir %{_mandir}
132 %{_mandir}/cat6/*
133 %{_mandir}/man6/*
135 %dir %{prefix}/share/applications
136 %{prefix}/share/applications/*
138 %dir %{prefix}/share/icons
139 %{prefix}/share/icons/hicolor/*/apps/blocks.png
140 %{prefix}/share/icons/hicolor/*/apps/checkers.png
141 %{prefix}/share/icons/hicolor/*/apps/sudoku.png
144 # End of "$Id: ntk.spec.in 8646 2011-05-10 20:47:21Z matt $".