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