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