]> git.pld-linux.org Git - packages/OpenPTC-GGI.git/blob - OpenPTC-GGI.spec
- new, based on OpenPTC-x11.spec
[packages/OpenPTC-GGI.git] / OpenPTC-GGI.spec
1 Summary:        OpenPTC for GGI
2 Summary(pl):    OpenPTC dla GGI
3 Name:           OpenPTC-GGI
4 Version:        0.5.0
5 Release:        1
6 License:        LGPL
7 Group:          Libraries
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
19 Provides:       OpenPTC
20 Obsoletes:      OpenPTC-x11
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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
27 this kind of purpose.
28
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
34 conversion library.
35
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
39 commercial projects.
40
41 %description -l pl
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
45 tryby graficzne.
46
47 OpenPTC jest dostêpne dla X11, GGI, Win32, DOS i JAVA.
48
49 %package devel
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
56
57 %description devel
58 OpenPTC development package.
59
60 %description devel -l pl
61 Pakiet programistyczny dla OpenPTC.
62
63 %package static
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
70
71 %description static
72 OpenPTC static libraries.
73
74 %description static -l pl
75 Biblioteki statyczne dla OpenPTC.
76
77 %package demos
78 Summary:        OpenPTC demos and examples
79 Summary(pl):    Programy demonstracyjne i przyk³adowe do OpenPTC
80 Group:          Applications/Graphics
81 Requires:       %{name} = %{version}
82
83 %description demos
84 OpenPTC demos and examples (executables and sources).
85
86 %description demos -l pl
87 Programy demonstracyjne i przyk³adowe do OpenPTC (pliki wykonywalne
88 i ¼ród³a).
89
90 %prep
91 %setup -q
92 %patch0 -p1
93 %patch1 -p1
94 %patch2 -p1
95 %patch3 -p1
96
97 %build
98 %{__autoconf}
99 echo y | \
100 %configure
101
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106
107 %{__make} install \
108         DESTDIR=$RPM_BUILD_ROOT
109
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
120
121 %clean
122 rm -rf $RPM_BUILD_ROOT
123
124 %post   -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
126
127 %files
128 %defattr(644,root,root,755)
129 %doc BUGS DOCUMENTATION README WARNING
130 %attr(755,root,root) %{_libdir}/lib*.so.*.*
131
132 %files devel
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_bindir}/ptc-config
135 %attr(755,root,root) %{_libdir}/lib*.so
136 %{_includedir}/ptc
137
138 %files static
139 %defattr(644,root,root,755)
140 %{_libdir}/lib*.a
141
142 %files demos -f demos.list
143 %defattr(644,root,root,755)
This page took 0.057734 seconds and 3 git commands to generate.