]>
Commit | Line | Data |
---|---|---|
2469ecd5 | 1 | %define _module_name mount |
6d9a537e | 2 | %define _snap 20060419 |
d133aeda | 3 | Summary: Enlightenment DR17 module: mount |
97cfe717 | 4 | Summary(pl.UTF-8): Moduł Enlightenmenta DR17: mount |
2469ecd5 | 5 | Name: enlightenment-module-%{_module_name} |
2dddad7b | 6 | Version: 0.0.7 |
6d9a537e | 7 | Release: 0.%{_snap}_1 |
2469ecd5 | 8 | License: BSD |
9 | Group: X11/Window Managers/Tools | |
6d9a537e | 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 | |
2469ecd5 | 13 | URL: http://www.get-e.org/Resources/Modules/ |
1652e6f7 | 14 | Patch0: %{name}-nfs.patch |
0679f651 MB |
15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
2469ecd5 | 17 | BuildRequires: edje |
6e720077 | 18 | BuildRequires: enlightenment-devel |
0679f651 | 19 | BuildRequires: libtool |
2469ecd5 | 20 | BuildRequires: sed >= 4.0 |
6e720077 | 21 | Requires: enlightenment |
6d9a537e | 22 | Requires: fonts-TTF-bitstream-vera |
2469ecd5 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
d133aeda JB |
26 | mount module for Enlightenment DR17 makes easy mounting file systems |
27 | with "user" option in /etc/fstab. | |
28 | ||
be5a84a2 JR |
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. | |
2469ecd5 | 32 | |
33 | %prep | |
34 | %setup -q -n %{_module_name} | |
1652e6f7 | 35 | %patch0 -p1 |
2469ecd5 | 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 | ||
6d9a537e | 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 | ||
2469ecd5 | 64 | %clean |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
6d9a537e | 67 | %files -f mount.lang |
2469ecd5 | 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 | |
6d9a537e | 74 | %{_libdir}/enlightenment/modules_extra/%{_module_name}/VeraBd.ttf |
2469ecd5 | 75 | %{_libdir}/enlightenment/modules_extra/%{_module_name}/%{_module_name}.* |
6d9a537e | 76 | %{_libdir}/enlightenment/modules_extra/%{_module_name}/*.png |