- updated to 1.7.57
[packages/fox.git] / fox.spec
1 #
2 # Conditional build:
3 %bcond_without  cups            # CUPS support
4 %bcond_without  openjpeg        # JPEG2000 support
5 %bcond_without  static_libs     # don't build static libraries
6 #
7 Summary:        The FOX C++ GUI Toolkit
8 Summary(pl.UTF-8):      FOX - toolkit graficzny w C++
9 Name:           fox
10 # NOTE: after switching to 1.8.x keep stable (1.8.x) on HEAD and devel (1.9.x) on DEVEL
11 Version:        1.7.57
12 Release:        1
13 License:        LGPL v3+ with relinking exemption
14 Group:          X11/Libraries
15 Source0:        http://ftp.fox-toolkit.org/pub/%{name}-%{version}.tar.gz
16 # Source0-md5:  caeed36d43b5d4f18193657bf236200d
17 Patch0:         %{name}-opt.patch
18 Patch1:         %{name}-link.patch
19 Patch2:         %{name}-Makefile.patch
20 Patch3:         x32.patch
21 URL:            http://www.fox-toolkit.org/
22 BuildRequires:  OpenGL-GLU-devel
23 BuildRequires:  autoconf >= 2.59-9
24 BuildRequires:  automake
25 BuildRequires:  bzip2-devel >= 1.0.2
26 %{?with_cups:BuildRequires:     cups-devel}
27 BuildRequires:  doxygen
28 BuildRequires:  libjpeg-devel >= 6b
29 BuildRequires:  libpng-devel >= 1.2.5
30 BuildRequires:  libstdc++-devel
31 BuildRequires:  libtiff-devel >= 3.5.7
32 BuildRequires:  libtool >= 2:1.5
33 BuildRequires:  libwebp-devel
34 %{?with_openjpeg:BuildRequires: openjpeg-devel}
35 BuildRequires:  pkgconfig
36 BuildRequires:  xorg-lib-libXcursor-devel
37 BuildRequires:  xorg-lib-libXext-devel
38 BuildRequires:  xorg-lib-libXft-devel
39 BuildRequires:  xorg-lib-libXi-devel
40 BuildRequires:  xorg-lib-libXrandr-devel
41 BuildRequires:  zlib-devel >= 1.1.4
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
45
46 %description
47 FOX is a C++-Based Library for Graphical User Interface Development
48 FOX supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
49 Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
50 idle processing, automatic GUI updating, as well as OpenGL/Mesa for 3D
51 graphics. Subclassing of basic FOX widgets allows for easy extension
52 beyond the built-in widgets by application writers.
53
54 %description -l pl.UTF-8
55 FOX jest biblioteką bazującą na C++ do projektowania graficznych
56 interfejsów użytkownika. Obsługuje wiele właściwości współczesnych
57 GUI: Drag-and-Drop, listy, ikony, interfejsy wielodokumentowe (MDI),
58 liczniki, przetwarzanie w tle, automatyczne uaktualnianie GUI, obsługę
59 grafiki OpenGL. Bazowe klasy widgetów FOX pozwalają na łatwe
60 rozszerzanie.
61
62 %package progs
63 Summary:        FOX example applications
64 Summary(pl.UTF-8):      Przykłady aplikacji w FOX
65 Group:          X11/Applications
66 Requires:       %{name} = %{version}-%{release}
67 Obsoletes:      fox-example-apps
68
69 %description progs
70 Editor and file browser, written with FOX.
71
72 %description progs -l pl.UTF-8
73 Edytor i przeglądarka plików napisane z użyciem toolkitu FOX.
74
75 %package devel
76 Summary:        Header files for FOX library
77 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki FOX
78 Group:          X11/Development/Libraries
79 Requires:       %{name} = %{version}-%{release}
80 Requires:       OpenGL-GLU-devel
81 Requires:       bzip2-devel >= 1.0.2
82 Requires:       cups-devel
83 Requires:       libjpeg-devel >= 6b
84 Requires:       libpng-devel >= 1.2.5
85 Requires:       libstdc++-devel
86 Requires:       libtiff-devel >= 3.5.7
87 Requires:       libwebp-devel
88 %{?with_openjpeg:Requires:      openjpeg-devel}
89 Requires:       xorg-lib-libXcursor-devel
90 Requires:       xorg-lib-libXext-devel
91 Requires:       xorg-lib-libXft-devel
92 Requires:       xorg-lib-libXi-devel
93 Requires:       xorg-lib-libXrandr-devel
94 Requires:       zlib-devel >= 1.1.4
95
96 %description devel
97 Header files for FOX library.
98
99 %description devel -l pl.UTF-8
100 Pliki nagłówkowe biblioteki FOX.
101
102 %package static
103 Summary:        FOX static libraries
104 Summary(pl.UTF-8):      Biblioteki statyczne FOX
105 Group:          X11/Development/Libraries
106 Requires:       %{name}-devel = %{version}-%{release}
107
108 %description static
109 FOX static libraries.
110
111 %description static -l pl.UTF-8
112 Biblioteki statyczne FOX.
113
114 %package doc
115 Summary:        Development documentation for FOX library
116 Summary(pl.UTF-8):      Dokumentacja programisty do biblioteki FOX
117 Group:          X11/Development/Libraries
118
119 %description doc
120 Development documentation for FOX library.
121
122 %description doc -l pl.UTF-8
123 Dokumentacja programisty do biblioteki FOX.
124
125 %package examples
126 Summary:        FOX - example programs
127 Summary(pl.UTF-8):      FOX - programy przykładowe
128 Group:          X11/Development/Libraries
129 Requires:       %{name}-devel = %{version}-%{release}
130
131 %description examples
132 FOX - example programs.
133
134 %description examples -l pl.UTF-8
135 FOX - przykładowe programy.
136
137 %prep
138 %setup -q
139 %patch0 -p1
140 %patch1 -p1
141 %patch2 -p1
142 %patch3 -p1
143
144 %build
145 %{__libtoolize}
146 %{__aclocal}
147 %{__autoconf}
148 %{__automake}
149 %configure \
150         %{?with_cups:--enable-cups} \
151         %{?debug:--enable-debug}%{!?debug:--enable-release} \
152         %{?with_openjpeg:--enable-jp2} \
153         --enable-static%{!?with_static_libs:=no} \
154         --enable-webp \
155         --with-opengl \
156         --with-shape \
157         --with-xcursor \
158         --with-xft \
159         --with-xim \
160         --with-xrandr \
161         --with-xshm
162
163 %{__make}
164
165 %install
166 rm -rf $RPM_BUILD_ROOT
167 install -d $RPM_BUILD_ROOT{%{_datadir},%{_examplesdir}/%{name}-%{version}}
168
169 %{__make} install \
170         DESTDIR=$RPM_BUILD_ROOT
171
172 ln -sf libFOX-1.7.so $RPM_BUILD_ROOT%{_libdir}/libFOX.so
173
174 %{__make} -C tests clean
175 cp -r tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
176
177 %{__rm} doc/Makefile* doc/*/Makefile*
178
179 %clean
180 rm -rf $RPM_BUILD_ROOT
181
182 %post   -p /sbin/ldconfig
183 %postun -p /sbin/ldconfig
184
185 %files
186 %defattr(644,root,root,755)
187 %doc AUTHORS LICENSE_ADDENDUM README
188 %attr(755,root,root) %{_bindir}/ControlPanel
189 %attr(755,root,root) %{_libdir}/libCHART-1.7.so.*.*.*
190 %attr(755,root,root) %ghost %{_libdir}/libCHART-1.7.so.0
191 %attr(755,root,root) %{_libdir}/libFOX-1.7.so.*.*.*
192 %attr(755,root,root) %ghost %{_libdir}/libFOX-1.7.so.0
193 %{_mandir}/man1/ControlPanel.1*
194
195 %files progs
196 %defattr(644,root,root,755)
197 %attr(755,root,root) %{_bindir}/Adie.stx
198 %attr(755,root,root) %{_bindir}/PathFinder
199 %attr(755,root,root) %{_bindir}/adie
200 %attr(755,root,root) %{_bindir}/calculator
201 %attr(755,root,root) %{_bindir}/shutterbug
202 %{_mandir}/man1/PathFinder.1*
203 %{_mandir}/man1/adie.1*
204 %{_mandir}/man1/calculator.1*
205 %{_mandir}/man1/shutterbug.1*
206
207 %files devel
208 %defattr(644,root,root,755)
209 %doc ADDITIONS TRACING
210 %attr(755,root,root) %{_bindir}/fox-config
211 %attr(755,root,root) %{_bindir}/reswrap
212 %attr(755,root,root) %{_libdir}/libCHART-1.7.so
213 %attr(755,root,root) %{_libdir}/libFOX-1.7.so
214 %attr(755,root,root) %{_libdir}/libFOX.so
215 %{_libdir}/libCHART-1.7.la
216 %{_libdir}/libFOX-1.7.la
217 %{_includedir}/fox-1.7
218 %{_pkgconfigdir}/fox17.pc
219 %{_mandir}/man1/reswrap.1*
220
221 %if %{with static_libs}
222 %files static
223 %defattr(644,root,root,755)
224 %{_libdir}/libCHART-1.7.a
225 %{_libdir}/libFOX-1.7.a
226 %endif
227
228 %files doc
229 %defattr(644,root,root,755)
230 %doc doc/*
231
232 %files examples
233 %defattr(644,root,root,755)
234 %{_examplesdir}/%{name}-%{version}
This page took 0.099064 seconds and 3 git commands to generate.