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