+#
+# Conditional build:
+%bcond_without static_libs # don't build static library
+#
Summary: Enlightenment Fundation Libraries - Embryo
-Summary(pl): Podstawowe biblioteki Enlightenmenta - Embryo
+Summary(pl.UTF-8): Podstawowe biblioteki Enlightenmenta - Embryo
Name: embryo
-Version: 0.9.1
-%define _snap 20050105
-Release: 0.%{_snap}.0.1
+Version: 0.9.9.043
+Release: 1
License: BSD
Group: X11/Libraries
-#Source0: http://dl.sourceforge.net/enlightenment/%{name}-%{version}.tar.gz
-Source0: ftp://ftp.sparky.homelinux.org/pub/e17/%{name}-%{version}-%{_snap}.tar.gz
-# Source0-md5: f92d19c71263a9b5560206966357a6b6
-URL: http://enlightenment.org/
+Source0: http://download.enlightenment.org/snapshots/2008-05-19/%{name}-%{version}.tar.bz2
+# Source0-md5: 532f34d44a558e49ad9afbfd0f82489f
+URL: http://enlightenment.org/p.php?p=about/libs/embryo
BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: automake >= 1.4
BuildRequires: libtool
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%undefine __cxx
+
%description
Embryo is a tiny library designed as a virtual machine to interpret a
limited set of small compiled programs.
-%description -l pl
-Embryo to ma³a biblioteka zaprojektowana jako maszyna wirtualna do
-interpretowania ograniczonego zbioru ma³ych skompilowanych programów.
+%description -l pl.UTF-8
+Embryo to mała biblioteka zaprojektowana jako maszyna wirtualna do
+interpretowania ograniczonego zbioru małych skompilowanych programów.
%package devel
Summary: Embryo header files
-Summary(pl): Pliki nag³ówkowe Embryo
+Summary(pl.UTF-8): Pliki nagłówkowe Embryo
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Header files for Embryo.
-%description devel -l pl
-Pliki nag³ówkowe Embryo.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe Embryo.
%package static
Summary: Static Embryo library
-Summary(pl): Statyczna biblioteka Embryo
+Summary(pl.UTF-8): Statyczna biblioteka Embryo
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static Embryo library.
-%description static -l pl
+%description static -l pl.UTF-8
Statyczna biblioteka Embryo.
%prep
-%setup -q -n %{name}
+%setup -q
%build
%{__libtoolize}
%{__autoconf}
%{__autoheader}
%{__automake}
-%configure
+%configure \
+ %{!?with_static_libs:--disable-static}
%{__make}
%install
%files
%defattr(644,root,root,755)
-%doc AUTHORS COPYING* README
+%doc AUTHORS COPYING COPYING-PLAIN README
%attr(755,root,root) %{_bindir}/embryo_cc
-%attr(755,root,root) %{_bindir}/embryo
-%attr(755,root,root) %{_libdir}/libembryo.so.*.*.*
+%attr(755,root,root) %{_libdir}/libembryo.so.*
+# for embryo_cc
+%{_datadir}/%{name}
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/embryo-config
%attr(755,root,root) %{_libdir}/libembryo.so
%{_libdir}/libembryo.la
-%{_includedir}/Embryo*
-%{_datadir}/%{name}
+%{_includedir}/Embryo.h
%{_pkgconfigdir}/embryo.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libembryo.a
+%endif