]>
Commit | Line | Data |
---|---|---|
607f39d9 | 1 | %define _module_name mem |
0f25b25d | 2 | %define _snap 20060420 |
3 | Summary: Enlightenment DR17 module: %{_module_name} | |
85aa0948 | 4 | Summary(pl.UTF-8): Moduł Enlightenmenta DR17: %{_module_name} |
0f25b25d | 5 | Name: enlightenment-module-%{_module_name} |
607f39d9 | 6 | Version: 0.0.1 |
7 | Release: 0.%{_snap}.1 | |
0f25b25d | 8 | License: BSD |
9 | Group: X11/Window Managers/Tools | |
10 | #Source0: http://www.get-e.org/Resources/Modules/_files/%{_module_name}-%{version}.tar.gz | |
11 | Source0: http://sparky.homelinux.org/snaps/enli/e_modules/%{_module_name}-%{_snap}.tar.bz2 | |
607f39d9 | 12 | # Source0-md5: 12889f8bc2a3461f6f73b39049802f35 |
0f25b25d | 13 | URL: http://www.get-e.org/Resources/Modules/ |
14 | BuildRequires: autoconf | |
15 | BuildRequires: automake | |
16 | BuildRequires: edje | |
adecd6ec | 17 | BuildRequires: enlightenment-devel |
0f25b25d | 18 | BuildRequires: libtool |
19 | BuildRequires: sed >= 4.0 | |
adecd6ec | 20 | Requires: enlightenment |
0f25b25d | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
607f39d9 | 24 | Memory usage monitor. |
0f25b25d | 25 | |
60bdd12a JR |
26 | %description -l pl.UTF-8 |
27 | Monitor wykorzystania pamięci. | |
f44abea3 | 28 | |
0f25b25d | 29 | %prep |
30 | %setup -q -n %{_module_name} | |
607f39d9 | 31 | sed -e 's|datadir=.*|datadir="`enlightenment-config --module-dir`/${PACKAGE}"|' \ |
32 | -e '/PACKAGE_DATA_DIR/s|"[^"]*"|"`enlightenment-config --module-dir`/${PACKAGE}"|' \ | |
33 | -e '/PACKAGE_LIB_DIR/s|"[^"]*"|"`enlightenment-config --module-dir`"|' \ | |
34 | -i configure.in | |
0f25b25d | 35 | |
36 | %build | |
37 | %{__libtoolize} | |
38 | %{__aclocal} | |
39 | %{__autoconf} | |
40 | %{__autoheader} | |
41 | %{__automake} | |
42 | %configure \ | |
43 | --disable-static | |
44 | %{__make} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
607f39d9 | 52 | %find_lang %{_module_name} |
53 | ||
0f25b25d | 54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
607f39d9 | 57 | %files -f %{_module_name}.lang |
0f25b25d | 58 | %defattr(644,root,root,755) |
59 | %doc AUTHORS ChangeLog README | |
607f39d9 | 60 | %dir %{_libdir}/enlightenment/modules_extra/%{_module_name} |
61 | %dir %{_libdir}/enlightenment/modules_extra/%{_module_name}/linux-gnu-* | |
62 | %attr(755,root,root) %{_libdir}/enlightenment/modules_extra/%{_module_name}/linux-gnu-*/module.so | |
63 | %{_libdir}/enlightenment/modules_extra/%{_module_name}/module_icon.png | |
64 | %{_libdir}/enlightenment/modules_extra/%{_module_name}/%{_module_name}.edj |