]> git.pld-linux.org Git - packages/OpenPTC-x11.git/blame - OpenPTC-x11.spec
- tabs in preamble
[packages/OpenPTC-x11.git] / OpenPTC-x11.spec
CommitLineData
574e8bc5 1Summary: OpenPTC for X11
2b31783c 2Summary(pl.UTF-8): OpenPTC dla X11
574e8bc5
JB
3Name: OpenPTC-x11
4Version: 1.0.0
5Release: 4
6License: LGPL
7Group: Libraries
5807abc5 8Source0: 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
11Patch0: %{name}-1.0.0-1.0.0-2.patch
12URL: http://www.gaffer.org/ptc/ptc.html
574e8bc5
JB
13Requires: Hermes >= 1.2.4
14BuildRequires: Hermes-devel >= 1.2.4
15BuildRequires: XFree86-devel
16BuildRequires: libstdc++-devel >= 2.10.0
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Prometheus Truecolour (OpenPTC) is a third-generation standard for
21cross platform low-level graphics access. A lot of design experience
22has gone into it to provide one of the cleanest APIs available for
23this kind of purpose.
24
25OpenPTC will provide you with a frame-buffer to draw into. You can
26choose that buffer to use a pixel format convenient for you, OpenPTC
27will convert it to the video modes on the target platform, using
28highly optimised x86 and MMX routines where available. This is
29achieved using the HERMES ((c)1998/99 Christian Nentwich et al) pixel
30conversion library.
31
32OpenPTC 1.0 is available for X11, GGI (Linux), Win32, DOS and JAVA.
33Work for other platforms is in progress. All implementations of PTC
34come with full source code and may be used free of charge even in
35commercial projects.
36
089fb02e
JR
37%description -l pl.UTF-8
38Prometheus Truecolour (OpenPTC) jest trzecią generacją standardu dla
39wieloplatformowej niskopoziomowej grafiki. Umożliwia operacje na
40frame-bufferze oraz konwersją (przy pomocy biblioteki Hermes) na różne
574e8bc5
JB
41tryby graficzne.
42
089fb02e 43OpenPTC jest dostępne dla X11, GGI, Win32, DOS i JAVA.
574e8bc5
JB
44
45%package devel
46Summary: OpenPTC development package
2b31783c 47Summary(pl.UTF-8): Pakiet programistyczny dla OpenPTC
574e8bc5 48Group: Development/Libraries
7ab5ae5a 49Requires: %{name} = %{version}-%{release}
574e8bc5
JB
50
51%description devel
52OpenPTC development package.
53
089fb02e 54%description devel -l pl.UTF-8
574e8bc5
JB
55Pakiet programistyczny dla OpenPTC.
56
57%package static
58Summary: OpenPTC static libraries
2b31783c 59Summary(pl.UTF-8): Biblioteki statyczne dla OpenPTC
574e8bc5 60Group: Development/Libraries
7ab5ae5a 61Requires: %{name}-devel = %{version}-%{release}
574e8bc5
JB
62
63%description static
64OpenPTC static libraries.
65
089fb02e 66%description static -l pl.UTF-8
574e8bc5
JB
67Biblioteki statyczne dla OpenPTC.
68
69%prep
70%setup -q
71
72%build
73# Hack to avoid question in configure
74LDFLAGS="%{rpmldflags}" \
75echo y | \
76./configure %{_target_platform} \
77 --prefix=%{_prefix}
78
79%{__make} ptclib \
80 CC="c++ %{rpmcflags} -fno-rtti -fno-implicit-templates"
81
82%install
83rm -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
90rm -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.067377 seconds and 4 git commands to generate.