]>
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 | |
52f063b9 | 21 | BuildRequires: gettext-tools |
7d86de87 | 22 | BuildRequires: hal-devel |
561f8f13 | 23 | BuildRequires: intltool |
7d86de87 | 24 | BuildRequires: libglade2-devel |
31958dc0 JB |
25 | BuildRequires: perl-XML-Parser |
26 | BuildRequires: python-devel > 1:2.4 | |
27 | BuildRequires: python-pygtk-devel > 2:2.6 | |
38a5b73d | 28 | BuildRequires: rpm-pythonprov |
991942bf | 29 | BuildRequires: sed >= 4.0 |
d5f365f2 | 30 | Requires: ntfs-3g |
8e73217d SS |
31 | Requires: usermode |
32 | Suggests: e2fsprogs | |
75c281cf SS |
33 | Suggests: gnome-mount |
34 | Suggests: hal | |
35 | Suggests: module-init-tools | |
36 | Suggests: mount | |
37 | Suggests: udev-core | |
d5f365f2 JR |
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 | ||
31958dc0 JB |
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 | ||
d5f365f2 | 53 | %prep |
9cfaed06 | 54 | %setup -q |
8e73217d | 55 | %patch0 -p1 |
d5f365f2 | 56 | |
991942bf SS |
57 | # there's newer pt.po |
58 | rm -f po/pt_PT.po | |
59 | %{__sed} -i s/^pt_PT$// po/LINGUAS | |
60 | ||
d5f365f2 | 61 | %build |
066bfc94 | 62 | %{__intltoolize} |
d5f365f2 JR |
63 | %{__aclocal} |
64 | %{__autoconf} | |
65 | %{__automake} | |
31958dc0 | 66 | %configure \ |
c23cb552 | 67 | --with-force-pam=yes \ |
38a5b73d | 68 | PYTHON=%{__python} |
d5f365f2 JR |
69 | %{__make} |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
d5f365f2 JR |
73 | |
74 | %{__make} install \ | |
991942bf | 75 | pyexecdir=%{py_sitescriptdir} \ |
d5f365f2 JR |
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 | ||
d5f365f2 JR |
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} | |
8e73217d | 97 | %attr(755,root,root) %{_bindir}/%{name}-root |
d5f365f2 JR |
98 | %attr(755,root,root) %{_sbindir}/%{name}-root |
99 | %{_datadir}/%{name} | |
100 | %{_desktopdir}/%{name}.desktop | |
991942bf | 101 | %{py_sitescriptdir}/NtfsConfig |
066bfc94 SS |
102 | %{_mandir}/man8/ntfs-config-root.8* |
103 | %{_mandir}/man8/ntfs-config.8* |