- rebuild without libjpeg.la
[packages/fox.git] / fox.spec
CommitLineData
297423d5 1#
4bdc51e2 2# Conditional build:
0f9d7d23 3%bcond_without cups # CUPS support
424f87e7 4%bcond_without openjpeg # JPEG2000 support
4bdc51e2 5%bcond_without static_libs # don't build static libraries
297423d5 6#
f2bd8c0b 7Summary: The FOX C++ GUI Toolkit
4d6e0c36 8Summary(pl.UTF-8): FOX - toolkit graficzny w C++
f2bd8c0b 9Name: fox
926e5a1f 10# NOTE: after switching to 1.8.x keep stable (1.8.x) on HEAD and devel (1.9.x) on DEVEL
910698a6 11Version: 1.7.57
d0165c5c 12Release: 3
926e5a1f 13License: LGPL v3+ with relinking exemption
f2bd8c0b 14Group: X11/Libraries
1a63b197 15Source0: http://ftp.fox-toolkit.org/pub/%{name}-%{version}.tar.gz
910698a6 16# Source0-md5: caeed36d43b5d4f18193657bf236200d
c9aea078 17Patch0: %{name}-opt.patch
e9810980 18Patch1: %{name}-link.patch
1b2184da 19Patch2: %{name}-Makefile.patch
71c8b69b 20Patch3: x32.patch
f1e19a23 21URL: http://www.fox-toolkit.org/
4fe15025
JB
22BuildRequires: OpenGL-GLU-devel
23BuildRequires: autoconf >= 2.59-9
e6b16e7b 24BuildRequires: automake
4fe15025 25BuildRequires: bzip2-devel >= 1.0.2
0f9d7d23 26%{?with_cups:BuildRequires: cups-devel}
5c3e9b3d 27BuildRequires: doxygen
4fe15025
JB
28BuildRequires: libjpeg-devel >= 6b
29BuildRequires: libpng-devel >= 1.2.5
e6b16e7b 30BuildRequires: libstdc++-devel
4fe15025
JB
31BuildRequires: libtiff-devel >= 3.5.7
32BuildRequires: libtool >= 2:1.5
926e5a1f
JB
33BuildRequires: libwebp-devel
34%{?with_openjpeg:BuildRequires: openjpeg-devel}
f3aa813e 35BuildRequires: pkgconfig
4fe15025
JB
36BuildRequires: xorg-lib-libXcursor-devel
37BuildRequires: xorg-lib-libXext-devel
38BuildRequires: xorg-lib-libXft-devel
254babe7 39BuildRequires: xorg-lib-libXi-devel
4fe15025
JB
40BuildRequires: xorg-lib-libXrandr-devel
41BuildRequires: zlib-devel >= 1.1.4
30dfb622 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
f2bd8c0b 43
71c8b69b 44%define _noautoreqdep libGL.so.1 libGLU.so.1
f2bd8c0b
MK
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
3fadbc84
JR
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
e6b16e7b 57GUI: Drag-and-Drop, listy, ikony, interfejsy wielodokumentowe (MDI),
3fadbc84
JR
58liczniki, przetwarzanie w tle, automatyczne uaktualnianie GUI, obsługę
59grafiki OpenGL. Bazowe klasy widgetów FOX pozwalają na łatwe
e6b16e7b
JB
60rozszerzanie.
61
75abd9d7 62%package progs
f2bd8c0b 63Summary: FOX example applications
4d6e0c36 64Summary(pl.UTF-8): Przykłady aplikacji w FOX
f2bd8c0b 65Group: X11/Applications
f2611d81 66Requires: %{name} = %{version}-%{release}
4fe15025 67Obsoletes: fox-example-apps
f2bd8c0b 68
75abd9d7 69%description progs
30dfb622 70Editor and file browser, written with FOX.
f2bd8c0b 71
3fadbc84
JR
72%description progs -l pl.UTF-8
73Edytor i przeglądarka plików napisane z użyciem toolkitu FOX.
e6b16e7b 74
f2bd8c0b 75%package devel
f2611d81 76Summary: Header files for FOX library
4d6e0c36 77Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FOX
f2bd8c0b 78Group: X11/Development/Libraries
a22b2395 79Requires: %{name} = %{version}-%{release}
4fe15025
JB
80Requires: OpenGL-GLU-devel
81Requires: bzip2-devel >= 1.0.2
71e6d619 82Requires: cups-devel
4fe15025
JB
83Requires: libjpeg-devel >= 6b
84Requires: libpng-devel >= 1.2.5
80b9d83d 85Requires: libstdc++-devel
4fe15025 86Requires: libtiff-devel >= 3.5.7
926e5a1f
JB
87Requires: libwebp-devel
88%{?with_openjpeg:Requires: openjpeg-devel}
4fe15025
JB
89Requires: xorg-lib-libXcursor-devel
90Requires: xorg-lib-libXext-devel
91Requires: xorg-lib-libXft-devel
254babe7 92Requires: xorg-lib-libXi-devel
4fe15025
JB
93Requires: xorg-lib-libXrandr-devel
94Requires: zlib-devel >= 1.1.4
f2bd8c0b
MK
95
96%description devel
f2611d81 97Header files for FOX library.
f2bd8c0b 98
3fadbc84
JR
99%description devel -l pl.UTF-8
100Pliki nagłówkowe biblioteki FOX.
e6b16e7b 101
f2bd8c0b
MK
102%package static
103Summary: FOX static libraries
4d6e0c36 104Summary(pl.UTF-8): Biblioteki statyczne FOX
f2bd8c0b 105Group: X11/Development/Libraries
f2611d81 106Requires: %{name}-devel = %{version}-%{release}
f2bd8c0b
MK
107
108%description static
30dfb622 109FOX static libraries.
f2bd8c0b 110
3fadbc84 111%description static -l pl.UTF-8
e6b16e7b
JB
112Biblioteki statyczne FOX.
113
f2611d81
JB
114%package doc
115Summary: Development documentation for FOX library
4d6e0c36 116Summary(pl.UTF-8): Dokumentacja programisty do biblioteki FOX
f2611d81
JB
117Group: X11/Development/Libraries
118
119%description doc
120Development documentation for FOX library.
121
3fadbc84 122%description doc -l pl.UTF-8
f2611d81
JB
123Dokumentacja programisty do biblioteki FOX.
124
3445f6f0 125%package examples
126Summary: FOX - example programs
4d6e0c36 127Summary(pl.UTF-8): FOX - programy przykładowe
3445f6f0 128Group: X11/Development/Libraries
129Requires: %{name}-devel = %{version}-%{release}
130
131%description examples
132FOX - example programs.
133
3fadbc84
JR
134%description examples -l pl.UTF-8
135FOX - przykładowe programy.
3445f6f0 136
f2bd8c0b
MK
137%prep
138%setup -q
e54cb892
JB
139%patch0 -p1
140%patch1 -p1
1b2184da 141%patch2 -p1
71c8b69b 142%patch3 -p1
f2bd8c0b
MK
143
144%build
c9aea078 145%{__libtoolize}
21a9ad7b 146%{__aclocal}
50741594 147%{__autoconf}
148%{__automake}
e54cb892 149%configure \
0f9d7d23 150 %{?with_cups:--enable-cups} \
297423d5 151 %{?debug:--enable-debug}%{!?debug:--enable-release} \
926e5a1f 152 %{?with_openjpeg:--enable-jp2} \
f60a1960 153 --enable-static%{!?with_static_libs:=no} \
154e1c3e 154 --enable-webp \
4fe15025 155 --with-opengl \
d15781b3 156 --with-shape \
d15781b3 157 --with-xcursor \
154e1c3e
JB
158 --with-xft \
159 --with-xim \
d15781b3 160 --with-xrandr \
154e1c3e 161 --with-xshm
d15781b3 162
49ccf524 163%{__make}
f2bd8c0b
MK
164
165%install
166rm -rf $RPM_BUILD_ROOT
3445f6f0 167install -d $RPM_BUILD_ROOT{%{_datadir},%{_examplesdir}/%{name}-%{version}}
30dfb622 168
3f3d05ff 169%{__make} install \
51798621 170 DESTDIR=$RPM_BUILD_ROOT
30dfb622 171
bd1ea9b9 172ln -sf libFOX-1.7.so $RPM_BUILD_ROOT%{_libdir}/libFOX.so
30dfb622 173
3445f6f0 174%{__make} -C tests clean
175cp -r tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
176
0f9d7d23
JB
177%{__rm} doc/Makefile* doc/*/Makefile*
178
f2bd8c0b
MK
179%clean
180rm -rf $RPM_BUILD_ROOT
181
e6b16e7b
JB
182%post -p /sbin/ldconfig
183%postun -p /sbin/ldconfig
184
f2bd8c0b
MK
185%files
186%defattr(644,root,root,755)
e54cb892 187%doc AUTHORS LICENSE_ADDENDUM README
0f9d7d23 188%attr(755,root,root) %{_bindir}/ControlPanel
bd1ea9b9 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
0f9d7d23 193%{_mandir}/man1/ControlPanel.1*
f2bd8c0b 194
75abd9d7 195%files progs
f2bd8c0b 196%defattr(644,root,root,755)
0f9d7d23
JB
197%attr(755,root,root) %{_bindir}/Adie.stx
198%attr(755,root,root) %{_bindir}/PathFinder
c9aea078
JB
199%attr(755,root,root) %{_bindir}/adie
200%attr(755,root,root) %{_bindir}/calculator
f7030fdb 201%attr(755,root,root) %{_bindir}/shutterbug
0f9d7d23
JB
202%{_mandir}/man1/PathFinder.1*
203%{_mandir}/man1/adie.1*
204%{_mandir}/man1/calculator.1*
205%{_mandir}/man1/shutterbug.1*
f2bd8c0b
MK
206
207%files devel
208%defattr(644,root,root,755)
f2611d81 209%doc ADDITIONS TRACING
195bd3af 210%attr(755,root,root) %{_bindir}/fox-config
1135f2a6 211%attr(755,root,root) %{_bindir}/reswrap
bd1ea9b9 212%attr(755,root,root) %{_libdir}/libCHART-1.7.so
213%attr(755,root,root) %{_libdir}/libFOX-1.7.so
055143d7 214%attr(755,root,root) %{_libdir}/libFOX.so
bd1ea9b9 215%{_libdir}/libCHART-1.7.la
216%{_libdir}/libFOX-1.7.la
217%{_includedir}/fox-1.7
2f26eac1 218%{_pkgconfigdir}/fox17.pc
0f9d7d23 219%{_mandir}/man1/reswrap.1*
f2bd8c0b 220
297423d5 221%if %{with static_libs}
f2bd8c0b
MK
222%files static
223%defattr(644,root,root,755)
bd1ea9b9 224%{_libdir}/libCHART-1.7.a
225%{_libdir}/libFOX-1.7.a
297423d5 226%endif
f2611d81
JB
227
228%files doc
229%defattr(644,root,root,755)
230%doc doc/*
3445f6f0 231
232%files examples
233%defattr(644,root,root,755)
234%{_examplesdir}/%{name}-%{version}
This page took 0.445754 seconds and 5 git commands to generate.