]> git.pld-linux.org Git - packages/fltk.git/blob - fltk.spec
- adapterized.
[packages/fltk.git] / fltk.spec
1 Summary:        Fast Light Tool Kit
2 Summary(pl):    FLTK - "lekki" X11 toolkit
3 Name:           fltk
4 Version:        1.0.11
5 Release:        4
6 License:        GPL
7 Group:          X11/Libraries
8 Source0:        ftp://ftp.easysw.com/pub/%{name}/%{version}/%{name}-%{version}-source.tar.bz2
9 Source1:        http://www.fltk.org/doc/%{name}.ps.gz
10 URL:            http://www.fltk.org/
11 BuildRequires:  XFree86-devel >= 3.3.6
12 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %define         _prefix         /usr/X11R6
15
16 %description
17 The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
18 C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r), and
19 Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally developed
20 by Mr. Bill Spitzak and is currently maintained by a small group of
21 developers across the world with a central repository in the US.
22
23 %package devel
24 Summary:        FLTK development files
25 Summary(pl):    Narzêdzia programistyczne dla FLTK
26 Group:          X11/Development/Libraries
27 Requires:       %{name} = %{version}
28
29 %description devel
30 FLTK development files.
31
32 %description devel -l pl
33 Narzêdzia programistyczne dla FLTK.
34
35 %package static
36 Summary:        FLTK static library.
37 Summary(pl):    Biblioteka FLTK linkowana statycznie
38 Group:          X11/Development/Libraries
39 Requires:       %{name}-devel = %{version}
40
41 %description static
42 FLTK static library.
43
44 %description static -l pl
45 Biblioteka FLTK linkowana statycznie.
46
47 %prep
48 %setup -q
49
50 install %{SOURCE1} .
51
52 %build
53 %configure2_13 \
54         --libdir=$RPM_BUILD_ROOT%{_libdir} \
55         --includedir=$RPM_BUILD_ROOT%{_includedir} \
56         --bindir=$RPM_BUILD_ROOT%{_bindir} \
57         --enable-shared \
58         --with-x
59
60 %{__make} depend
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/FL,%{_libdir}}
66
67 (cd fluid;%{__make} install)
68 (cd src;%{__make} install)
69
70 rm $RPM_BUILD_ROOT%{_libdir}/*.so
71 mv $RPM_BUILD_ROOT%{_libdir}/libfltk.so.1 \
72         $RPM_BUILD_ROOT%{_libdir}/libfltk.so.%{version}
73 ln -sf libfltk.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libfltk.so
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_libdir}/*.so.*.*.*
84
85 %files devel
86 %defattr(644,root,root,755)
87 %doc documentation/* fltk.ps.gz
88 %attr(75,root,root) %{_libdir}/libfltk.so
89 %attr(755,root,root) %{_bindir}/fluid
90 %{_includedir}/FL
91
92 %files static
93 %defattr(644,root,root,755)
94 %attr(644,root,root) %{_libdir}/*.a
This page took 0.092984 seconds and 4 git commands to generate.