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