Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37570072
en ru br
ALT Linux repos
S:0.6.31-alt3
5.0: 0.6.27-alt1
4.1: 0.6.22-alt1
4.0: 0.6.18-alt1
3.0: 0.6.5-alt1

Other repositories
Upstream:0.6.23

Group :: Communications
RPM: gnokii

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Packager: Michael Shigorin <mike at altlinux.ru>

Name: gnokii
Version: 0.6.5
Release: alt1

Summary: Unix tool suite for Nokia mobile phones
License: GPL
Group: Communications

Url: http://gnokii.org
Source0: ftp://ftp.gnokii.org/pub/gnokii/%name-%version.tar.gz
Source1: %name.desktop
Patch0: %name-0.5.0pre5-htmlview.asp.patch
Patch1: %name-0.5.2-alt-lockdir.patch

Requires: lib%name = %version-%release

# Automatically added by buildreq on Mon May 02 2005

BuildRequires: directfb-devel flex gcc-c++ glib-devel gtk+-devel libbluez-devel libstdc++-devel xorg-x11-devel-static

%define xname x%name
%add_optflags %optflags_shared

Summary(ru_RU.KOI8-R): Утилита для работы с телефонами Nokia
Summary(uk_UA.KOI8-U): Утил╕та для обм╕ну з телефонами Nokia

%description
Gnokii is a Unix tool suite for Nokia mobile phones.

You should be in 'uucp' group to use it with serial cables.

%description -l ru_RU.KOI8-R
Gnokii -- утилита для работы с мобильными телефонами Nokia.

При использовании с последовательным кабелем внесите себя в
группу 'uucp'.

%description -l uk_UA.KOI8-U
Gnokii -- утил╕та для роботи з моб╕льними телефонами Nokia.

При користуванн╕ з посл╕довним кабелем додайте себя до
групи 'uucp'.

%package -n %xname
Summary: Unix tool suite for Nokia mobile phones
Group: Communications
Requires: %name = %version-%release

%description -n %xname
xgnokii is a graphical tool for Nokia mobile phones

%description -n %xname -l ru_RU.KOI8-R
xgnokii -- графическая утилита для работы с мобильными телефонами Nokia

%description -n %xname -l uk_UA.KOI8-U
xgnoki -- граф╕чна утил╕та для роботи ╕з моб╕льними телефонами Nokia

%package -n lib%name
Summary: Library for gnokii
Group: System/Libraries

%description -n lib%name
You will need lib%name to run %name.

%package -n lib%name-devel
Summary: Development files for gnokii
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
Install %name-devel if you want to develop or compile applications using
gnokii API.

%prep
%setup -q
#patch0 -p1
%patch1 -p1

%build
unset CC CXX
%configure \
--with-x \
--enable-nls \
--enable-security \
--with-bluetooth \
--x-includes=%_x11includedir
%make

%install
%makeinstall
%__install -pD -m644 %SOURCE1 %buildroot%_datadir/applications/%name.desktop
%__mkdir_p %buildroot%_sysconfdir
%__sed 's,/usr/local/sbin/,%_sbindir,g' \
< Docs/sample/gnokiirc \
> %buildroot%_sysconfdir/gnokiirc
%find_lang %name %xname
# handle manpages -- broken makefile
%__mkdir_p %buildroot%_man1dir %buildroot%_man8dir
%__install -m644 Docs/man/*.1 %buildroot%_man1dir/
%__install -m644 Docs/man/*.8 %buildroot%_man8dir/
%__install -m644 Docs/man/%xname.1x %buildroot%_man1dir/%xname.1
%__rm -rf Docs/man/

%post -n lib%name -p /sbin/ldconfig
%postun -n lib%name -p /sbin/ldconfig

%files -f %name.lang
%doc TODO MAINTAINERS Docs/
%doc %_man1dir/*
%doc %_man8dir/*
%exclude %_man1dir/%xname.1*
%_bindir/*
%exclude %_bindir/%xname
%_sbindir/*
%config(noreplace) %_sysconfdir/gnokiirc

%files -n %xname
%_bindir/%xname
%_datadir/%xname/
%_datadir/applications/*
%_man1dir/%xname.1*

%files -n lib%name
%_libdir/libgnokii.so.*

%files -n lib%name-devel
%_includedir/gnokii.h
%_includedir/gnokii/
%_libdir/libgnokii.so
%_libdir/pkgconfig/gnokii.pc

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin