1 Summary: OpenPTC for GGI
2 Summary(pl): OpenPTC dla GGI
8 Source0: http://www.gaffer.org/ptc/download/distributions/Unix/%{name}-%{version}.tgz
9 Patch0: %{name}-acfix.patch
10 Patch1: %{name}-gcc3.patch
11 Patch2: %{name}-include.patch
12 Patch3: %{name}-DESTDIR.patch
13 URL: http://www.gaffer.org/ptc/ptc.html
14 BuildRequires: Hermes-devel >= 1.2.4
15 BuildRequires: autoconf
16 BuildRequires: libggi-devel
17 BuildRequires: libstdc++-devel >= 2.10.0
18 Requires: Hermes >= 1.2.4
20 Obsoletes: OpenPTC-x11
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Prometheus Truecolour (OpenPTC) is a third-generation standard for
25 cross platform low-level graphics access. A lot of design experience
26 has gone into it to provide one of the cleanest APIs available for
29 OpenPTC will provide you with a frame-buffer to draw into. You can
30 choose that buffer to use a pixel format convenient for you, OpenPTC
31 will convert it to the video modes on the target platform, using
32 highly optimised x86 and MMX routines where available. This is
33 achieved using the HERMES ((c)1998/99 Christian Nentwich et al) pixel
36 OpenPTC 1.0 is available for X11, GGI (Linux), Win32, DOS and JAVA.
37 Work for other platforms is in progress. All implementations of PTC
38 come with full source code and may be used free of charge even in
42 Prometheus Truecolour (OpenPTC) jest trzeci± generacj± standardu dla
43 wieloplatformowej niskopoziomowej grafiki. Umo¿liwia operacje na
44 frame-bufferze oraz konwersj± (przy pomocy biblioteki Hermes) na ró¿ne
47 OpenPTC jest dostêpne dla X11, GGI, Win32, DOS i JAVA.
50 Summary: OpenPTC development package
51 Summary(pl): Pakiet programistyczny dla OpenPTC
52 Group: Development/Libraries
53 Requires: %{name} = %{version}
54 Provides: OpenPTC-devel
55 Obsoletes: OpenPTC-x11-devel
58 OpenPTC development package.
60 %description devel -l pl
61 Pakiet programistyczny dla OpenPTC.
64 Summary: OpenPTC static libraries
65 Summary(pl): Biblioteki statyczne dla OpenPTC
66 Group: Development/Libraries
67 Requires: %{name}-devel = %{version}
68 Provides: OpenPTC-static
69 Obsoletes: OpenPTC-x11-static
72 OpenPTC static libraries.
74 %description static -l pl
75 Biblioteki statyczne dla OpenPTC.
78 Summary: OpenPTC demos and examples
79 Summary(pl): Programy demonstracyjne i przyk³adowe do OpenPTC
80 Group: Applications/Graphics
81 Requires: %{name} = %{version}
84 OpenPTC demos and examples (executables and sources).
86 %description demos -l pl
87 Programy demonstracyjne i przyk³adowe do OpenPTC (pliki wykonywalne
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
111 find demos examples -name '*.o' | xargs rm -f
112 cp -rf demos examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
113 echo '%defattr(644,root,root,755)' > demos.list
114 find demos examples -type d | \
115 sed -e "s@^@%dir %{_examplesdir}/%{name}-%{version}/@" >> demos.list
116 find demos examples -type f -a ! -perm -100 | \
117 sed -e "s@^@%{_examplesdir}/%{name}-%{version}/@" >> demos.list
118 find demos examples -type f -a -perm -100 | \
119 sed -e "s@^@%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/@" >> demos.list
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
128 %defattr(644,root,root,755)
129 %doc BUGS DOCUMENTATION README WARNING
130 %attr(755,root,root) %{_libdir}/lib*.so.*.*
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_bindir}/ptc-config
135 %attr(755,root,root) %{_libdir}/lib*.so
139 %defattr(644,root,root,755)
142 %files demos -f demos.list
143 %defattr(644,root,root,755)