]> git.pld-linux.org Git - packages/captive.git/blobdiff - captive.spec
- updated gettext BR
[packages/captive.git] / captive.spec
index 6f827c24d8db789f5c31469051fb855f3dee992a..3ab31609f1184cee0742234d151ab4693a615866 100644 (file)
@@ -1,29 +1,43 @@
-#
-#
+# 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(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
-Version:       1.1.6.1
-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
-# Source0-md5: 81fcc21997cf46ad9440d1a1464a384e
-Patch0:                %{name}-non_root_install.patch
-Patch1:                %{name}-popt_link.patch
-Patch2:                %{name}-configure_ac.patch
+# Source0-md5: 34312cd854ca992f0daf0a8faabaae9a
+Patch0:                %{name}-popt_link.patch
 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: gettext-devel
-BuildRequires: gnome-vfs2-devel >= 2.0
-BuildRequires: libxml2-devel >= 2.5.9
+BuildRequires: gettext-tools
 BuildRequires: libfuse-devel >= 2.4.1
+BuildRequires: libtool
+BuildRequires: libxml2-devel >= 2.5.9
 BuildRequires: openssl-devel
 BuildRequires: perl-tools-pod
 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)
 
@@ -41,38 +55,50 @@ 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.
 
-%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.
 
-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,
-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):   Pliki nag³ówkowe biblioteki captive
+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
-Ten pakiet zawiera pliki nag³ówkowe biblioteki 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
-%patch1 -p1
-%patch2 -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
 
@@ -82,8 +108,6 @@ sed -i -e 's/--sandbox-server=@sbindir@/--sandbox-server=@libdir@/g' src/client/
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-cp -f /usr/share/automake/config.sub .
-
 %configure \
        --enable-shared \
        --disable-static \
@@ -98,7 +122,7 @@ cp -f /usr/share/automake/config.sub .
        --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}
@@ -114,7 +138,17 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
 %find_lang %{name}
 
 %clean
-#rm -rf $RPM_BUILD_ROOT
+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)
@@ -122,11 +156,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
 %attr(755,root,root) /sbin/*
 %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}/gnome-vfs-2.0/modules/*
+%attr(755,root,root) %{_libdir}/captive-sandbox-server
 %{_sysconfdir}/w32-mod-id.captivemodid.xml
 %attr(755,root,root) %{_libdir}/libcaptive-*.so
-%attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs*.so
 %{_mandir}/man?/*
 %{_var}/lib/captive
 
@@ -135,3 +167,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
 %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.116766 seconds and 4 git commands to generate.