Пакет fuse-siefs: Specfile

%define realname	siefs

Packager: Denis Smirnov <mithraen@altlinux.ru>

Name: fuse-siefs
Version: 0.5
Release: alt8.qa1

Summary: Work with storage memory of Siemens mobiles via datacable
Summary(ru_RU.KOI8-R): \xf2\xc1\xc2\xcf\xd4\xc1 \xd3 \xd0\xc1\xcd\xd1\xd4\xd8\xc0 \xcd\xcf\xc2\xc9\xcc\xd8\xce\xd9\xc8 \xd4\xc5\xcc\xc5\xc6\xcf\xce\xcf\xd7 \xf3\xc9\xcd\xc5\xce\xd3
License: GPL
Group: Communications

Url: http://chaos.allsiemens.com/siefs/

Source: %realname-%version.tar.gz

Patch0: siefs-0.5-alt-fuse-pkgconfig.patch
Patch1: siefs-0.5-alt-fix-getdir.patch
Patch2: siefs-0.5-alt-fix-qwe3-close.patch
Patch3: siefs-0.5-alt-utf-8.patch
Patch4: siefs-0.5-alt-includes.patch
Patch5: siefs-0.5-alt-command-line.patch
Patch6: siefs-0.5-alt-man-pages.patch

Requires: mount >= 2.11
Requires: fuse

Provides: SieFS
Obsoletes: SieFS

# Automatically added by buildreq on Sun Nov 27 2005
BuildRequires: libfuse-devel

BuildRequires(pre): fuse >= 2.2

%description
SieFS is a virtual filesystem for accessing a storage memory (flexmem or
MultiMediaCard) of Siemens mobile phones via datacable, IRDA or
BlueTooth.  It is currently tested on S45, ME45, SL45(i), S55, SL55,
M55, MC60, CX65, M65, but should work also on C55/M50/MT50 with enabled
serial interface.  There should not be any problems with other new
Siemens phones (C60, S65, etc).

SieFS consists of filesystem module (siefs) and command-line utility
(slink).  SieFS depends on Filesystem in USErspace (FUSE) package.

The syntax of mount command is:

  "siefs [-o options] COMM_DEVICE MOUNT_DIR"
  "mount -t siefs [-o options] COMM_DEVICE MOUNT_DIR".

After mounting, the phone's memory will be visible as an ordinary
directory with files, you can copy, move, delete files, create
directories on it.  You can enter mount command when your mobile is not
connected to PC.  Also you can connect and disconnect it at any time
without need to remount filesystem.

For automatic mounting, add something like this to your /etc/fstab:

  "siefs  /mnt/mobile  siefs  device=/dev/ttyS0,allow_other  0 0".

slink is an utility for working with phone's memory without mounting.
Type "slink -h" to view all supported commands.

%description -l ru_RU.KOI8-R
SieFS - \xdc\xd4\xcf \xd7\xc9\xd2\xd4\xd5\xc1\xcc\xd8\xce\xc1\xd1 \xc6\xc1\xca\xcc\xcf\xd7\xc1\xd1 \xd3\xc9\xd3\xd4\xc5\xcd\xc1 \xc4\xcc\xd1 \xc4\xcf\xd3\xd4\xd5\xd0\xc1 \xcb \xd0\xc1\xcd\xd1\xd4\xc9 (flexmem
\xc9\xcc\xc9 MultiMediaCard) \xcd\xcf\xc2\xc9\xcc\xd8\xce\xd9\xc8 \xd4\xc5\xcc\xc5\xc6\xcf\xce\xcf\xd7 \xf3\xc9\xcd\xc5\xce\xd3 \xde\xc5\xd2\xc5\xda \xcb\xc1\xc2\xc5\xcc\xd8 \xd0\xc5\xd2\xc5\xc4\xc1\xde\xc9
\xc4\xc1\xce\xce\xd9\xc8, \xc9\xce\xc6\xd2\xc1\xcb\xd2\xc1\xd3\xce\xd9\xca \xd0\xcf\xd2\xd4 \xc9\xcc\xc9 BlueTooth.  \xf4\xc5\xcb\xd5\xdd\xc1\xd1 \xd7\xc5\xd2\xd3\xc9\xd1 \xd4\xc5\xd3\xd4\xc9\xd2\xcf\xd7\xc1\xcc\xc1\xd3\xd8
\xce\xc1 S45, ME45, SL45(i), S55, SL55, M55, MC60, CX65, M65, \xce\xcf \xc4\xcf\xcc\xd6\xce\xc1
\xd2\xc1\xc2\xcf\xd4\xc1\xd4\xd8 \xd4\xc1\xcb\xd6\xc5 \xce\xc1 C55/M50/MT50, \xd0\xcf\xc4\xcb\xcc\xc0\xde\xc1\xc0\xdd\xc9\xc8\xd3\xd1 \xde\xc5\xd2\xc5\xda \xd0\xcf\xd3\xcc\xc5\xc4\xcf\xd7\xc1\xd4\xc5\xcc\xd8\xce\xd9\xca
\xc9\xce\xd4\xc5\xd2\xc6\xc5\xca\xd3.  \xf4\x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d2\xc5\xcd\xd1 \xc2\xc5\xda \xd0\xc5\xd2\xc5\xcd\xcf\xce\xd4\xc9\xd2\xcf\xd7\xc1\xce\xc9\xd1.

\xe4\xcc\xd1 \xc1\xd7\xd4\xcf\xcd\xc1\xd4\xc9\xde\xc5\xd3\xcb\xcf\xc7\xcf \xcd\xcf\xce\xd4\xc9\xd2\xcf\xd7\xc1\xce\xc9\xd1, \xc4\xcf\xc2\xc1\xd7\xd8\xd4\xc5 \xd7 "/etc/fstab" \xd3\xd4\xd2\xcf\xcb\xd5,
\xd0\xcf\xc4\xcf\xc2\xce\xd5\xc0 \xdc\xd4\xcf\xca:

  "siefs  /mnt/mobile  siefs  device=/dev/ttyS0,allow_other  0 0".

slink - \xd5\xd4\xc9\xcc\xc9\xd4\xc1 \xc4\xcc\xd1 \xd2\xc1\xc2\xcf\xd4\xd9 \xd3 \xd0\xc1\xcd\xd1\xd4\xd8\xc0 \xd4\xc5\xcc\xc5\xc6\xcf\xce\xc1 \xc2\xc5\xda \xcd\xcf\xce\xd4\xc9\xd2\xcf\xd7\xc1\xce\xc9\xd1.
\xfe\xd4\xcf\xc2\xd9 \xd0\xcf\xd3\xcd\xcf\xd4\xd2\xc5\xd4\xd8 \xd7\xd3\xc5 \xc4\xcf\xd3\xd4\xd5\xd0\xce\xd9\xc5 \xcb\xcf\xcd\xc1\xce\xc4\xd9, \xc9\xd3\xd0\xcf\xcc\xd8\xda\xd5\xca\xd4\xc5 "slink -h".

%prep
%setup -q -n %realname-%version
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1

%build
autoreconf -vif
%configure
%make_build

%install
%makeinstall
mkdir -p $RPM_BUILD_ROOT/sbin
ln -s /usr/bin/siefs $RPM_BUILD_ROOT/sbin/mount.siefs

%files
%_bindir/*
%exclude %_bindir/vmo2wav
%_man1dir/*
%_man8dir/*
/sbin/mount.siefs
%doc README AUTHORS COPYING

%changelog
* Wed Apr 17 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 0.5-alt8.qa1
- NMU: rebuilt for debuginfo.

* Wed Feb 21 2007 Denis Smirnov <mithraen@altlinux.ru> 0.5-alt8
- rebuild with new fuse
- remove dependency to fuse version

* Sun Dec 31 2006 Sergey Vlasov <vsu@altlinux.ru> 0.5-alt7
- Use BuildRequires(pre) to fix build with gear --hasher.
- Fixed autogenerated dependency on current fuse version.
- Removed obsolete siefs-0.4 patches from the package.
- Added patches:
  + siefs-0.5-alt-fuse-pkgconfig.patch: use pkgconfig to find fuse headers and
    library (fixes possibly wrong compilation options and broken Makefile.am
    which did not work on x86_64)
  + siefs-0.5-alt-fix-getdir.patch: remove duplicate encoding conversion in
    getdir() which breaks with non-ASCII directory names
  + siefs-0.5-alt-fix-qwe3-close.patch: fix AT^SQWE=3 protocol close sequence
    (upstream fix added in 0.5 is incomplete)
  + siefs-0.5-alt-utf-8.patch: accept "utf-8" as a name for UTF-8
  + siefs-0.5-alt-includes.patch: add missing includes to avoid implicit
    declarations
  + siefs-0.5-alt-command-line.patch: enhanced command line parsing to allow
    passing of mount options and special command line options to the FUSE
    library (required for use in fstab to pass allow_other)
  + siefs-0.5-alt-man-pages.patch: add man page for siefs
- Removed BuildArch: i586 (now the package builds on x86_64).

* Fri Dec 15 2006 Denis Smirnov <mithraen@altlinux.ru> 0.5-alt6
- rebuild with new fuse

* Sun Nov 27 2005 Denis Smirnov <mithraen@altlinux.ru> 0.5-alt5
- rebuild with new fuse

* Tue Nov 22 2005 Denis Smirnov <mithraen@altlinux.ru> 0.5-alt4
- rebuild with last fuse

* Tue Oct 11 2005 Denis Smirnov <mithraen@altlinux.ru> 0.5-alt3
- rebuild with last fuse

* Fri Jun 10 2005 Denis Smirnov <mithraen@altlinux.ru> 0.5-alt2
- rebuild with fuse 2.3

* Fri Apr 22 2005 Denis Smirnov <mithraen@altlinux.ru> 0.5-alt1
- version update

* Sun Feb 13 2005 Sergey Vlasov <vsu@altlinux.ru> 0.4-alt1
- Version 0.4.
- Updated and reformatted %%description.
- Added patches:
  + siefs-0.4-fix-make-dist.patch: added missed files to SOURCES and
    EXTRA_DIST
  + siefs-0.4-fix-configure.patch: fix CFLAGS override and
    -I/usr/include problem
  + siefs-0.4-fix-undeclared.patch: added #include to fix missing
    prototypes
  + siefs-0.4-fix-slow-tx.patch: fix very slow transfer to mobile when
    USB cable is used
  + siefs-0.4-fix-qwe3-close.patch: fix AT^SQWE=3 protocol close sequence
  + siefs-0.4-fuse22.patch: compatibility with avfs-fuse 2.2
  + siefs-0.4-man-pages.patch: add man page for siefs
- Updated Requires and BuildRequires.

* Thu Mar 18 2004 Alexander Nekrasov <canis@altlinux.ru> 0.2-alt4
- vmo2wav is excluded, as is duplicated in obexftp packages

* Wed Jan 28 2004 Alexander Nekrasov <canis@altlinux.ru> 0.2-alt3
- description had been corrected

* Wed Jan 28 2004 Alexander Nekrasov <canis@altlinux.ru> 0.2-alt2
- build requires had been added

* Fri Jan 16 2004 Alexander Nekrasov <canis@altlinux.ru> 0.2-alt1
- new version
- support of new mobiles had been added
- new utility - voice memo converter (vmo2wav)

* Mon Dec 01 2003 Alexander Nekrasov <canis@altlinux.ru> 0.1-alt3
- symbolical link "mount.siefs" is forming automatically now

* Fri Nov 07 2003 Alexander Nekrasov <canis@altlinux.ru> 0.1-alt2
- the dependencys are corrected

* Thu Nov 06 2003 Alexander Nekrasov <canis@altlinux.ru> 0.1-alt1
- first build