]> git.pld-linux.org Git - packages/captive.git/blobdiff - captive.spec
- updated gettext BR
[packages/captive.git] / captive.spec
index 7afa70f30db339faf61033700756eb5ddc9a5a82..3ab31609f1184cee0742234d151ab4693a615866 100644 (file)
@@ -1,28 +1,43 @@
-#
-# Conditional build:
-#%%bcond_without       gnome   # don't build gnome-vfs support
-%bcond_without lufs    # don't build LUFS support
-#
+# http://gentoo-wiki.com/HOWTO_NTFS_write_with_Captive_approach
+# nice article about how to use it in gentoo, should be easy to prot to pld
+
+# please allow those bconds to remain here as next version might be gnome-vfs2 independent
+# %bcond_without       vfs     # disable gnome2 vfs
 Summary:       Captive - NTFS read/write filesystem for Linux
 Summary:       Captive - NTFS read/write filesystem for Linux
-Summary(pl):   Captive - obs³uga NTFS dla Linuksa z odczytem i zapisem
+Summary(pl.UTF-8):     Captive - obsługa NTFS dla Linuksa z odczytem i zapisem
 Name:          captive
 Name:          captive
-Version:       1.1.5
-Release:       0.1
+Version:       1.1.7
+Release:       1
 License:       GPL
 Group:         Base/Kernel
 Source0:       http://www.jankratochvil.net/project/captive/dist/%{name}-%{version}.tar.gz
 License:       GPL
 Group:         Base/Kernel
 Source0:       http://www.jankratochvil.net/project/captive/dist/%{name}-%{version}.tar.gz
-# Source0-md5: dfb7ce617745695e7a908609b9370fd6
-Patch0:                %{name}-non_root_install.patch
-Patch1:                %{name}-popt_link.patch
+# Source0-md5: 34312cd854ca992f0daf0a8faabaae9a
+Patch0:                %{name}-popt_link.patch
 URL:           http://www.jankratochvil.net/project/captive/
 URL:           http://www.jankratochvil.net/project/captive/
-BuildRequires: ORBit2-devel
+#%if %{with vfs}
+BuildRequires: gnome-vfs2-devel >= 2.0
+#%endif
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: gnome-vfs2-devel >= 2.0
+BuildRequires: gettext-tools
+BuildRequires: libfuse-devel >= 2.4.1
+BuildRequires: libtool
 BuildRequires: libxml2-devel >= 2.5.9
 BuildRequires: libxml2-devel >= 2.5.9
-%{?with_lufs:BuildRequires:    lufs-devel}
 BuildRequires: openssl-devel
 BuildRequires: openssl-devel
+BuildRequires: perl-tools-pod
 BuildRequires: pkgconfig
 BuildRequires: pkgconfig
+BuildRequires: readline-devel
+BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: ORBit2-devel
+BuildRequires: sed >= 4.0
+Provides:      group(captive)
+Provides:      user(captive)
+Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
 Requires:      ntfsprogs >= 1.8.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 Requires:      ntfsprogs >= 1.8.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -40,38 +55,66 @@ MS-Windows kernel API for Free operating systems. Involvement of the
 original driver files was chosen to achieve the best and unprecedented
 filesystem compatibility and safety.
 
 original driver files was chosen to achieve the best and unprecedented
 filesystem compatibility and safety.
 
-%description -l pl
-Projekt Captive implementuje pierwszy pe³ny, swobodny dostêp z
-odczytem i zapisem do partycji NTFS. Pozwala zamontowaæ partycje z
-Microsoft Windows NT, 200x i XP jako dostêpny w sposób przezroczysty
+%description -l pl.UTF-8
+Projekt Captive implementuje pierwszy pełny, swobodny dostęp z
+odczytem i zapisem do partycji NTFS. Pozwala zamontować partycje z
+Microsoft Windows NT, 200x i XP jako dostępny w sposób przezroczysty
 wolumen pod Linuksem.
 
 wolumen pod Linuksem.
 
-Kompatybilno¶æ osi±gniêto metod± Wine poprzez u¿ycie oryginalnego
-sterownika ntfs.sys. Captive emuluje wymagane podsystemy j±dra
+Kompatybilność osiągnięto metodą Wine poprzez użycie oryginalnego
+sterownika ntfs.sys. Captive emuluje wymagane podsystemy jądra
 Microsoft Windows poprzez wykorzystanie oryginalnego ntoskrnl.exe,
 Microsoft Windows poprzez wykorzystanie oryginalnego ntoskrnl.exe,
-czê¶ci ReactOS-a lub w³asne implementacje z tego projektu w zale¿no¶ci
-od danego przypadku. Projekt zawiera pierwsze API j±dra MS-Windows z
-otwartymi ¼ród³ami dla wolnodostêpnych systemów operacyjnych. Wybrano
-wykorzystanie plików oryginalnego sterownika aby osi±gn±æ lepsz±
-kompatybilno¶æ i bezpieczeñstwo.
+części ReactOS-a lub własne implementacje z tego projektu w zależności
+od danego przypadku. Projekt zawiera pierwsze API jądra MS-Windows z
+otwartymi źródłami dla wolnodostępnych systemów operacyjnych. Wybrano
+wykorzystanie plików oryginalnego sterownika aby osiągnąć lepszą
+kompatybilność i bezpieczeństwo.
+
+%package devel
+Summary:       Header files for captive library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki captive
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+This is the package containing the header files for captive.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe biblioteki captive.
+
+%package gnome
+Summary:       Gnome VFS module for captive support
+Summary(pl.UTF-8):     Moduł Gnome VFS z obsługą captive
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      gnome-vfs2 >= 2.0
+
+%description gnome
+Gnome VFS module for captive support.
+
+%description gnome -l pl.UTF-8
+Moduł Gnome VFS z obsługą captive.
 
 %prep
 %setup -q
 %patch0 -p1
 
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
+
+# Fix not finished moving captive-sandbox-server to libdir
+sed -i -e 's/--sandbox-server=@sbindir@/--sandbox-server=@libdir@/g' src/client/gnomevfs/captive.conf.in
 
 %build
 
 %build
-#%{__libtoolize}
-#%{__aclocal} -I macros
-#%{__autoconf}
-#%{__autoheader}
-#%{__automake}
+%{__libtoolize}
+%{__aclocal} -I macros
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
        --enable-shared \
        --disable-static \
        --with-readline \
        --disable-bug-replay \
 %configure \
        --enable-shared \
        --disable-static \
        --with-readline \
        --disable-bug-replay \
-       --enable-lufs=auto \
+       --enable-lufs=no \
+       --enable-fuse=yes \
        --disable-install-pkg \
        --enable-sandbox-setuid=captive \
        --enable-sandbox-setgid=captive \
        --disable-install-pkg \
        --enable-sandbox-setuid=captive \
        --enable-sandbox-setgid=captive \
@@ -79,7 +122,7 @@ kompatybilno
        --enable-man-pages \
        --enable-sbin-mountdir=/sbin \
        --enable-sbin-mount-fs=ntfs:fastfat:cdfs:ext2fsd \
        --enable-man-pages \
        --enable-sbin-mountdir=/sbin \
        --enable-sbin-mount-fs=ntfs:fastfat:cdfs:ext2fsd \
-       --with-oribt-line=link \
+       --with-orbit-line=link \
        --with-tmpdir=/tmp
 
 %{__make}
        --with-tmpdir=/tmp
 
 %{__make}
@@ -90,20 +133,44 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
+
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+%groupadd -g 141 captive
+%useradd -u 141 -r -d /var/lib/captive -s /bin/false -c "Captive User" -g captive captive
+
+%postun 
+if [ "$1" = "0" ]; then
+       %userremove captive
+       %groupremove captive
+fi
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README THANKS TODO
 %attr(755,root,root) /sbin/*
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README THANKS TODO
 %attr(755,root,root) /sbin/*
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_sbindir}/*
-%{_sysconfdir}/gnome-vfs-2.0/modules/*
-%{_libdir}/lib*
-%{_libdir}/gnome-vfs-2.0/modules/*
-%{_includedir}/captive/*
+%attr(755,root,root) %{_bindir}/captive-cmdline
+#%attr(755,root,root) %{_bindir}/captive-bug-replay was here earlier.
+%attr(755,root,root) %{_libdir}/captive-sandbox-server
+%{_sysconfdir}/w32-mod-id.captivemodid.xml
+%attr(755,root,root) %{_libdir}/libcaptive-*.so
 %{_mandir}/man?/*
 %{_mandir}/man?/*
-%{_var}/lib/captive/
+%{_var}/lib/captive
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcaptive.so
+%{_libdir}/libcaptive.la
+%{_includedir}/captive
+
+#%if %{with vfs}
+%files gnome
+%defattr(644,root,root,755)
+%{_sysconfdir}/gnome-vfs-2.0/modules/*
+%attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs*.so
+#%endif
This page took 0.078137 seconds and 4 git commands to generate.