+#
+# Conditional build:
+%bcond_without static_libs # don't build static library
+#
Summary: Enlightenment Fundation Libraries - Embryo
Summary(pl): Podstawowe biblioteki Enlightenmenta - Embryo
Name: embryo
-Version: 0.9.1.010
-%define _snap 20050701
-Release: 0.%{_snap}.0.1
+Version: 0.9.1.024
+Release: 1
License: BSD
Group: X11/Libraries
-#Source0: http://dl.sourceforge.net/enlightenment/%{name}-%{version}.tar.gz
-Source0: http://sparky.homelinux.org/snaps/enli/e17/libs/%{name}-%{_snap}.tar.gz
-# Source0-md5: d28dd1aadd155d78c42d2bbde48405e9
-URL: http://enlightenment.org/
+Source0: http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
+# Source0-md5: 8469afa08f75d9e6aa29d9ca9d784739
+URL: http://enlightenment.org/Libraries/Embryo/
BuildRequires: autoconf
BuildRequires: automake
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.
Statyczna biblioteka Embryo.
%prep
-%setup -q -n %{name}
+%setup -q
%build
-%{__libtoolize}
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure
+%configure \
+ %{!?with_static_libs:--disable-static}
%{__make}
%install
%{_datadir}/%{name}
%{_pkgconfigdir}/embryo.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libembryo.a
+%endif