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