]> git.pld-linux.org Git - packages/fltk.git/blob - fltk.spec
- BR: groff
[packages/fltk.git] / fltk.spec
1 #
2 # Conditional build:
3 %bcond_without  opengl  # without OpenGL libraries
4 %bcond_without  xft     # without Xft support
5 #
6 Summary:        Fast Light Tool Kit
7 Summary(pl.UTF-8):      FLTK - "lekki" X11 toolkit
8 Summary(pt_BR.UTF-8):   Interface gráfica em C++ para X, OpenGL e Windows
9 Name:           fltk
10 Version:        1.1.10
11 Release:        1
12 License:        LGPL with amendments (see COPYING)
13 Group:          X11/Libraries
14 Source0:        http://ftp.easysw.com/pub/fltk/%{version}/%{name}-%{version}-source.tar.bz2
15 # Source0-md5:  a1765594bc427ff892e36089fe1fa672
16 Source1:        http://www.fltk.org/doc-1.1/%{name}.pdf
17 # Source1-md5:  31ed176facf7531ad46bb232fb24906b
18 Patch0:         %{name}-desktop.patch
19 Patch1:         %{name}-1.1.9-as-needed.patch
20 Patch2:         %{name}-1.1.9-glibc2.10-scandir.patch
21 Patch3:         %{name}-link.patch
22 URL:            http://www.fltk.org/
23 %{?with_opengl:BuildRequires:   OpenGL-GLU-devel}
24 BuildRequires:  autoconf
25 BuildRequires:  groff
26 BuildRequires:  libjpeg-devel
27 BuildRequires:  libpng-devel
28 BuildRequires:  libstdc++-devel
29 BuildRequires:  rpmbuild(macros) >= 1.315
30 %{?with_xft:BuildRequires:      xorg-lib-libXft-devel}
31 BuildRequires:  xorg-lib-libXinerama-devel
32 BuildRequires:  xorg-util-makedepend
33 Obsoletes:      libfltk1.1
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
37
38 # don't propagate strip-flags to fltk-config.
39 %define         filterout_ld    (-Wl,)?-[sS] (-Wl,)?--strip.*
40
41 %description
42 The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
43 C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r), and
44 Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally developed
45 by Mr. Bill Spitzak and is currently maintained by a small group of
46 developers across the world with a central repository in the US.
47
48 %description -l pl.UTF-8
49 Fast Light Tool Kit ("FLTK", wymawiane "fultik"), jest rozprowadzanym
50 na licencji LGPL narzędziem do tworzenia graficznych interfejsów
51 użytkownika w C++ dla X (UNIX(r)), OpenGL(r), i Microsoft(r)
52 Windows(r) NT 4.0, 95, oraz 98. Jego pierwotnym autorem jest pan Bill
53 Spitzak; obecnie pakiet jest rozwijany przez niewielką grupę
54 deweloperów z różnych stron świata (centralne repozytorium znajduje
55 się w USA).
56
57 %description -l pt_BR.UTF-8
58 A Fast Light Tool Kit ("FLTK", pronuncia-se "fulltick") é uma
59 ferramenta e interface gráfica feita em C++ para desenvolver
60 aplicativos para o X, OpenGL e Windows.
61
62 %package devel
63 Summary:        FLTK development files
64 Summary(pl.UTF-8):      Narzędzia programistyczne dla FLTK
65 Summary(pt_BR.UTF-8):   Arquivos de inclusão para o FLTK
66 Group:          X11/Development/Libraries
67 Requires:       %{name} = %{version}-%{release}
68 Requires:       libjpeg-devel
69 Requires:       libpng-devel
70 Requires:       libstdc++-devel
71 %{?with_xft:Requires:   xorg-lib-libXft-devel}
72 Requires:       xorg-lib-libXinerama-devel
73 Obsoletes:      libfltk1.1-devel
74
75 %description devel
76 FLTK development files.
77
78 %description devel -l pl.UTF-8
79 Narzędzia programistyczne dla FLTK.
80
81 %description devel -l pt_BR.UTF-8
82 Arquivos de inclusão para o FLTK.
83
84 %package static
85 Summary:        FLTK static library
86 Summary(pl.UTF-8):      Biblioteka FLTK konsolidowana statycznie
87 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para o FLTK
88 Group:          X11/Development/Libraries
89 Requires:       %{name}-devel = %{version}-%{release}
90
91 %description static
92 FLTK static library.
93
94 %description static -l pl.UTF-8
95 Biblioteka FLTK konsolidowana statycznie.
96
97 %description static -l pt_BR.UTF-8
98 Bibliotecas estáticas para o FLTK.
99
100 %package gl
101 Summary:        FLTK GL library
102 Summary(pl.UTF-8):      Biblioteka FLTK GL
103 Group:          X11/Libraries
104 Requires:       %{name} = %{version}-%{release}
105 Requires:       OpenGL
106
107 %description gl
108 FLTK GL library.
109
110 %description gl -l pl.UTF-8
111 Biblioteka FLTK GL.
112
113 %package gl-devel
114 Summary:        Header files for FLTK GL library
115 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki FLTK GL
116 Group:          X11/Development/Libraries
117 Requires:       %{name}-devel = %{version}-%{release}
118 Requires:       %{name}-gl = %{version}-%{release}
119
120 %description gl-devel
121 Header files for FLTK GL library.
122
123 %description gl-devel -l pl.UTF-8
124 Pliki nagłówkowe biblioteki FLTK GL.
125
126 %package gl-static
127 Summary:        FLTK GL static library
128 Summary(pl.UTF-8):      Statyczna biblioteka FLTK GL
129 Group:          X11/Development/Libraries
130 Requires:       %{name}-gl-devel = %{version}-%{release}
131 Requires:       %{name}-static = %{version}-%{release}
132
133 %description gl-static
134 FLTK GL static library.
135
136 %description gl-static -l pl.UTF-8
137 Statyczna biblioteka FLTK GL.
138
139 %package games
140 Summary:        FLTK Games
141 Summary:        Gry FLTK
142 Group:          X11/Applications/Games
143 Requires:       %{name} = %{version}-%{release}
144
145 %description games
146 FLTK games: Block Attack!, Checkers, or Sudoku on your computer.
147
148 %description -l pl.UTF-8
149 Gry FLTK: Atak Klocków!, Warcaby, Sudoku.
150
151 %prep
152 %setup -q
153 %patch0 -p1
154 %patch1 -p1
155 %patch2 -p1
156 %patch3 -p1
157
158 install %{SOURCE1} .
159
160 %build
161 %{__autoconf}
162 %configure \
163         --enable-largefile \
164         --enable-shared \
165         --enable-threads \
166         --enable-xinerama \
167         --with-x \
168         --with-optim="%{rpmcxxflags}" \
169         %{!?with_opengl:--disable-gl} \
170         %{?with_xft:--enable-xft}
171
172 %{__make}
173
174 %install
175 rm -rf $RPM_BUILD_ROOT
176
177 %{__make} install \
178         install-desktop \
179         DESTDIR=$RPM_BUILD_ROOT
180
181 # less generic games' names
182 for f in blocks checkers sudoku ; do
183 mv -f $RPM_BUILD_ROOT%{_bindir}/{,fltk-}${f}
184 mv -f $RPM_BUILD_ROOT%{_mandir}/man6/{,fltk-}${f}.6
185 done
186
187 # add link to documentation for fluid help; remove /usr/share/doc/fltk contents - it is installed during make install
188 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
189 ln -sf %{name}-devel-%{version} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
190
191 %clean
192 rm -rf $RPM_BUILD_ROOT
193
194 %post   -p /sbin/ldconfig
195 %postun -p /sbin/ldconfig
196
197 %files
198 %defattr(644,root,root,755)
199 # note: COPYING contains amendments to LGPL, so don't remove!
200 %doc CHANGES COPYING CREDITS README
201 %attr(755,root,root) %{_libdir}/libfltk.so.*.*
202 %attr(755,root,root) %{_libdir}/libfltk_forms.so.*.*
203 %attr(755,root,root) %{_libdir}/libfltk_images.so.*.*
204
205 %files devel
206 %defattr(644,root,root,755)
207 %doc documentation/*.{html,gif,jpg} fltk.pdf
208 %doc %{_datadir}/doc/%{name}
209 %attr(755,root,root) %{_bindir}/fltk-config
210 %attr(755,root,root) %{_bindir}/fluid
211 %attr(755,root,root) %{_libdir}/libfltk.so
212 %attr(755,root,root) %{_libdir}/libfltk_forms.so
213 %attr(755,root,root) %{_libdir}/libfltk_images.so
214 %{_includedir}/FL
215 %exclude %{_includedir}/FL/Fl_Gl_Window.*
216 %exclude %{_includedir}/FL/gl*
217 %{_iconsdir}/*/*/*/fluid.png
218 %{_desktopdir}/fluid.desktop
219 # move to some KDE package?
220 #%{_datadir}/mimelnk/application/x-fluid.desktop
221 %{_mandir}/man1/fltk-config.1*
222 %{_mandir}/man1/fluid.1*
223 %{_mandir}/man3/fltk.3*
224
225 %files static
226 %defattr(644,root,root,755)
227 %{_libdir}/libfltk.a
228 %{_libdir}/libfltk_forms.a
229 %{_libdir}/libfltk_images.a
230
231 %if %{with opengl}
232 %files gl
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_libdir}/libfltk_gl.so.*.*
235
236 %files gl-devel
237 %defattr(644,root,root,755)
238 %attr(755,root,root) %{_libdir}/libfltk_gl.so
239 %{_includedir}/FL/Fl_Gl_Window.*
240 %{_includedir}/FL/gl*
241
242 %files gl-static
243 %defattr(644,root,root,755)
244 %{_libdir}/libfltk_gl.a
245 %endif
246
247 %files games
248 %defattr(644,root,root,755)
249 %attr(755,root,root) %{_bindir}/%{name}-blocks
250 %attr(755,root,root) %{_bindir}/%{name}-checkers
251 %attr(755,root,root) %{_bindir}/%{name}-sudoku
252 %{_iconsdir}/*/*/*/blocks.png
253 %{_iconsdir}/*/*/*/checkers.png
254 %{_iconsdir}/*/*/*/sudoku.png
255 %{_desktopdir}/blocks.desktop
256 %{_desktopdir}/checkers.desktop
257 %{_desktopdir}/sudoku.desktop
258 %{_mandir}/man6/%{name}-blocks.6*
259 %{_mandir}/man6/%{name}-checkers.6*
260 %{_mandir}/man6/%{name}-sudoku.6*
This page took 0.068337 seconds and 3 git commands to generate.