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