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