]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # binaries names and dirs seems counterintuitive: | |
3 | # /usr/bin/ntfs-config requires root privilages | |
4 | # /usr/sbin/ntfs-config-root invokes ntfs-config via gksu/kdesu | |
5 | # /usr/bin/ntfs-config-root invokes ntfs-config via consolehelper | |
6 | # | |
7 | Summary: A front-end to Enable/disable NTFS write support | |
8 | Summary(pl.UTF-8): Frontend do włączania/wyłączania obsługi zapisu na NTFS | |
9 | Name: ntfs-config | |
10 | Version: 1.0.1 | |
11 | Release: 1.9 | |
12 | License: GPL | |
13 | Group: Applications/System | |
14 | Source0: http://flomertens.free.fr/ntfs-config/download/source/%{name}-%{version}.tar.gz | |
15 | # Source0-md5: d491c8129aa9dad4de28b2b0b2b8f309 | |
16 | Patch0: %{name}-am.patch | |
17 | URL: http://flomertens.free.fr/ntfs-config/ | |
18 | BuildRequires: autoconf | |
19 | BuildRequires: automake | |
20 | BuildRequires: desktop-file-utils | |
21 | BuildRequires: gettext-tools | |
22 | BuildRequires: hal-devel | |
23 | BuildRequires: intltool | |
24 | BuildRequires: libglade2-devel | |
25 | BuildRequires: perl-XML-Parser | |
26 | BuildRequires: python-devel > 1:2.4 | |
27 | BuildRequires: python-pygtk-devel > 2:2.6 | |
28 | BuildRequires: rpm-pythonprov | |
29 | BuildRequires: sed >= 4.0 | |
30 | Requires: ntfs-3g | |
31 | Requires: usermode | |
32 | Suggests: e2fsprogs | |
33 | Suggests: gnome-mount | |
34 | Suggests: hal | |
35 | Suggests: module-init-tools | |
36 | Suggests: mount | |
37 | Suggests: udev-core | |
38 | BuildArch: noarch | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | ntfs-config will allow you to enable/disable write support for | |
43 | external and/or internal device with only two click. This will | |
44 | configure your system to use the new ntfs-3g driver instead of the | |
45 | current read-only kernel one. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | ntfs-config pozwala włączyć/wyłączyć obsługę zapisu dla zewnętrznego | |
49 | i/lub wewnętrznego urządzenia za pomocą tylko dwóch kliknięć. | |
50 | Konfiguruje to system do używania nowego sterownika ntfs-3g zamiast | |
51 | aktualnego z jądra obsługującego poprawnie tylko odczyt. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | %patch0 -p1 | |
56 | ||
57 | # there's newer pt.po | |
58 | rm -f po/pt_PT.po | |
59 | %{__sed} -i s/^pt_PT$// po/LINGUAS | |
60 | ||
61 | %build | |
62 | %{__intltoolize} | |
63 | %{__aclocal} | |
64 | %{__autoconf} | |
65 | %{__automake} | |
66 | %configure \ | |
67 | --with-force-pam=yes \ | |
68 | PYTHON=%{__python} | |
69 | %{__make} | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %{__make} install \ | |
75 | pyexecdir=%{py_sitescriptdir} \ | |
76 | DESTDIR=$RPM_BUILD_ROOT \ | |
77 | INSTALL="install -p -Dm 644" | |
78 | ||
79 | desktop-file-install \ | |
80 | --vendor "" \ | |
81 | --dir $RPM_BUILD_ROOT/%{_desktopdir} \ | |
82 | --mode 0644 \ | |
83 | --remove-category=Application \ | |
84 | $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
85 | ||
86 | %find_lang %{name} | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %files -f %{name}.lang | |
92 | %defattr(644,root,root,755) | |
93 | %doc AUTHORS ChangeLog README TODO | |
94 | %config(noreplace) /etc/pam.d/%{name}-root | |
95 | %config(noreplace) /etc/security/console.apps/%{name}-root | |
96 | %attr(755,root,root) %{_bindir}/%{name} | |
97 | %attr(755,root,root) %{_bindir}/%{name}-root | |
98 | %attr(755,root,root) %{_sbindir}/%{name}-root | |
99 | %{_datadir}/%{name} | |
100 | %{_desktopdir}/%{name}.desktop | |
101 | %{py_sitescriptdir}/NtfsConfig | |
102 | %{_mandir}/man8/ntfs-config-root.8* | |
103 | %{_mandir}/man8/ntfs-config.8* |