]> git.pld-linux.org Git - packages/captive.git/blob - captive.spec
- BRs: perl-tools-pod, readline-devel, gettext-devel
[packages/captive.git] / captive.spec
1 #
2 # Conditional build:
3 %bcond_without  lufs    # don't build LUFS support
4 #
5 Summary:        Captive - NTFS read/write filesystem for Linux
6 Summary(pl):    Captive - obs³uga NTFS dla Linuksa z odczytem i zapisem
7 Name:           captive
8 Version:        1.1.5
9 Release:        0.5
10 License:        GPL
11 Group:          Base/Kernel
12 Source0:        http://www.jankratochvil.net/project/captive/dist/%{name}-%{version}.tar.gz
13 # Source0-md5:  dfb7ce617745695e7a908609b9370fd6
14 Patch0:         %{name}-non_root_install.patch
15 Patch1:         %{name}-popt_link.patch
16 URL:            http://www.jankratochvil.net/project/captive/
17 BuildRequires:  ORBit2-devel
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  gettext-devel
21 BuildRequires:  gnome-vfs2-devel >= 2.0
22 BuildRequires:  libxml2-devel >= 2.5.9
23 %{?with_lufs:BuildRequires:     lufs-devel}
24 BuildRequires:  openssl-devel
25 BuildRequires:  perl-tools-pod
26 BuildRequires:  pkgconfig
27 BuildRequires:  readline-devel
28 Requires:       ntfsprogs >= 1.8.0
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 Captive project implements the first full read/write free access to
33 NTFS disk drives. You can mount your Microsoft Windows NT, 200x or XP
34 partition as a transparently accessible volume for your GNU/Linux.
35
36 This compatibility was achieved in the Wine way by using the original
37 Microsoft Windows ntfs.sys driver. It emulates the required subsystems
38 of the Microsoft Windows kernel by reusing one of the original
39 ntoskrnl.exe, ReactOS parts, or this project's own reimplementations,
40 on a case by case basis. Project includes the first open source
41 MS-Windows kernel API for Free operating systems. Involvement of the
42 original driver files was chosen to achieve the best and unprecedented
43 filesystem compatibility and safety.
44
45 %description -l pl
46 Projekt Captive implementuje pierwszy pe³ny, swobodny dostêp z
47 odczytem i zapisem do partycji NTFS. Pozwala zamontowaæ partycje z
48 Microsoft Windows NT, 200x i XP jako dostêpny w sposób przezroczysty
49 wolumen pod Linuksem.
50
51 Kompatybilno¶æ osi±gniêto metod± Wine poprzez u¿ycie oryginalnego
52 sterownika ntfs.sys. Captive emuluje wymagane podsystemy j±dra
53 Microsoft Windows poprzez wykorzystanie oryginalnego ntoskrnl.exe,
54 czê¶ci ReactOS-a lub w³asne implementacje z tego projektu w zale¿no¶ci
55 od danego przypadku. Projekt zawiera pierwsze API j±dra MS-Windows z
56 otwartymi ¼ród³ami dla wolnodostêpnych systemów operacyjnych. Wybrano
57 wykorzystanie plików oryginalnego sterownika aby osi±gn±æ lepsz±
58 kompatybilno¶æ i bezpieczeñstwo.
59
60 %package devel
61 Summary:        Header files for captive library
62 Summary(pl):    Pliki nag³ówkowe biblioteki captive
63 Group:          Development/Libraries
64 Requires:       %{name} = %{version}-%{release}
65
66 %description devel
67 This is the package containing the header files for captive.
68
69 %description devel -l pl
70 Ten pakiet zawiera pliki nag³ówkowe biblioteki captive.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75 %patch1 -p1
76
77 %build
78 %configure \
79         --enable-shared \
80         --disable-static \
81         --with-readline \
82         --disable-bug-replay \
83         --enable-lufs=auto \
84         --disable-install-pkg \
85         --enable-sandbox-setuid=captive \
86         --enable-sandbox-setgid=captive \
87         --enable-sandbox-chroot=/var/lib/captive \
88         --enable-man-pages \
89         --enable-sbin-mountdir=/sbin \
90         --enable-sbin-mount-fs=ntfs:fastfat:cdfs:ext2fsd \
91         --with-oribt-line=link \
92         --with-tmpdir=/tmp
93
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
103
104 %find_lang %{name}
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %files -f %{name}.lang
110 %defattr(644,root,root,755)
111 %doc AUTHORS NEWS README THANKS TODO
112 #%attr(755,root,root) /sbin/* # what was installed here?
113 %attr(755,root,root) %{_bindir}/captive-cmdline
114 #%attr(755,root,root) %{_bindir}/captive-bug-replay was here earlier.
115 %attr(755,root,root) %{_sbindir}/captive-sandbox-server
116 %{_sysconfdir}/gnome-vfs-2.0/modules/*
117 %attr(755,root,root) %{_libdir}/libcaptive-*.so
118 %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs*.so
119 %{_mandir}/man?/*
120 %{_var}/lib/captive
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libcaptive.so
125 %{_libdir}/libcaptive.la
126 %{_includedir}/captive
This page took 0.057514 seconds and 4 git commands to generate.