X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=evas.spec;h=aa5cdf35611427e842fd19ef6252719dec14cb1c;hb=d47fe94bc0e8aab5fe5840b802638066a777139e;hp=f2f8acc19e51a39eb2ca25a1d361b60c172df2b9;hpb=e7e3f91238fc520fbde905f4af1d91b84c6555ec;p=packages%2Fevas.git diff --git a/evas.spec b/evas.spec index f2f8acc..aa5cdf3 100644 --- a/evas.spec +++ b/evas.spec @@ -1,12 +1,15 @@ # +# Conditional build: %bcond_without mmx # without MMX and MMX2 %bcond_without sse # without SSE %bcond_without altivec # without altivec +%bcond_without directfb # build without DirectFB support +%bcond_without static_libs # don't build static library # -%ifnarch i586 i686 athlon +%ifnarch i586 i686 athlon %{x8664} %undefine with_mmx %endif -%ifnarch i686 athlon +%ifnarch i686 athlon %{x8664} %undefine with_sse %endif %ifnarch ppc @@ -16,14 +19,14 @@ Summary: Multi-platform Canvas Library Summary(pl): Wieloplatformowa biblioteka do rysowania Name: evas -Version: 0.9.9.013 +Version: 0.9.9.029 Release: 1 License: BSD Group: Libraries Source0: http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz -# Source0-md5: 6d888cc6427d783ae517185c1e446e38 -URL: http://enlightenment.org/ -BuildRequires: DirectFB-devel +# Source0-md5: 734eba6985237ebfe19ce8aaa4f98bd4 +URL: http://enlightenment.org/Libraries/Evas/ +%{?with_directfb:BuildRequires: DirectFB-devel} BuildRequires: OpenGL-devel BuildRequires: autoconf BuildRequires: automake @@ -34,9 +37,12 @@ BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtool BuildRequires: pkgconfig +Requires: %{name}-libs = %{version}-%{release} Requires: fonts-TTF-bitstream-vera BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%undefine __cxx + %description Evas is a clean display canvas API for several target display systems that can draw anti-aliased text, smooth super and sub-sampled scaled @@ -47,12 +53,23 @@ Evas to czyste API "p bêd±ce w stanie rysowaæ tekst z antyaliasingiem, wyg³adzane, skalowane obrazy, obiekty z alpha-blendingiem i inne elementy. +%package libs +Summary: Evas library +Summary(pl): Biblioteka evas +Group: X11/Libraries + +%description libs +Evas library. + +%description libs -l pl +Biblioteka evas. + %package devel Summary: Evas header files Summary(pl): Pliki nag³ówkowe Evas Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires: DirectFB-devel +Requires: %{name}-libs = %{version}-%{release} +%{?with_directfb:Requires: DirectFB-devel} Requires: OpenGL-devel Requires: edb-devel Requires: eet-devel @@ -82,19 +99,16 @@ Statyczna biblioteka Evas. %setup -q %build -%{__libtoolize} -%{__aclocal} -%{__autoconf} -%{__autoheader} -%{__automake} %configure \ + %{!?with_static_libs:--disable-static} \ --enable-software-x11 \ --disable-software-xcb \ - --enable-direct-fb \ + --%{?with_directfb:en}%{!?with_directfb:dis}able-directfb \ --enable-fb \ --enable-buffer \ --disable-software-qtopia \ --enable-gl-x11 \ + --enable-xrender-x11 \ --enable-image-loader-png \ --enable-image-loader-jpeg \ --enable-image-loader-eet \ @@ -115,7 +129,8 @@ Statyczna biblioteka Evas. %else --disable-cpu-altivec \ %endif - --enable-cpu-c + --enable-cpu-c \ + --disable-valgrind %{__make} @@ -135,16 +150,25 @@ done %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc AUTHORS COPYING COPYING-PLAIN INSTALL README %attr(755,root,root) %{_bindir}/evas_* -%attr(755,root,root) %{_libdir}/libevas.so.*.*.* %{_datadir}/%{name} +%files libs +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libevas.so.*.*.* +%dir %{_libdir}/%{name} +%dir %{_libdir}/%{name}/modules +%dir %{_libdir}/%{name}/modules/* +%dir %{_libdir}/%{name}/modules/*/* +%dir %{_libdir}/%{name}/modules/*/*/linux-gnu-* +%attr(755,root,root) %{_libdir}/%{name}/modules/*/*/linux-gnu-*/module.so + %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/evas-config @@ -153,6 +177,8 @@ rm -rf $RPM_BUILD_ROOT %{_pkgconfigdir}/evas.pc %{_includedir}/Evas* +%if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libevas.a +%endif