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