]>
Commit | Line | Data |
---|---|---|
574e8bc5 | 1 | Summary: OpenPTC for X11 |
2b31783c | 2 | Summary(pl.UTF-8): OpenPTC dla X11 |
574e8bc5 JB |
3 | Name: OpenPTC-x11 |
4 | Version: 1.0.0 | |
5 | Release: 4 | |
6 | License: LGPL | |
7 | Group: Libraries | |
5807abc5 | 8 | Source0: http://www.gaffer.org/ptc/download/distributions/Unix/%{name}-%{version}.tar.gz |
1155d777 | 9 | # Source0-md5: 7fb728f05ea8bea6b797fd6109f933d4 |
1fbcab28 | 10 | # from dead http://www.cs.ucl.ac.uk/students/c.nentwich/ptc/%{name}-1.0.0-1.0.0-2.patch |
5807abc5 JB |
11 | Patch0: %{name}-1.0.0-1.0.0-2.patch |
12 | URL: http://www.gaffer.org/ptc/ptc.html | |
574e8bc5 JB |
13 | Requires: Hermes >= 1.2.4 |
14 | BuildRequires: Hermes-devel >= 1.2.4 | |
15 | BuildRequires: XFree86-devel | |
16 | BuildRequires: libstdc++-devel >= 2.10.0 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Prometheus Truecolour (OpenPTC) is a third-generation standard for | |
21 | cross platform low-level graphics access. A lot of design experience | |
22 | has gone into it to provide one of the cleanest APIs available for | |
23 | this kind of purpose. | |
24 | ||
25 | OpenPTC will provide you with a frame-buffer to draw into. You can | |
26 | choose that buffer to use a pixel format convenient for you, OpenPTC | |
27 | will convert it to the video modes on the target platform, using | |
28 | highly optimised x86 and MMX routines where available. This is | |
29 | achieved using the HERMES ((c)1998/99 Christian Nentwich et al) pixel | |
30 | conversion library. | |
31 | ||
32 | OpenPTC 1.0 is available for X11, GGI (Linux), Win32, DOS and JAVA. | |
33 | Work for other platforms is in progress. All implementations of PTC | |
34 | come with full source code and may be used free of charge even in | |
35 | commercial projects. | |
36 | ||
089fb02e JR |
37 | %description -l pl.UTF-8 |
38 | Prometheus Truecolour (OpenPTC) jest trzecią generacją standardu dla | |
39 | wieloplatformowej niskopoziomowej grafiki. Umożliwia operacje na | |
40 | frame-bufferze oraz konwersją (przy pomocy biblioteki Hermes) na różne | |
574e8bc5 JB |
41 | tryby graficzne. |
42 | ||
089fb02e | 43 | OpenPTC jest dostępne dla X11, GGI, Win32, DOS i JAVA. |
574e8bc5 JB |
44 | |
45 | %package devel | |
46 | Summary: OpenPTC development package | |
2b31783c | 47 | Summary(pl.UTF-8): Pakiet programistyczny dla OpenPTC |
574e8bc5 | 48 | Group: Development/Libraries |
7ab5ae5a | 49 | Requires: %{name} = %{version}-%{release} |
574e8bc5 JB |
50 | |
51 | %description devel | |
52 | OpenPTC development package. | |
53 | ||
089fb02e | 54 | %description devel -l pl.UTF-8 |
574e8bc5 JB |
55 | Pakiet programistyczny dla OpenPTC. |
56 | ||
57 | %package static | |
58 | Summary: OpenPTC static libraries | |
2b31783c | 59 | Summary(pl.UTF-8): Biblioteki statyczne dla OpenPTC |
574e8bc5 | 60 | Group: Development/Libraries |
7ab5ae5a | 61 | Requires: %{name}-devel = %{version}-%{release} |
574e8bc5 JB |
62 | |
63 | %description static | |
64 | OpenPTC static libraries. | |
65 | ||
089fb02e | 66 | %description static -l pl.UTF-8 |
574e8bc5 JB |
67 | Biblioteki statyczne dla OpenPTC. |
68 | ||
69 | %prep | |
70 | %setup -q | |
71 | ||
72 | %build | |
73 | # Hack to avoid question in configure | |
74 | LDFLAGS="%{rpmldflags}" \ | |
75 | echo y | \ | |
76 | ./configure %{_target_platform} \ | |
77 | --prefix=%{_prefix} | |
78 | ||
79 | %{__make} ptclib \ | |
80 | CC="c++ %{rpmcflags} -fno-rtti -fno-implicit-templates" | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | %{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install | |
85 | ||
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
94 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
95 | ||
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %doc README BUGS CHANGES TODO docs demos examples | |
99 | %attr(755,root,root) %{_bindir}/ptc-config | |
100 | %{_libdir}/lib*.so | |
101 | %{_includedir}/ptc | |
102 | ||
103 | %files static | |
104 | %defattr(644,root,root,755) | |
105 | %{_libdir}/lib*.a |