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