]>
Commit | Line | Data |
---|---|---|
2469ecd5 | 1 | # |
2 | %define _module_name mount | |
3 | ||
4 | Summary: Enlightenment DR17 module: %{_module_name} | |
5 | Name: enlightenment-module-%{_module_name} | |
6 | Version: 0.0.6 | |
7 | Release: 1 | |
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-md5: c9860d2dd415746487f181250e44539e | |
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 | Enlightenment DR17 module: %{_module_name}. This module makes easy | |
21 | mounting file systems with "user" option in /etc/fstab. | |
22 | ||
23 | %prep | |
24 | %setup -q -n %{_module_name} | |
25 | sed -e 's|$MOUNT|/bin/mount|' \ | |
26 | -e 's|$UMOUNT|/bin/umount|' \ | |
27 | -e 's|$EJECT|%{_bindir}/eject|' \ | |
28 | -e 's|datadir=.*|datadir="`enlightenment-config --module-dir`/${PACKAGE}"|' \ | |
29 | -e '/PACKAGE_DATA_DIR/s|"[^"]*"|"`enlightenment-config --module-dir`/${PACKAGE}"|' \ | |
30 | -i configure.in | |
31 | ||
32 | %build | |
33 | %{__libtoolize} | |
34 | %{__aclocal} | |
35 | %{__autoconf} | |
36 | %{__autoheader} | |
37 | %{__automake} | |
38 | %configure \ | |
39 | --disable-static | |
40 | %{__make} | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc AUTHORS ChangeLog README TODO | |
54 | %dir %{_libdir}/enlightenment/modules_extra/%{_module_name} | |
55 | %dir %{_libdir}/enlightenment/modules_extra/%{_module_name}/linux-gnu-* | |
56 | %attr(755,root,root) %{_libdir}/enlightenment/modules_extra/%{_module_name}/linux-gnu-*/module.so | |
57 | # violates FHS | |
58 | %{_libdir}/enlightenment/modules_extra/%{_module_name}/%{_module_name}.* | |
59 | %{_libdir}/enlightenment/modules_extra/%{_module_name}/module_icon.png |