]> git.pld-linux.org Git - packages/fltk.git/blob - fltk.spec
- fixed License files, added doc
[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:        5
6 License:        LGPL with amendments (see COPYING)
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 %description -l pl
24 Fast Light Tool Kit ("FLTK", wymawiane "faltik"), jest rozprowadzanym
25 na licencji LGPL narzêdziem do tworzenia graficznych interfejsów
26 u¿ytkownika w C++ dla X (UNIX(r)), OpenGL(r), i Microsoft(r) Windows(r) 
27 NT 4.0, 95, oraz 98. Jego pierwotnym autorem jest pan Bill Spitzak; obecnie 
28 pakiet jest rozwijany przez niewielk± grupê deweloperów z ró¿nych stron 
29 ¶wiata (centralne repozytorium znajduje siê w USA).
30
31 %package devel
32 Summary:        FLTK development files
33 Summary(pl):    Narzêdzia programistyczne dla FLTK
34 Group:          X11/Development/Libraries
35 Requires:       %{name} = %{version}
36
37 %description devel
38 FLTK development files.
39
40 %description devel -l pl
41 Narzêdzia programistyczne dla FLTK.
42
43 %package static
44 Summary:        FLTK static library.
45 Summary(pl):    Biblioteka FLTK linkowana statycznie
46 Group:          X11/Development/Libraries
47 Requires:       %{name}-devel = %{version}
48
49 %description static
50 FLTK static library.
51
52 %description static -l pl
53 Biblioteka FLTK linkowana statycznie.
54
55 %prep
56 %setup -q
57
58 install %{SOURCE1} .
59
60 %build
61 %configure2_13 \
62         --libdir=$RPM_BUILD_ROOT%{_libdir} \
63         --includedir=$RPM_BUILD_ROOT%{_includedir} \
64         --bindir=$RPM_BUILD_ROOT%{_bindir} \
65         --enable-shared \
66         --with-x
67
68 %{__make} depend
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/FL,%{_libdir}}
74
75 cd fluid
76 %{__make} install
77 cd ../src
78 %{__make} install
79 cd ..
80
81 rm -f $RPM_BUILD_ROOT%{_libdir}/*.so
82 mv -f $RPM_BUILD_ROOT%{_libdir}/libfltk.so.1 \
83         $RPM_BUILD_ROOT%{_libdir}/libfltk.so.%{version}
84 ln -sf libfltk.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libfltk.so
85
86 # note: COPYING contains amendments to LGPL, so don't remove!
87 gzip -9nf CHANGES COPYING README
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post   -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
94
95 %files
96 %defattr(644,root,root,755)
97 %doc *.gz
98 %attr(755,root,root) %{_libdir}/*.so.*.*.*
99
100 %files devel
101 %defattr(644,root,root,755)
102 %doc documentation/* fltk.ps.gz
103 %attr(75,root,root) %{_libdir}/libfltk.so
104 %attr(755,root,root) %{_bindir}/fluid
105 %{_includedir}/FL
106
107 %files static
108 %defattr(644,root,root,755)
109 %attr(644,root,root) %{_libdir}/*.a
This page took 0.057008 seconds and 4 git commands to generate.