]> git.pld-linux.org Git - packages/captive.git/blame - captive.spec
- updated gettext BR
[packages/captive.git] / captive.spec
CommitLineData
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 6Summary: Captive - NTFS read/write filesystem for Linux
bbc7e355 7Summary(pl.UTF-8): Captive - obsługa NTFS dla Linuksa z odczytem i zapisem
0919bd5c 8Name: captive
76f65303 9Version: 1.1.7
cc9bb8b1 10Release: 1
74fbe030 11License: GPL
0919bd5c 12Group: Base/Kernel
52bc883e 13Source0: http://www.jankratochvil.net/project/captive/dist/%{name}-%{version}.tar.gz
76f65303 14# Source0-md5: 34312cd854ca992f0daf0a8faabaae9a
15Patch0: %{name}-popt_link.patch
52bc883e 16URL: http://www.jankratochvil.net/project/captive/
76f65303 17#%if %{with vfs}
18BuildRequires: gnome-vfs2-devel >= 2.0
19#%endif
e82ab2d5
JB
20BuildRequires: autoconf
21BuildRequires: automake
967a7239 22BuildRequires: gettext-tools
8fa55f7e 23BuildRequires: libfuse-devel >= 2.4.1
ffde15b4
JB
24BuildRequires: libtool
25BuildRequires: libxml2-devel >= 2.5.9
52bc883e 26BuildRequires: openssl-devel
2081c91f 27BuildRequires: perl-tools-pod
52bc883e 28BuildRequires: pkgconfig
2081c91f 29BuildRequires: readline-devel
5bffa806 30BuildRequires: rpmbuild(macros) >= 1.202
76f65303 31BuildRequires: ORBit2-devel
d11b6463 32BuildRequires: sed >= 4.0
cc9bb8b1 33Provides: group(captive)
34Provides: user(captive)
35Requires(postun): /usr/sbin/groupdel
36Requires(postun): /usr/sbin/userdel
37Requires(pre): /bin/id
38Requires(pre): /usr/bin/getgid
39Requires(pre): /usr/sbin/groupadd
40Requires(pre): /usr/sbin/useradd
74fbe030 41Requires: ntfsprogs >= 1.8.0
52bc883e 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
0919bd5c 43
44%description
52bc883e
JB
45Captive project implements the first full read/write free access to
46NTFS disk drives. You can mount your Microsoft Windows NT, 200x or XP
47partition as a transparently accessible volume for your GNU/Linux.
48
49This compatibility was achieved in the Wine way by using the original
50Microsoft Windows ntfs.sys driver. It emulates the required subsystems
51of the Microsoft Windows kernel by reusing one of the original
52ntoskrnl.exe, ReactOS parts, or this project's own reimplementations,
53on a case by case basis. Project includes the first open source
54MS-Windows kernel API for Free operating systems. Involvement of the
55original driver files was chosen to achieve the best and unprecedented
56filesystem compatibility and safety.
0919bd5c 57
94d618e7
JR
58%description -l pl.UTF-8
59Projekt Captive implementuje pierwszy pełny, swobodny dostęp z
60odczytem i zapisem do partycji NTFS. Pozwala zamontować partycje z
61Microsoft Windows NT, 200x i XP jako dostępny w sposób przezroczysty
52bc883e 62wolumen pod Linuksem.
0919bd5c 63
94d618e7
JR
64Kompatybilność osiągnięto metodą Wine poprzez użycie oryginalnego
65sterownika ntfs.sys. Captive emuluje wymagane podsystemy jądra
52bc883e 66Microsoft Windows poprzez wykorzystanie oryginalnego ntoskrnl.exe,
94d618e7
JR
67części ReactOS-a lub własne implementacje z tego projektu w zależności
68od danego przypadku. Projekt zawiera pierwsze API jądra MS-Windows z
69otwartymi źródłami dla wolnodostępnych systemów operacyjnych. Wybrano
70wykorzystanie plików oryginalnego sterownika aby osiągnąć lepszą
71kompatybilność i bezpieczeństwo.
0919bd5c 72
1c641fee 73%package devel
a5aba18a 74Summary: Header files for captive library
bbc7e355 75Summary(pl.UTF-8): Pliki nagłówkowe biblioteki captive
1c641fee 76Group: Development/Libraries
a5aba18a 77Requires: %{name} = %{version}-%{release}
1c641fee
ER
78
79%description devel
a5aba18a
JB
80This is the package containing the header files for captive.
81
94d618e7
JR
82%description devel -l pl.UTF-8
83Ten pakiet zawiera pliki nagłówkowe biblioteki captive.
1c641fee 84
76f65303 85%package gnome
2f96c98b 86Summary: Gnome VFS module for captive support
bbc7e355 87Summary(pl.UTF-8): Moduł Gnome VFS z obsługą captive
76f65303 88Group: Development/Libraries
89Requires: %{name} = %{version}-%{release}
90Requires: gnome-vfs2 >= 2.0
91
92%description gnome
2f96c98b 93Gnome VFS module for captive support.
76f65303 94
94d618e7
JR
95%description gnome -l pl.UTF-8
96Moduł 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
103sed -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
131rm -rf $RPM_BUILD_ROOT
0919bd5c 132
52bc883e
JB
133%{__make} install \
134 DESTDIR=$RPM_BUILD_ROOT
0919bd5c 135
a5aba18a
JB
136rm -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 141rm -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
148if [ "$1" = "0" ]; then
149 %userremove captive
150 %groupremove captive
151fi
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
This page took 0.126344 seconds and 4 git commands to generate.