]> git.pld-linux.org Git - packages/evas.git/blob - evas.spec
- updated to 0.9.9.019
[packages/evas.git] / evas.spec
1 #
2 %bcond_without  mmx             # without MMX and MMX2
3 %bcond_without  sse             # without SSE
4 %bcond_without  altivec         # without altivec
5 #
6 %ifnarch i586 i686 athlon
7 %undefine       with_mmx
8 %endif
9 %ifnarch i686 athlon
10 %undefine       with_sse
11 %endif
12 %ifnarch ppc
13 %undefine       with_altivec
14 %endif
15 #
16 Summary:        Multi-platform Canvas Library
17 Summary(pl):    Wieloplatformowa biblioteka do rysowania
18 Name:           evas
19 Version:        0.9.9.019
20 Release:        1
21 License:        BSD
22 Group:          Libraries
23 Source0:        http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
24 # Source0-md5:  1766c37200f2efb37076e302fd07517b
25 Patch0:         %{name}-missing_m4.patch
26 URL:            http://enlightenment.org/Libraries/Evas/
27 BuildRequires:  DirectFB-devel
28 BuildRequires:  OpenGL-devel
29 BuildRequires:  autoconf
30 BuildRequires:  automake
31 BuildRequires:  edb-devel
32 BuildRequires:  eet-devel
33 BuildRequires:  freetype-devel
34 BuildRequires:  libjpeg-devel
35 BuildRequires:  libpng-devel
36 BuildRequires:  libtool
37 BuildRequires:  pkgconfig
38 Requires:       fonts-TTF-bitstream-vera
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 Evas is a clean display canvas API for several target display systems
43 that can draw anti-aliased text, smooth super and sub-sampled scaled
44 images, alpha-blend objects much and more.
45
46 %description -l pl
47 Evas to czyste API "p³ótna obrazu" dla ró¿nych systemów wy¶wietlania,
48 bêd±ce w stanie rysowaæ tekst z antyaliasingiem, wyg³adzane, skalowane
49 obrazy, obiekty z alpha-blendingiem i inne elementy.
50
51 %package devel
52 Summary:        Evas header files
53 Summary(pl):    Pliki nag³ówkowe Evas
54 Group:          Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56 Requires:       DirectFB-devel
57 Requires:       OpenGL-devel
58 Requires:       edb-devel
59 Requires:       eet-devel
60 Requires:       freetype-devel
61 Requires:       libjpeg-devel
62 Requires:       libpng-devel
63
64 %description devel
65 Header files for Evas.
66
67 %description devel -l pl
68 Pliki nag³ówkowe Evas.
69
70 %package static
71 Summary:        Static Evas library
72 Summary(pl):    Statyczna biblioteka Evas
73 Group:          Development/Libraries
74 Requires:       %{name}-devel = %{version}-%{release}
75
76 %description static
77 Static Evas library.
78
79 %description static -l pl
80 Statyczna biblioteka Evas.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85
86 %build
87 %{__libtoolize}
88 %{__aclocal}
89 %{__autoconf}
90 %{__autoheader}
91 %{__automake}
92 %configure \
93         --enable-software-x11   \
94         --disable-software-xcb  \
95         --enable-direct-fb      \
96         --enable-fb             \
97         --enable-buffer         \
98         --disable-software-qtopia \
99         --enable-gl-x11         \
100         --enable-image-loader-png       \
101         --enable-image-loader-jpeg      \
102         --enable-image-loader-eet       \
103         --enable-font-loader-eet        \
104         --enable-image-loader-edb       \
105 %if %{with mmx}
106         --enable-cpu-mmx        \
107 %else
108         --disable-cpu-mmx       \
109 %endif
110 %if %{with sse}
111         --enable-cpu-sse        \
112 %else
113         --disable-cpu-sse       \
114 %endif
115 %if %{with altivec}
116         --enable-cpu-altivec    \
117 %else
118         --disable-cpu-altivec   \
119 %endif
120         --enable-cpu-c
121
122 %{__make}
123
124 %install
125 rm -rf $RPM_BUILD_ROOT
126
127 %{__make} install \
128         DESTDIR=$RPM_BUILD_ROOT
129
130 cd $RPM_BUILD_ROOT%{_datadir}/%{name}
131 VERA=$(ls Vera*.ttf)
132 for FONT in $VERA; do
133         rm -f $FONT
134         ln -s %{_fontsdir}/TTF/$FONT .
135 done
136
137 %clean
138 rm -rf $RPM_BUILD_ROOT
139
140 %post   -p /sbin/ldconfig
141 %postun -p /sbin/ldconfig
142
143 %files
144 %defattr(644,root,root,755)
145 %doc AUTHORS COPYING COPYING-PLAIN INSTALL README
146 %attr(755,root,root) %{_bindir}/evas_*
147 %attr(755,root,root) %{_libdir}/libevas.so.*.*.*
148 %{_datadir}/%{name}
149
150 %files devel
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_bindir}/evas-config
153 %attr(755,root,root) %{_libdir}/libevas.so
154 %{_libdir}/libevas.la
155 %{_pkgconfigdir}/evas.pc
156 %{_includedir}/Evas*
157
158 %files static
159 %defattr(644,root,root,755)
160 %{_libdir}/libevas.a
This page took 0.063557 seconds and 4 git commands to generate.