]>
Commit | Line | Data |
---|---|---|
5b7722f7 | 1 | # |
2 | %define _module_name slideshow | |
3 | ||
4 | Summary: Enlightenment DR17 module: %{_module_name} | |
5 | Name: enlightenment-module-%{_module_name} | |
6 | Version: 0.0.5 | |
7 | Release: 1 | |
8 | License: BSD-like | |
9 | Group: X11/Window Managers/Tools | |
10 | Source0: http://www.get-e.org/Resources/Modules/_files/%{_module_name}-%{version}.tar.gz | |
11 | # Source0-md5: fe4ec88243aa9ba3cbf052098874f048 | |
12 | URL: http://www.get-e.org/Resources/Modules/ | |
13 | BuildRequires: edje | |
14 | BuildRequires: enlightenmentDR17-devel | |
15 | BuildRequires: sed >= 4.0 | |
16 | Requires: enlightenmentDR17 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Very simple Enlightenment DR17 used to change desktop backgrounds. | |
21 | ||
22 | %prep | |
23 | %setup -q -n %{_module_name} | |
24 | sed -e 's|datadir=.*|datadir="`enlightenment-config --module-dir`/${PACKAGE}"|' \ | |
25 | -e '/PACKAGE_DATA_DIR/s|"[^"]*"|"`enlightenment-config --module-dir`/${PACKAGE}"|' \ | |
26 | -e '/PACKAGE_LIB_DIR/s|"[^"]*"|"`enlightenment-config --module-dir`"|' \ | |
27 | -i configure.in | |
28 | ||
29 | %build | |
30 | %{__libtoolize} | |
31 | %{__aclocal} | |
32 | %{__autoconf} | |
33 | %{__autoheader} | |
34 | %{__automake} | |
35 | %configure \ | |
36 | --disable-static | |
37 | %{__make} | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %{__make} install \ | |
43 | DESTDIR=$RPM_BUILD_ROOT | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc AUTHORS COPYING INSTALL README TODO | |
51 | %dir %{_libdir}/enlightenment/modules_extra/%{_module_name} | |
52 | %dir %{_libdir}/enlightenment/modules_extra/%{_module_name}/linux-gnu-* | |
53 | %attr(755,root,root) %{_libdir}/enlightenment/modules_extra/%{_module_name}/linux-gnu-*/module.so | |
54 | # violates FHS | |
55 | %{_libdir}/enlightenment/modules_extra/%{_module_name}/*.edj | |
56 | %{_libdir}/enlightenment/modules_extra/%{_module_name}/module_icon.png |