Summary(pl): Biblioteka widgetów Enlightenmenta (Enlightenment Widget Library)
Name: ewl
Version: 0.0.4.004
-Release: 1
+%define _snap 20051118
+Release: 0.%{_snap}.1
License: BSD
Group: X11/Libraries
-Source0: http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
-# Source0-md5: aed8f9eaf06ed5f0120d6f9ce2dc985c
+#Source0: http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
+Source0: http://sparky.homelinux.org/snaps/enli/e17/libs/%{name}-%{_snap}.tar.bz2
+# Source0-md5: f5b5701f01006e88ace5f7339403615e
URL: http://enlightenment.org/Libraries/Ewl/
BuildRequires: autoconf
BuildRequires: automake
+BuildRequires: edje
BuildRequires: edje-devel
BuildRequires: emotion-devel
BuildRequires: libtool
+Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
EWL to biblioteka widgetów u¿ywaj±ca EFL (E Foundation Libraries -
podstawowych bibliotek Englightenmenta).
+%package libs
+Summary: EWL library
+Group: X11/Libraries
+
+%description libs
+EWL library.
+
%package devel
Summary: EWL header files and test programs
Summary(pl): Pliki nag³ówkowe i programy testowe dla biblioteki EWL
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
%description devel
EWL header files and test programs.
Statyczna biblioteka EWL.
%prep
-%setup -q
-echo 'AC_DEFUN([AC_C___ATTRIBUTE__],
- [
- AC_MSG_CHECKING(for __attribute__)
- AC_CACHE_VAL(ac_cv___attribute__, [
- AC_TRY_COMPILE([#include <stdlib.h>],
- [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }],
- ac_cv___attribute__=yes, ac_cv___attribute__=no)])
- if test "$ac_cv___attribute__" = "yes"; then
- AC_DEFINE(HAVE___ATTRIBUTE__, 1, [Define to 1 if compiler has __attribute__])
- fi
- AC_MSG_RESULT($ac_cv___attribute__)])' > acinclude.m4
+%setup -q -n %{name}
%build
%{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
%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* NEWS README TODO
-%attr(755,root,root) %{_bindir}/ewl_edb_ed
-%attr(755,root,root) %{_libdir}/libewl.so.*.*.*
-%{_libdir}/libewl.la
+%attr(755,root,root) %{_bindir}/ewl_test
+%attr(755,root,root) %{_bindir}/ewl_*_test
%{_datadir}/%{name}
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libewl.so.*.*.*
+
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/ewl-config
-%attr(755,root,root) %{_bindir}/ewl_test
-%attr(755,root,root) %{_bindir}/ewl_embed_test
-%attr(755,root,root) %{_bindir}/ewl_media_test
-%attr(755,root,root) %{_bindir}/ewl_simple_test
%attr(755,root,root) %{_libdir}/libewl.so
%{_libdir}/libewl.la
%dir %{_includedir}/ewl