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