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