]>
Commit | Line | Data |
---|---|---|
76f65303 | 1 | # http://gentoo-wiki.com/HOWTO_NTFS_write_with_Captive_approach |
2 | # nice article about how to use it in gentoo, should be easy to prot to pld | |
3 | ||
4 | # please allow those bconds to remain here as next version might be gnome-vfs2 independent | |
43748859 | 5 | # %bcond_without vfs # disable gnome2 vfs |
52bc883e | 6 | Summary: Captive - NTFS read/write filesystem for Linux |
bbc7e355 | 7 | Summary(pl.UTF-8): Captive - obsługa NTFS dla Linuksa z odczytem i zapisem |
0919bd5c | 8 | Name: captive |
76f65303 | 9 | Version: 1.1.7 |
cc9bb8b1 | 10 | Release: 1 |
74fbe030 | 11 | License: GPL |
0919bd5c | 12 | Group: Base/Kernel |
52bc883e | 13 | Source0: http://www.jankratochvil.net/project/captive/dist/%{name}-%{version}.tar.gz |
76f65303 | 14 | # Source0-md5: 34312cd854ca992f0daf0a8faabaae9a |
15 | Patch0: %{name}-popt_link.patch | |
52bc883e | 16 | URL: http://www.jankratochvil.net/project/captive/ |
76f65303 | 17 | #%if %{with vfs} |
18 | BuildRequires: gnome-vfs2-devel >= 2.0 | |
19 | #%endif | |
e82ab2d5 JB |
20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
967a7239 | 22 | BuildRequires: gettext-tools |
8fa55f7e | 23 | BuildRequires: libfuse-devel >= 2.4.1 |
ffde15b4 JB |
24 | BuildRequires: libtool |
25 | BuildRequires: libxml2-devel >= 2.5.9 | |
52bc883e | 26 | BuildRequires: openssl-devel |
2081c91f | 27 | BuildRequires: perl-tools-pod |
52bc883e | 28 | BuildRequires: pkgconfig |
2081c91f | 29 | BuildRequires: readline-devel |
5bffa806 | 30 | BuildRequires: rpmbuild(macros) >= 1.202 |
76f65303 | 31 | BuildRequires: ORBit2-devel |
d11b6463 | 32 | BuildRequires: sed >= 4.0 |
cc9bb8b1 | 33 | Provides: group(captive) |
34 | Provides: user(captive) | |
35 | Requires(postun): /usr/sbin/groupdel | |
36 | Requires(postun): /usr/sbin/userdel | |
37 | Requires(pre): /bin/id | |
38 | Requires(pre): /usr/bin/getgid | |
39 | Requires(pre): /usr/sbin/groupadd | |
40 | Requires(pre): /usr/sbin/useradd | |
74fbe030 | 41 | Requires: ntfsprogs >= 1.8.0 |
52bc883e | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0919bd5c | 43 | |
44 | %description | |
52bc883e JB |
45 | Captive project implements the first full read/write free access to |
46 | NTFS disk drives. You can mount your Microsoft Windows NT, 200x or XP | |
47 | partition as a transparently accessible volume for your GNU/Linux. | |
48 | ||
49 | This compatibility was achieved in the Wine way by using the original | |
50 | Microsoft Windows ntfs.sys driver. It emulates the required subsystems | |
51 | of the Microsoft Windows kernel by reusing one of the original | |
52 | ntoskrnl.exe, ReactOS parts, or this project's own reimplementations, | |
53 | on a case by case basis. Project includes the first open source | |
54 | MS-Windows kernel API for Free operating systems. Involvement of the | |
55 | original driver files was chosen to achieve the best and unprecedented | |
56 | filesystem compatibility and safety. | |
0919bd5c | 57 | |
94d618e7 JR |
58 | %description -l pl.UTF-8 |
59 | Projekt Captive implementuje pierwszy pełny, swobodny dostęp z | |
60 | odczytem i zapisem do partycji NTFS. Pozwala zamontować partycje z | |
61 | Microsoft Windows NT, 200x i XP jako dostępny w sposób przezroczysty | |
52bc883e | 62 | wolumen pod Linuksem. |
0919bd5c | 63 | |
94d618e7 JR |
64 | Kompatybilność osiągnięto metodą Wine poprzez użycie oryginalnego |
65 | sterownika ntfs.sys. Captive emuluje wymagane podsystemy jądra | |
52bc883e | 66 | Microsoft Windows poprzez wykorzystanie oryginalnego ntoskrnl.exe, |
94d618e7 JR |
67 | części ReactOS-a lub własne implementacje z tego projektu w zależności |
68 | od danego przypadku. Projekt zawiera pierwsze API jądra MS-Windows z | |
69 | otwartymi źródłami dla wolnodostępnych systemów operacyjnych. Wybrano | |
70 | wykorzystanie plików oryginalnego sterownika aby osiągnąć lepszą | |
71 | kompatybilność i bezpieczeństwo. | |
0919bd5c | 72 | |
1c641fee | 73 | %package devel |
a5aba18a | 74 | Summary: Header files for captive library |
bbc7e355 | 75 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki captive |
1c641fee | 76 | Group: Development/Libraries |
a5aba18a | 77 | Requires: %{name} = %{version}-%{release} |
1c641fee ER |
78 | |
79 | %description devel | |
a5aba18a JB |
80 | This is the package containing the header files for captive. |
81 | ||
94d618e7 JR |
82 | %description devel -l pl.UTF-8 |
83 | Ten pakiet zawiera pliki nagłówkowe biblioteki captive. | |
1c641fee | 84 | |
76f65303 | 85 | %package gnome |
2f96c98b | 86 | Summary: Gnome VFS module for captive support |
bbc7e355 | 87 | Summary(pl.UTF-8): Moduł Gnome VFS z obsługą captive |
76f65303 | 88 | Group: Development/Libraries |
89 | Requires: %{name} = %{version}-%{release} | |
90 | Requires: gnome-vfs2 >= 2.0 | |
91 | ||
92 | %description gnome | |
2f96c98b | 93 | Gnome VFS module for captive support. |
76f65303 | 94 | |
94d618e7 JR |
95 | %description gnome -l pl.UTF-8 |
96 | Moduł Gnome VFS z obsługą captive. | |
76f65303 | 97 | |
52bc883e JB |
98 | %prep |
99 | %setup -q | |
b9b47ce0 | 100 | %patch0 -p1 |
76f65303 | 101 | |
8fa55f7e | 102 | # Fix not finished moving captive-sandbox-server to libdir |
103 | sed -i -e 's/--sandbox-server=@sbindir@/--sandbox-server=@libdir@/g' src/client/gnomevfs/captive.conf.in | |
0919bd5c | 104 | |
105 | %build | |
8fa55f7e | 106 | %{__libtoolize} |
107 | %{__aclocal} -I macros | |
108 | %{__autoconf} | |
109 | %{__autoheader} | |
110 | %{__automake} | |
fbe0a6f3 AG |
111 | %configure \ |
112 | --enable-shared \ | |
113 | --disable-static \ | |
114 | --with-readline \ | |
115 | --disable-bug-replay \ | |
8fa55f7e | 116 | --enable-lufs=no \ |
117 | --enable-fuse=yes \ | |
fbe0a6f3 AG |
118 | --disable-install-pkg \ |
119 | --enable-sandbox-setuid=captive \ | |
120 | --enable-sandbox-setgid=captive \ | |
121 | --enable-sandbox-chroot=/var/lib/captive \ | |
122 | --enable-man-pages \ | |
123 | --enable-sbin-mountdir=/sbin \ | |
124 | --enable-sbin-mount-fs=ntfs:fastfat:cdfs:ext2fsd \ | |
675a4053 | 125 | --with-orbit-line=link \ |
fbe0a6f3 AG |
126 | --with-tmpdir=/tmp |
127 | ||
52bc883e | 128 | %{__make} |
0919bd5c | 129 | |
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
0919bd5c | 132 | |
52bc883e JB |
133 | %{__make} install \ |
134 | DESTDIR=$RPM_BUILD_ROOT | |
0919bd5c | 135 | |
a5aba18a JB |
136 | rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la |
137 | ||
fbe0a6f3 AG |
138 | %find_lang %{name} |
139 | ||
0919bd5c | 140 | %clean |
ffde15b4 | 141 | rm -rf $RPM_BUILD_ROOT |
0919bd5c | 142 | |
cc9bb8b1 | 143 | %pre |
144 | %groupadd -g 141 captive | |
145 | %useradd -u 141 -r -d /var/lib/captive -s /bin/false -c "Captive User" -g captive captive | |
146 | ||
147 | %postun | |
148 | if [ "$1" = "0" ]; then | |
149 | %userremove captive | |
150 | %groupremove captive | |
151 | fi | |
152 | ||
fbe0a6f3 | 153 | %files -f %{name}.lang |
0919bd5c | 154 | %defattr(644,root,root,755) |
52bc883e | 155 | %doc AUTHORS NEWS README THANKS TODO |
8fa55f7e | 156 | %attr(755,root,root) /sbin/* |
1c641fee ER |
157 | %attr(755,root,root) %{_bindir}/captive-cmdline |
158 | #%attr(755,root,root) %{_bindir}/captive-bug-replay was here earlier. | |
76f65303 | 159 | %attr(755,root,root) %{_libdir}/captive-sandbox-server |
8fa55f7e | 160 | %{_sysconfdir}/w32-mod-id.captivemodid.xml |
a5aba18a | 161 | %attr(755,root,root) %{_libdir}/libcaptive-*.so |
b9b47ce0 | 162 | %{_mandir}/man?/* |
1c641fee ER |
163 | %{_var}/lib/captive |
164 | ||
165 | %files devel | |
a5aba18a JB |
166 | %defattr(644,root,root,755) |
167 | %attr(755,root,root) %{_libdir}/libcaptive.so | |
1c641fee | 168 | %{_libdir}/libcaptive.la |
a5aba18a | 169 | %{_includedir}/captive |
76f65303 | 170 | |
171 | #%if %{with vfs} | |
172 | %files gnome | |
173 | %defattr(644,root,root,755) | |
174 | %{_sysconfdir}/gnome-vfs-2.0/modules/* | |
175 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs*.so | |
176 | #%endif |