]>
Commit | Line | Data |
---|---|---|
3e3a5633 | 1 | Summary: A High Quality Rendering Engine for C++ |
500bc5a4 | 2 | Summary(pl.UTF-8): Silnik renderujący wysokiej jakości dla C++ |
838beb5e ER |
3 | Name: agg |
4 | Version: 2.5 | |
df7133f3 | 5 | Release: 2 |
3e3a5633 | 6 | License: GPL v2+ |
838beb5e | 7 | Group: Libraries |
838beb5e ER |
8 | Source0: http://www.antigrain.com/%{name}-%{version}.tar.gz |
9 | # Source0-md5: ddc67cbdc7d51e1ec984c2ac2724c08a | |
10 | Patch0: %{name}-depends.patch | |
f3fc0867 | 11 | URL: http://www.antigrain.com/ |
838beb5e | 12 | BuildRequires: SDL-devel |
f3fc0867 | 13 | BuildRequires: autoconf |
838beb5e ER |
14 | BuildRequires: automake |
15 | BuildRequires: freetype-devel | |
c70bbd4b | 16 | BuildRequires: libstdc++-devel |
838beb5e | 17 | BuildRequires: libtool |
c70bbd4b | 18 | BuildRequires: pkgconfig |
956123cc | 19 | BuildRequires: xorg-lib-libX11-devel |
838beb5e ER |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
3e3a5633 ER |
23 | Anti-Grain Geometry (AGG) is a general purpose graphical toolkit |
24 | written completely in standard and platform independent C++. It can be | |
25 | used in many areas of computer programming where high quality 2D | |
26 | graphics is an essential part of the project. | |
27 | ||
28 | AGG uses only C++ and standard C runtime functions, such as memcpy, | |
29 | sin, cos, sqrt, etc. The basic algorithms don't even use C++ Standard | |
30 | Template Library. Thus, AGG can be used in a very large number of | |
31 | applications, including embedded systems. | |
838beb5e | 32 | |
ae0d6b25 JR |
33 | %description -l pl.UTF-8 |
34 | Anti-Grain Geometry (AGG) to toolkit graficzny ogólnego przeznaczenia | |
35 | napisany całkowicie w standardowym i niezależnym od platformy C++. | |
36 | Może być używany w wielu zastosowaniach z zakresu programowania gdzie | |
37 | zasadniczą częścią projektu jest wysokiej jakości grafika 2D. | |
f3fc0867 | 38 | |
ae0d6b25 JR |
39 | AGG używa tylko C++ i standardowych funkcji C, takich jak memcpy, sin, |
40 | cos, sqrt itp. Podstawowe algorytmy nie używają nawet standardowej | |
41 | biblioteki C++. W ten sposób AGG może być używany w bardzo wielu | |
42 | zastosowaniach, także na systemach wbudowanych. | |
f3fc0867 | 43 | |
838beb5e ER |
44 | %package devel |
45 | Summary: Support files necessary to compile applications with agg | |
500bc5a4 | 46 | Summary(pl.UTF-8): Pliki potrzebne do kompilowania aplikacji z użyciem agg |
838beb5e ER |
47 | Group: Development/Libraries |
48 | Requires: %{name} = %{version}-%{release} | |
c70bbd4b JB |
49 | Requires: libstdc++-devel |
50 | # libaggfontfreetype R: freetype-devel | |
51 | # libaggplatformsdl R: SDL-devel | |
52 | # libaggplatformX11 R: xorg-lib-libX11-devel | |
838beb5e ER |
53 | |
54 | %description devel | |
f3fc0867 JB |
55 | Header and support files necessary to compile applications using agg. |
56 | ||
ae0d6b25 JR |
57 | %description devel -l pl.UTF-8 |
58 | Pliki nagłówkowe i pomocnicze potrzebne do kompilowania aplikacji z | |
59 | użyciem agg. | |
838beb5e | 60 | |
1ca4835f ER |
61 | %package static |
62 | Summary: Static agg library | |
500bc5a4 | 63 | Summary(pl.UTF-8): Statyczna biblioteka agg |
1ca4835f ER |
64 | Group: Development/Libraries |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | ||
67 | %description static | |
68 | Static agg library. | |
69 | ||
ae0d6b25 | 70 | %description static -l pl.UTF-8 |
f3fc0867 JB |
71 | Statyczna biblioteka agg. |
72 | ||
838beb5e ER |
73 | %prep |
74 | %setup -q | |
75 | %patch0 -p1 | |
76 | ||
77 | %build | |
c70bbd4b | 78 | %{__libtoolize} |
838beb5e ER |
79 | %{__aclocal} |
80 | %{__autoheader} | |
81 | %{__autoconf} | |
838beb5e ER |
82 | %{__automake} |
83 | %configure \ | |
84 | --disable-gpc | |
85 | %{__make} | |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
f3fc0867 | 89 | |
838beb5e ER |
90 | %{__make} install \ |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
f3fc0867 JB |
93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
838beb5e ER |
95 | |
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %files | |
100 | %defattr(644,root,root,755) | |
101 | %doc authors copying readme | |
c70bbd4b | 102 | %attr(755,root,root) %{_libdir}/libagg*.so.*.*.* |
838beb5e ER |
103 | |
104 | %files devel | |
105 | %defattr(644,root,root,755) | |
c70bbd4b JB |
106 | %attr(755,root,root) %{_libdir}/libagg*.so |
107 | %{_libdir}/libagg*.la | |
838beb5e | 108 | %{_includedir}/agg2 |
1ca4835f | 109 | %{_pkgconfigdir}/libagg.pc |
838beb5e ER |
110 | %{_aclocaldir}/libagg.m4 |
111 | ||
1ca4835f ER |
112 | %files static |
113 | %defattr(644,root,root,755) | |
c70bbd4b | 114 | %{_libdir}/libagg*.a |