]> git.pld-linux.org Git - packages/fox.git/blame - fox.spec
Release 2 (by relup.sh)
[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
f3c95c84 11Version: 1.7.84
1538b4d8 12Release: 2
926e5a1f 13License: LGPL v3+ with relinking exemption
f2bd8c0b 14Group: X11/Libraries
f3c95c84
JB
15Source0: http://fox-toolkit.org/ftp/%{name}-%{version}.tar.gz
16# Source0-md5: 48eaf928985a52be0ef628f51fb5599f
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
f2bd8c0b
MK
44%description
45FOX is a C++-Based Library for Graphical User Interface Development
46FOX supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
47Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
48idle processing, automatic GUI updating, as well as OpenGL/Mesa for 3D
49graphics. Subclassing of basic FOX widgets allows for easy extension
50beyond the built-in widgets by application writers.
51
3fadbc84
JR
52%description -l pl.UTF-8
53FOX jest biblioteką bazującą na C++ do projektowania graficznych
54interfejsów użytkownika. Obsługuje wiele właściwości współczesnych
e6b16e7b 55GUI: Drag-and-Drop, listy, ikony, interfejsy wielodokumentowe (MDI),
3fadbc84
JR
56liczniki, przetwarzanie w tle, automatyczne uaktualnianie GUI, obsługę
57grafiki OpenGL. Bazowe klasy widgetów FOX pozwalają na łatwe
e6b16e7b
JB
58rozszerzanie.
59
75abd9d7 60%package progs
f2bd8c0b 61Summary: FOX example applications
4d6e0c36 62Summary(pl.UTF-8): Przykłady aplikacji w FOX
f2bd8c0b 63Group: X11/Applications
f2611d81 64Requires: %{name} = %{version}-%{release}
f3c95c84 65Obsoletes: fox-example-apps < 0.99.173
f2bd8c0b 66
75abd9d7 67%description progs
30dfb622 68Editor and file browser, written with FOX.
f2bd8c0b 69
3fadbc84
JR
70%description progs -l pl.UTF-8
71Edytor i przeglądarka plików napisane z użyciem toolkitu FOX.
e6b16e7b 72
f2bd8c0b 73%package devel
f2611d81 74Summary: Header files for FOX library
4d6e0c36 75Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FOX
f2bd8c0b 76Group: X11/Development/Libraries
a22b2395 77Requires: %{name} = %{version}-%{release}
4fe15025
JB
78Requires: OpenGL-GLU-devel
79Requires: bzip2-devel >= 1.0.2
71e6d619 80Requires: cups-devel
4fe15025
JB
81Requires: libjpeg-devel >= 6b
82Requires: libpng-devel >= 1.2.5
80b9d83d 83Requires: libstdc++-devel
4fe15025 84Requires: libtiff-devel >= 3.5.7
926e5a1f
JB
85Requires: libwebp-devel
86%{?with_openjpeg:Requires: openjpeg-devel}
4fe15025
JB
87Requires: xorg-lib-libXcursor-devel
88Requires: xorg-lib-libXext-devel
89Requires: xorg-lib-libXft-devel
254babe7 90Requires: xorg-lib-libXi-devel
4fe15025
JB
91Requires: xorg-lib-libXrandr-devel
92Requires: zlib-devel >= 1.1.4
f2bd8c0b
MK
93
94%description devel
f2611d81 95Header files for FOX library.
f2bd8c0b 96
3fadbc84
JR
97%description devel -l pl.UTF-8
98Pliki nagłówkowe biblioteki FOX.
e6b16e7b 99
f2bd8c0b
MK
100%package static
101Summary: FOX static libraries
4d6e0c36 102Summary(pl.UTF-8): Biblioteki statyczne FOX
f2bd8c0b 103Group: X11/Development/Libraries
f2611d81 104Requires: %{name}-devel = %{version}-%{release}
f2bd8c0b
MK
105
106%description static
30dfb622 107FOX static libraries.
f2bd8c0b 108
3fadbc84 109%description static -l pl.UTF-8
e6b16e7b
JB
110Biblioteki statyczne FOX.
111
f2611d81
JB
112%package doc
113Summary: Development documentation for FOX library
4d6e0c36 114Summary(pl.UTF-8): Dokumentacja programisty do biblioteki FOX
f2611d81
JB
115Group: X11/Development/Libraries
116
117%description doc
118Development documentation for FOX library.
119
3fadbc84 120%description doc -l pl.UTF-8
f2611d81
JB
121Dokumentacja programisty do biblioteki FOX.
122
3445f6f0 123%package examples
124Summary: FOX - example programs
4d6e0c36 125Summary(pl.UTF-8): FOX - programy przykładowe
3445f6f0 126Group: X11/Development/Libraries
127Requires: %{name}-devel = %{version}-%{release}
128
129%description examples
130FOX - example programs.
131
3fadbc84
JR
132%description examples -l pl.UTF-8
133FOX - przykładowe programy.
3445f6f0 134
f2bd8c0b
MK
135%prep
136%setup -q
e54cb892
JB
137%patch0 -p1
138%patch1 -p1
1b2184da 139%patch2 -p1
71c8b69b 140%patch3 -p1
f2bd8c0b
MK
141
142%build
c9aea078 143%{__libtoolize}
21a9ad7b 144%{__aclocal}
50741594 145%{__autoconf}
146%{__automake}
e54cb892 147%configure \
0f9d7d23 148 %{?with_cups:--enable-cups} \
297423d5 149 %{?debug:--enable-debug}%{!?debug:--enable-release} \
926e5a1f 150 %{?with_openjpeg:--enable-jp2} \
f60a1960 151 --enable-static%{!?with_static_libs:=no} \
154e1c3e 152 --enable-webp \
4fe15025 153 --with-opengl \
d15781b3 154 --with-shape \
d15781b3 155 --with-xcursor \
154e1c3e
JB
156 --with-xft \
157 --with-xim \
d15781b3 158 --with-xrandr \
154e1c3e 159 --with-xshm
d15781b3 160
49ccf524 161%{__make}
f2bd8c0b
MK
162
163%install
164rm -rf $RPM_BUILD_ROOT
3445f6f0 165install -d $RPM_BUILD_ROOT{%{_datadir},%{_examplesdir}/%{name}-%{version}}
30dfb622 166
3f3d05ff 167%{__make} install \
51798621 168 DESTDIR=$RPM_BUILD_ROOT
30dfb622 169
bd1ea9b9 170ln -sf libFOX-1.7.so $RPM_BUILD_ROOT%{_libdir}/libFOX.so
30dfb622 171
3445f6f0 172%{__make} -C tests clean
173cp -r tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
174
0f9d7d23
JB
175%{__rm} doc/Makefile* doc/*/Makefile*
176
f2bd8c0b
MK
177%clean
178rm -rf $RPM_BUILD_ROOT
179
e6b16e7b
JB
180%post -p /sbin/ldconfig
181%postun -p /sbin/ldconfig
182
f2bd8c0b
MK
183%files
184%defattr(644,root,root,755)
e54cb892 185%doc AUTHORS LICENSE_ADDENDUM README
0f9d7d23 186%attr(755,root,root) %{_bindir}/ControlPanel
bd1ea9b9 187%attr(755,root,root) %{_libdir}/libCHART-1.7.so.*.*.*
188%attr(755,root,root) %ghost %{_libdir}/libCHART-1.7.so.0
189%attr(755,root,root) %{_libdir}/libFOX-1.7.so.*.*.*
190%attr(755,root,root) %ghost %{_libdir}/libFOX-1.7.so.0
0f9d7d23 191%{_mandir}/man1/ControlPanel.1*
f2bd8c0b 192
75abd9d7 193%files progs
f2bd8c0b 194%defattr(644,root,root,755)
0f9d7d23
JB
195%attr(755,root,root) %{_bindir}/Adie.stx
196%attr(755,root,root) %{_bindir}/PathFinder
c9aea078
JB
197%attr(755,root,root) %{_bindir}/adie
198%attr(755,root,root) %{_bindir}/calculator
f7030fdb 199%attr(755,root,root) %{_bindir}/shutterbug
0f9d7d23
JB
200%{_mandir}/man1/PathFinder.1*
201%{_mandir}/man1/adie.1*
202%{_mandir}/man1/calculator.1*
203%{_mandir}/man1/shutterbug.1*
f2bd8c0b
MK
204
205%files devel
206%defattr(644,root,root,755)
f2611d81 207%doc ADDITIONS TRACING
195bd3af 208%attr(755,root,root) %{_bindir}/fox-config
1135f2a6 209%attr(755,root,root) %{_bindir}/reswrap
bd1ea9b9 210%attr(755,root,root) %{_libdir}/libCHART-1.7.so
211%attr(755,root,root) %{_libdir}/libFOX-1.7.so
055143d7 212%attr(755,root,root) %{_libdir}/libFOX.so
bd1ea9b9 213%{_libdir}/libCHART-1.7.la
214%{_libdir}/libFOX-1.7.la
215%{_includedir}/fox-1.7
2f26eac1 216%{_pkgconfigdir}/fox17.pc
0f9d7d23 217%{_mandir}/man1/reswrap.1*
f2bd8c0b 218
297423d5 219%if %{with static_libs}
f2bd8c0b
MK
220%files static
221%defattr(644,root,root,755)
bd1ea9b9 222%{_libdir}/libCHART-1.7.a
223%{_libdir}/libFOX-1.7.a
297423d5 224%endif
f2611d81
JB
225
226%files doc
227%defattr(644,root,root,755)
228%doc doc/*
3445f6f0 229
230%files examples
231%defattr(644,root,root,755)
232%{_examplesdir}/%{name}-%{version}
This page took 0.165834 seconds and 5 git commands to generate.