1 %define xview_ver 3.2p1.4
2 Summary: XView libraries for X11
3 Summary(pl.UTF-8): Biblioteki XView dla X11
8 Group: Development/Libraries
9 Source0: ftp://step.polymtl.ca/pub/Xview/libs/xview/Xview-%{version}/%{name}-%{version}.src.tar.gz
10 # Source0-md5: b9ff26d6ad378af320bac45154ceaeba
11 Patch0: http://ftp.debian.org/debian/pool/main/x/xview/%{name}_%{version}-25.diff.gz
12 # Patch0-md5: 215985b45696627d5808a3af3687c774
13 URL: http://step.polymtl.ca/~coyote/xview_main.html
14 BuildRequires: xorg-cf-files
15 BuildRequires: xorg-lib-libX11-devel
16 BuildRequires: xorg-lib-libXpm-devel
17 BuildRequires: xorg-lib-libXt-devel
18 BuildRequires: xorg-proto-xextproto-devel
19 BuildRequires: xorg-proto-xproto-devel
20 BuildRequires: xorg-util-gccmakedep
21 BuildRequires: xorg-util-imake
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 XView provides a set of pre-built, user-interface objects such as
26 canvases, scrollbars, menus, and control panels. The appearance and
27 functionality of these objects follow the OPEN LOOK Graphical User
28 Interface (GUI) specification.
30 This is the Sun implementation of the OpenLook interface standard,
31 using the xview libraries. While somewhat outdated and superseded by
32 Motif, or gtk, it is still very useful, especially in providing
33 compatibility with older installations.
35 It is possible that the openwin desktop takes up much less disk space
36 to install and memory to run than modern desktops, which would make it
37 a good candidate for old hardware.
39 %description -l pl.UTF-8
40 XView dostarcza zestaw obiektów interfejsu użytkownika takich jak
41 scrollbary, menu, panele kontrolne. Zachowanie i funkcjonalność tych
42 obiektów jest zgodna ze specyfikacją OPEN LOOK GUI.
44 XView to implementacja Suna standardu OpenLook. Pomimo wieku i
45 wyparcia przez Motifa czy gtk, jest nadal użyteczna, zwłaszcza do
46 zapewnienia kompatybilności ze starymi programami.
49 Summary: Header files for XView development
50 Summary(pl.UTF-8): Pliki nagłówkowe XView
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
55 All the files needed to develop applications that, using the XView
56 libraries, meet the OpenLook interface specifications.
58 %description devel -l pl.UTF-8
59 Wszystko co potrzebne do tworzenia aplikacji korzystających z
60 bibliotek XView, zgodnych ze specyfikacją interfejsu OpenLook.
63 Summary: Static libraries for XView development
64 Summary(pl.UTF-8): Biblioteki statyczne XView
65 Group: Development/Libraries
66 Requires: %{name} = %{version}-%{release}
69 Static libraries for XView development
71 %description static -l pl.UTF-8
72 Biblioteki statyczne XView
75 Summary: A number of example programs and tutorials for the XView libraries
76 Summary(pl.UTF-8): Przykładowe programy i dokumentacja do bibliotek XView
77 Group: Development/Libraries
78 Requires: %{name}-devel = %{version}-%{release}
81 Sample programs - with source code - that cover the basics of XView
82 programming are included in this package.
84 Also includes documents on the XView API (Application Programming
87 %description examples -l pl.UTF-8
88 Przykładowe programy - wraz z kodem źródłowym - pokazujące podstawy
89 programowania z użyciem XView. Pakiet zawiera też dokumentację API
98 # now macro version shows 4.1 - olvm version, must use another macro - xview_ver
99 IMAKEINCLUDE="-I$RPM_BUILD_DIR/%{name}-%{xview_ver}/config -I%{_libdir}/X11/config"
107 CCOPTIONS="%{rpmcflags}"
110 rm -rf $RPM_BUILD_ROOT
111 install -d $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man7,%{_includedir},%{_examplesdir}/%{name}-%{version}}
113 for name in olgx xview; do
114 cp lib/lib$name/lib$name.a $RPM_BUILD_ROOT%{_libdir}
115 cp -d lib/lib$name/lib$name.so.* $RPM_BUILD_ROOT%{_libdir}
118 install xview.man $RPM_BUILD_ROOT%{_mandir}/man7/xview.7
120 for dir in olgx olgx_private xview xview_private pixrect; do
121 cp -aL build/include/$dir $RPM_BUILD_ROOT%{_includedir}
124 ln -sf libolgx.so.3.2.4 $RPM_BUILD_ROOT%{_libdir}/libolgx.so
125 ln -sf libxview.so.3.2.4 $RPM_BUILD_ROOT%{_libdir}/libxview.so
127 cp -a contrib/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
130 rm -rf $RPM_BUILD_ROOT
132 %post -p /sbin/ldconfig
133 %postun -p /sbin/ldconfig
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/libolgx.so.*.*
138 %attr(755,root,root) %{_libdir}/libxview.so.*.*
139 %attr(755,root,root) %ghost %{_libdir}/libolgx.so.3
140 %attr(755,root,root) %ghost %{_libdir}/libxview.so.3
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_libdir}/libolgx.so
145 %attr(755,root,root) %{_libdir}/libxview.so
146 %{_mandir}/man7/xview.7*
148 %{_includedir}/olgx_private
149 %{_includedir}/pixrect
151 %{_includedir}/xview_private
154 %defattr(644,root,root,755)
156 %{_libdir}/libxview.a
159 %defattr(644,root,root,755)
160 %{_examplesdir}/%{name}-%{version}