]> git.pld-linux.org Git - packages/fltk.git/blob - fltk.spec
- new %%doc, install manuals in mandir, not docdir
[packages/fltk.git] / fltk.spec
1 Summary:        Fast Light Tool Kit
2 Summary(pl):    FLTK - "lekki" X11 toolkit
3 Summary(pt_BR): Interface gráfica em C++ para X, OpenGL e Windows
4 Name:           fltk
5 Version:        1.0.11
6 Release:        6
7 License:        LGPL with amendments (see COPYING)
8 Group:          X11/Libraries
9 Source0:        ftp://ftp.easysw.com/pub/%{name}/%{version}/%{name}-%{version}-source.tar.bz2
10 Source1:        http://www.fltk.org/doc/%{name}.ps.gz
11 Patch0:         %{name}-fluid-shared.patch
12 URL:            http://www.fltk.org/
13 BuildRequires:  XFree86-devel >= 3.3.6
14 BuildRequires:  gcc-c++
15 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Obsoletes:      libfltk1.1
17
18 %define         _prefix         /usr/X11R6
19 %define         _mandir         %{_prefix}/man
20
21 %description
22 The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
23 C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r), and
24 Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally developed
25 by Mr. Bill Spitzak and is currently maintained by a small group of
26 developers across the world with a central repository in the US.
27
28 %description -l pl
29 Fast Light Tool Kit ("FLTK", wymawiane "faltik"), jest rozprowadzanym
30 na licencji LGPL narzêdziem do tworzenia graficznych interfejsów
31 u¿ytkownika w C++ dla X (UNIX(r)), OpenGL(r), i Microsoft(r)
32 Windows(r) NT 4.0, 95, oraz 98. Jego pierwotnym autorem jest pan Bill
33 Spitzak; obecnie pakiet jest rozwijany przez niewielk± grupê
34 deweloperów z ró¿nych stron ¶wiata (centralne repozytorium znajduje
35 siê w USA).
36
37 %description -l pt_BR
38 A Fast Light Tool Kit ("FLTK", pronuncia-se "fulltick") é uma
39 ferramenta e interface gráfica feita em C++ para desenvolver
40 aplicativos para o X, OpenGL e Windows.
41
42 %package devel
43 Summary:        FLTK development files
44 Summary(pl):    Narzêdzia programistyczne dla FLTK
45 Summary(pt_BR): Arquivos de inclusão para o FLTK
46 Group:          X11/Development/Libraries
47 Requires:       %{name} = %{version}
48 Obsoletes:      libfltk1.1-devel
49
50 %description devel
51 FLTK development files.
52
53 %description devel -l pl
54 Narzêdzia programistyczne dla FLTK.
55
56 %description devel -l pt_BR
57 Arquivos de inclusão para o FLTK.
58
59 %package static
60 Summary:        FLTK static library.
61 Summary(pl):    Biblioteka FLTK linkowana statycznie
62 Summary(pt_BR): Bibliotecas estáticas para o FLTK
63 Group:          X11/Development/Libraries
64 Requires:       %{name}-devel = %{version}
65
66 %description static
67 FLTK static library.
68
69 %description static -l pl
70 Biblioteka FLTK linkowana statycznie.
71
72 %description static -l pt_BR
73 Bibliotecas estáticas para o FLTK.
74
75 %prep
76 %setup -q
77 %patch -p1
78
79 install %{SOURCE1} .
80
81 %build
82 %configure2_13 \
83         --libdir=$RPM_BUILD_ROOT%{_libdir} \
84         --includedir=$RPM_BUILD_ROOT%{_includedir} \
85         --bindir=$RPM_BUILD_ROOT%{_bindir} \
86         --enable-shared \
87         --with-x
88
89 %{__make} depend
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/FL,%{_libdir},%{_mandir}/man1}
95
96 cd fluid
97 %{__make} install
98 cd ../src
99 %{__make} install
100 cd ..
101
102 rm -f $RPM_BUILD_ROOT%{_libdir}/*.so
103 mv -f $RPM_BUILD_ROOT%{_libdir}/libfltk.so.1 \
104         $RPM_BUILD_ROOT%{_libdir}/libfltk.so.%{version}
105 ln -sf libfltk.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libfltk.so
106 mv -f documentation/fltk.man $RPM_BUILD_ROOT%{_mandir}/man1/fltk.1
107 mv -f documentation/fluid.man $RPM_BUILD_ROOT%{_mandir}/man1/fluid.1
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %post   -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
114
115 %files
116 %defattr(644,root,root,755)
117 # note: COPYING contains amendments to LGPL, so don't remove!
118 %doc CHANGES COPYING README
119 %attr(755,root,root) %{_libdir}/*.so.*.*.*
120
121 %files devel
122 %defattr(644,root,root,755)
123 %doc documentation/* fltk.ps.gz
124 %attr(755,root,root) %{_libdir}/libfltk.so
125 %attr(755,root,root) %{_bindir}/fluid
126 %{_includedir}/FL
127 %{_mandir}/man1/*
128
129 %files static
130 %defattr(644,root,root,755)
131 %attr(644,root,root) %{_libdir}/*.a
This page took 0.074445 seconds and 3 git commands to generate.