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