]> git.pld-linux.org Git - packages/OpenPTC-x11.git/blob - OpenPTC-x11.spec
d84aa2c26d83878bc0ddc2cae8d1eb4d54f0b586
[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 # Source0-md5:  7fb728f05ea8bea6b797fd6109f933d4
10 # from dead http://www.cs.ucl.ac.uk/students/c.nentwich/ptc/%{name}-1.0.0-1.0.0-2.patch
11 Patch0:         %{name}-1.0.0-1.0.0-2.patch
12 URL:            http://www.gaffer.org/ptc/ptc.html
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
37 %description -l pl
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
41 tryby graficzne.
42
43 OpenPTC jest dostêpne dla X11, GGI, Win32, DOS i JAVA.
44
45 %package devel
46 Summary:        OpenPTC development package
47 Summary(pl):    Pakiet programistyczny dla OpenPTC
48 Group:          Development/Libraries
49 Requires:       %{name} = %{version}
50
51 %description devel
52 OpenPTC development package.
53
54 %description devel -l pl
55 Pakiet programistyczny dla OpenPTC.
56
57 %package static
58 Summary:        OpenPTC static libraries
59 Summary(pl):    Biblioteki statyczne dla OpenPTC
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}
62
63 %description static
64 OpenPTC static libraries.
65
66 %description static -l pl
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
This page took 0.074022 seconds and 2 git commands to generate.