]>
Commit | Line | Data |
---|---|---|
1 | %define _module_name mount | |
2 | %define _snap 20060419 | |
3 | Summary: Enlightenment DR17 module: mount | |
4 | Summary(pl.UTF-8): Moduł Enlightenmenta DR17: mount | |
5 | Name: enlightenment-module-%{_module_name} | |
6 | Version: 0.0.7 | |
7 | Release: 0.%{_snap}_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: http://sparky.homelinux.org/snaps/enli/e_modules/%{_module_name}-%{_snap}.tar.bz2 | |
12 | # Source0-md5: 1ea6c7e90ac62b84605755692b58411d | |
13 | URL: http://www.get-e.org/Resources/Modules/ | |
14 | Patch0: %{name}-nfs.patch | |
15 | BuildRequires: autoconf | |
16 | BuildRequires: automake | |
17 | BuildRequires: edje | |
18 | BuildRequires: enlightenment-devel | |
19 | BuildRequires: libtool | |
20 | BuildRequires: sed >= 4.0 | |
21 | Requires: enlightenment | |
22 | Requires: fonts-TTF-bitstream-vera | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | mount module for Enlightenment DR17 makes easy mounting file systems | |
27 | with "user" option in /etc/fstab. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Moduł mount dla Enlightenmenta DR17 ułatwia montowanie systemów plików | |
31 | z opcją "user" w /etc/fstab. | |
32 | ||
33 | %prep | |
34 | %setup -q -n %{_module_name} | |
35 | %patch0 -p1 | |
36 | sed -e 's|$MOUNT|/bin/mount|' \ | |
37 | -e 's|$UMOUNT|/bin/umount|' \ | |
38 | -e 's|$EJECT|%{_bindir}/eject|' \ | |
39 | -e 's|datadir=.*|datadir="`enlightenment-config --module-dir`/${PACKAGE}"|' \ | |
40 | -e '/PACKAGE_DATA_DIR/s|"[^"]*"|"`enlightenment-config --module-dir`/${PACKAGE}"|' \ | |
41 | -i configure.in | |
42 | ||
43 | %build | |
44 | %{__libtoolize} | |
45 | %{__aclocal} | |
46 | %{__autoconf} | |
47 | %{__autoheader} | |
48 | %{__automake} | |
49 | %configure \ | |
50 | --disable-static | |
51 | %{__make} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | ln -sf %{_datadir}/fonts/TTF/VeraBd.ttf \ | |
60 | $RPM_BUILD_ROOT%{_libdir}/enlightenment/modules_extra/%{_module_name}/VeraBd.ttf | |
61 | ||
62 | %find_lang mount | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files -f mount.lang | |
68 | %defattr(644,root,root,755) | |
69 | %doc AUTHORS ChangeLog README TODO | |
70 | %dir %{_libdir}/enlightenment/modules_extra/%{_module_name} | |
71 | %dir %{_libdir}/enlightenment/modules_extra/%{_module_name}/linux-gnu-* | |
72 | %attr(755,root,root) %{_libdir}/enlightenment/modules_extra/%{_module_name}/linux-gnu-*/module.so | |
73 | # violates FHS | |
74 | %{_libdir}/enlightenment/modules_extra/%{_module_name}/VeraBd.ttf | |
75 | %{_libdir}/enlightenment/modules_extra/%{_module_name}/%{_module_name}.* | |
76 | %{_libdir}/enlightenment/modules_extra/%{_module_name}/*.png |