- rebuild without libjpeg.la
[packages/fox.git] / fox.spec
... / ...
CommitLineData
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#
7Summary: The FOX C++ GUI Toolkit
8Summary(pl.UTF-8): FOX - toolkit graficzny w C++
9Name: fox
10# NOTE: after switching to 1.8.x keep stable (1.8.x) on HEAD and devel (1.9.x) on DEVEL
11Version: 1.7.57
12Release: 3
13License: LGPL v3+ with relinking exemption
14Group: X11/Libraries
15Source0: http://ftp.fox-toolkit.org/pub/%{name}-%{version}.tar.gz
16# Source0-md5: caeed36d43b5d4f18193657bf236200d
17Patch0: %{name}-opt.patch
18Patch1: %{name}-link.patch
19Patch2: %{name}-Makefile.patch
20Patch3: x32.patch
21URL: http://www.fox-toolkit.org/
22BuildRequires: OpenGL-GLU-devel
23BuildRequires: autoconf >= 2.59-9
24BuildRequires: automake
25BuildRequires: bzip2-devel >= 1.0.2
26%{?with_cups:BuildRequires: cups-devel}
27BuildRequires: doxygen
28BuildRequires: libjpeg-devel >= 6b
29BuildRequires: libpng-devel >= 1.2.5
30BuildRequires: libstdc++-devel
31BuildRequires: libtiff-devel >= 3.5.7
32BuildRequires: libtool >= 2:1.5
33BuildRequires: libwebp-devel
34%{?with_openjpeg:BuildRequires: openjpeg-devel}
35BuildRequires: pkgconfig
36BuildRequires: xorg-lib-libXcursor-devel
37BuildRequires: xorg-lib-libXext-devel
38BuildRequires: xorg-lib-libXft-devel
39BuildRequires: xorg-lib-libXi-devel
40BuildRequires: xorg-lib-libXrandr-devel
41BuildRequires: zlib-devel >= 1.1.4
42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44%define _noautoreqdep libGL.so.1 libGLU.so.1
45
46%description
47FOX is a C++-Based Library for Graphical User Interface Development
48FOX supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
49Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
50idle processing, automatic GUI updating, as well as OpenGL/Mesa for 3D
51graphics. Subclassing of basic FOX widgets allows for easy extension
52beyond the built-in widgets by application writers.
53
54%description -l pl.UTF-8
55FOX jest biblioteką bazującą na C++ do projektowania graficznych
56interfejsów użytkownika. Obsługuje wiele właściwości współczesnych
57GUI: Drag-and-Drop, listy, ikony, interfejsy wielodokumentowe (MDI),
58liczniki, przetwarzanie w tle, automatyczne uaktualnianie GUI, obsługę
59grafiki OpenGL. Bazowe klasy widgetów FOX pozwalają na łatwe
60rozszerzanie.
61
62%package progs
63Summary: FOX example applications
64Summary(pl.UTF-8): Przykłady aplikacji w FOX
65Group: X11/Applications
66Requires: %{name} = %{version}-%{release}
67Obsoletes: fox-example-apps
68
69%description progs
70Editor and file browser, written with FOX.
71
72%description progs -l pl.UTF-8
73Edytor i przeglądarka plików napisane z użyciem toolkitu FOX.
74
75%package devel
76Summary: Header files for FOX library
77Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FOX
78Group: X11/Development/Libraries
79Requires: %{name} = %{version}-%{release}
80Requires: OpenGL-GLU-devel
81Requires: bzip2-devel >= 1.0.2
82Requires: cups-devel
83Requires: libjpeg-devel >= 6b
84Requires: libpng-devel >= 1.2.5
85Requires: libstdc++-devel
86Requires: libtiff-devel >= 3.5.7
87Requires: libwebp-devel
88%{?with_openjpeg:Requires: openjpeg-devel}
89Requires: xorg-lib-libXcursor-devel
90Requires: xorg-lib-libXext-devel
91Requires: xorg-lib-libXft-devel
92Requires: xorg-lib-libXi-devel
93Requires: xorg-lib-libXrandr-devel
94Requires: zlib-devel >= 1.1.4
95
96%description devel
97Header files for FOX library.
98
99%description devel -l pl.UTF-8
100Pliki nagłówkowe biblioteki FOX.
101
102%package static
103Summary: FOX static libraries
104Summary(pl.UTF-8): Biblioteki statyczne FOX
105Group: X11/Development/Libraries
106Requires: %{name}-devel = %{version}-%{release}
107
108%description static
109FOX static libraries.
110
111%description static -l pl.UTF-8
112Biblioteki statyczne FOX.
113
114%package doc
115Summary: Development documentation for FOX library
116Summary(pl.UTF-8): Dokumentacja programisty do biblioteki FOX
117Group: X11/Development/Libraries
118
119%description doc
120Development documentation for FOX library.
121
122%description doc -l pl.UTF-8
123Dokumentacja programisty do biblioteki FOX.
124
125%package examples
126Summary: FOX - example programs
127Summary(pl.UTF-8): FOX - programy przykładowe
128Group: X11/Development/Libraries
129Requires: %{name}-devel = %{version}-%{release}
130
131%description examples
132FOX - example programs.
133
134%description examples -l pl.UTF-8
135FOX - 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
166rm -rf $RPM_BUILD_ROOT
167install -d $RPM_BUILD_ROOT{%{_datadir},%{_examplesdir}/%{name}-%{version}}
168
169%{__make} install \
170 DESTDIR=$RPM_BUILD_ROOT
171
172ln -sf libFOX-1.7.so $RPM_BUILD_ROOT%{_libdir}/libFOX.so
173
174%{__make} -C tests clean
175cp -r tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
176
177%{__rm} doc/Makefile* doc/*/Makefile*
178
179%clean
180rm -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.149548 seconds and 5 git commands to generate.