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