2007-01-15 23:13:26 +00:00
|
|
|
#
|
2011-03-18 09:27:37 +00:00
|
|
|
# spec file for package gammu
|
2007-01-15 23:13:26 +00:00
|
|
|
#
|
2012-08-08 19:32:20 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:13:26 +00:00
|
|
|
#
|
2008-09-09 20:09:26 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:13:26 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-08-08 19:32:20 +00:00
|
|
|
|
2011-03-18 09:27:37 +00:00
|
|
|
Name: gammu
|
2012-08-08 19:32:20 +00:00
|
|
|
Version: 1.32.0
|
2011-12-23 20:42:53 +00:00
|
|
|
Release: 0
|
2011-03-18 09:27:37 +00:00
|
|
|
Summary: Mobile phone management utility
|
2011-12-23 20:42:53 +00:00
|
|
|
License: GPL-2.0
|
2011-07-24 13:19:07 +00:00
|
|
|
Group: Productivity/Telephony/Utilities
|
2011-12-23 20:42:53 +00:00
|
|
|
Url: http://wammu.eu/gammu/
|
2012-08-08 19:32:20 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
|
2011-07-24 13:19:07 +00:00
|
|
|
# PATCH-FIX-OPENSUSE gammu-smsd.lsb.patch asterios.dramis@gmail.com -- Fix rpmlint warnings "unknown-lsb-keyword" and "init-script-runlevel-4"
|
|
|
|
Patch0: gammu-smsd.lsb.patch
|
2012-08-10 09:27:37 +00:00
|
|
|
# PATCH-FIX-OPENSUSE gammu-remove-gplv3-files.patch idoenmez@suse.de -- Remove GPLv3 files bnc#775397
|
|
|
|
Patch1: gammu-remove-gplv3-files.patch
|
2011-03-21 06:40:54 +00:00
|
|
|
# Python location
|
2009-04-07 10:55:56 +00:00
|
|
|
%{!?__python: %define __python python}
|
2011-03-18 09:27:37 +00:00
|
|
|
%define g_python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
|
|
|
|
%define g_python_major_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0][:3]')
|
|
|
|
# Docdir
|
2009-04-07 10:55:56 +00:00
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
2011-03-18 09:27:37 +00:00
|
|
|
%define gammu_docdir %{_docdir}/%{name}-%{version}
|
2009-04-07 10:55:56 +00:00
|
|
|
%else
|
2011-03-18 09:27:37 +00:00
|
|
|
%define gammu_docdir %{_docdir}/%{name}
|
2009-04-07 10:55:56 +00:00
|
|
|
%endif
|
2011-03-18 09:27:37 +00:00
|
|
|
# Detect build requires
|
2009-04-07 10:55:56 +00:00
|
|
|
# SUSE
|
|
|
|
%if 0%{?suse_version}
|
2009-05-05 16:06:19 +00:00
|
|
|
%define dist_usb_libs libusb-1_0-devel
|
2011-07-24 13:19:07 +00:00
|
|
|
%define dist_dbi_libs libdbi-devel libdbi-drivers-dbd-sqlite3 sqlite3
|
2009-04-07 10:55:56 +00:00
|
|
|
%define dist_bluez_libs bluez-devel
|
|
|
|
%define dist_postgres_libs postgresql-devel
|
|
|
|
%else
|
|
|
|
# Mandriva
|
|
|
|
%if 0%{?mandriva_version}
|
|
|
|
# 64-bit Mandriva has 64 in package name
|
|
|
|
%ifarch x86_64
|
|
|
|
%define mandriva_hack 64
|
|
|
|
%endif
|
2011-12-23 20:42:53 +00:00
|
|
|
%if 0%{?mandriva_version} > 200910
|
|
|
|
%define dist_usb_libs lib%{?mandriva_hack}usb1.0-devel
|
2009-04-07 10:55:56 +00:00
|
|
|
%else
|
2011-12-23 20:42:53 +00:00
|
|
|
%define dist_usb_libs lib%{?mandriva_hack}usb-devel
|
2009-04-07 10:55:56 +00:00
|
|
|
%endif
|
2011-12-23 20:42:53 +00:00
|
|
|
%if 0%{?mandriva_version} > 2010
|
|
|
|
%define dist_dbi_libs lib%{?mandriva_hack}dbi-devel libdbi-drivers-dbd-sqlite3 sqlite3-tools
|
2009-04-07 10:55:56 +00:00
|
|
|
%endif
|
2011-12-23 20:42:53 +00:00
|
|
|
%define dist_bluez_libs lib%{?mandriva_hack}bluez-devel
|
2009-04-07 10:55:56 +00:00
|
|
|
# postgresql-devel does not work for whatever reason in buildservice
|
|
|
|
%if 0%{?mandriva_version} == 2009
|
|
|
|
%define dist_postgres_libs postgresql8.3-devel
|
|
|
|
%else
|
|
|
|
%define dist_postgres_libs postgresql-devel
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
# Fedora / Redhat / Centos
|
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
2009-05-05 16:06:19 +00:00
|
|
|
%define dist_usb_libs libusb1-devel
|
|
|
|
%define dist_dbi_libs libdbi-devel libdbi-dbd-sqlite sqlite
|
2011-03-18 09:27:37 +00:00
|
|
|
%define dist_bluez_libs bluez-libs-devel >= 2.0
|
2009-04-07 10:55:56 +00:00
|
|
|
%define dist_postgres_libs postgresql-devel
|
|
|
|
%else
|
2011-12-23 20:42:53 +00:00
|
|
|
# Defaults for not known distributions
|
2009-05-05 16:06:19 +00:00
|
|
|
%define dist_usb_libs libusb1-devel
|
|
|
|
%define dist_dbi_libs libdbi-devel libdbi-dbd-sqlite sqlite
|
2011-03-18 09:27:37 +00:00
|
|
|
%define dist_bluez_libs bluez-libs-devel >= 2.0
|
2009-04-07 10:55:56 +00:00
|
|
|
%define dist_postgres_libs postgresql-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
2011-03-18 09:27:37 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: glib2-devel
|
2012-08-08 19:32:20 +00:00
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
BuildRequires: gnu-free-fonts
|
|
|
|
%else
|
|
|
|
%if 0%{?suse_version} == 1210
|
|
|
|
BuildRequires: freefont
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: graphviz-gd
|
|
|
|
%endif
|
2011-03-18 09:27:37 +00:00
|
|
|
%if 0%{?centos_version} || 0%{?rhel_version} || 0%{?rhel}
|
|
|
|
BuildRequires: curl-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: libcurl-devel
|
2009-04-07 10:55:56 +00:00
|
|
|
%endif
|
2011-12-23 20:42:53 +00:00
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
|
|
|
BuildRequires: libgudev1-devel
|
|
|
|
%else
|
|
|
|
%if 0%{?mandriva_version}
|
|
|
|
%ifarch x86_64
|
|
|
|
%define mandriva_hack 64
|
|
|
|
%endif
|
|
|
|
BuildRequires: lib%{?mandriva_hack}gudev1.0-devel
|
|
|
|
%else
|
2011-03-18 09:27:37 +00:00
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
BuildRequires: libgudev-1_0-devel
|
2009-04-07 10:55:56 +00:00
|
|
|
%endif
|
2011-12-23 20:42:53 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
2009-05-05 16:06:19 +00:00
|
|
|
BuildRequires: mysql-devel
|
2011-03-18 09:27:37 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
%else
|
|
|
|
BuildRequires: pkgconfig
|
2009-04-07 10:55:56 +00:00
|
|
|
%endif
|
2012-08-08 19:32:20 +00:00
|
|
|
BuildRequires: %{dist_bluez_libs}
|
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
BuildRequires: python-Sphinx
|
|
|
|
%endif
|
2011-03-18 09:27:37 +00:00
|
|
|
BuildRequires: python-devel
|
2011-07-24 13:19:07 +00:00
|
|
|
BuildRequires: unixODBC-devel
|
2012-08-08 19:32:20 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
|
|
|
|
BuildRequires: xz
|
|
|
|
%endif
|
2011-12-23 20:42:53 +00:00
|
|
|
%if 0%{?suse_version} > 1130 || 0%{?mandriva_version} > 2010 || 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
2009-04-07 10:55:56 +00:00
|
|
|
BuildRequires: %{dist_dbi_libs}
|
|
|
|
%endif
|
2011-03-18 09:27:37 +00:00
|
|
|
BuildRequires: %{dist_postgres_libs}
|
2009-05-05 16:06:19 +00:00
|
|
|
BuildRequires: %{dist_usb_libs}
|
2011-03-18 09:27:37 +00:00
|
|
|
Requires: bluez
|
|
|
|
Requires: dialog
|
2012-08-08 19:32:20 +00:00
|
|
|
Recommends: gammu-doc
|
2011-12-23 20:42:53 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-15 23:13:26 +00:00
|
|
|
|
|
|
|
%description
|
2009-04-07 10:55:56 +00:00
|
|
|
Gammu is command line utility and library to work with mobile phones
|
|
|
|
from many vendors. Support for different models differs, but basic
|
|
|
|
functions should work with majority of them. Program can work with
|
|
|
|
contacts, messages (SMS, EMS and MMS), calendar, todos, filesystem,
|
|
|
|
integrated radio, camera, etc. It also supports daemon mode to send and
|
|
|
|
receive SMSes.
|
2007-01-15 23:13:26 +00:00
|
|
|
|
2009-04-07 10:55:56 +00:00
|
|
|
Currently supported phones include:
|
2007-01-15 23:13:26 +00:00
|
|
|
|
2009-04-07 10:55:56 +00:00
|
|
|
* Many Nokia models.
|
|
|
|
* Alcatel BE5 (501/701), BF5 (715), BH4 (535/735).
|
|
|
|
* AT capable phones (Siemens, Nokia, Alcatel, IPAQ).
|
|
|
|
* OBEX and IrMC capable phones (Sony-Ericsson, Motorola).
|
|
|
|
* Symbian phones through gnapplet.
|
2007-01-15 23:13:26 +00:00
|
|
|
|
2011-03-18 09:27:37 +00:00
|
|
|
This package contains Gammu binary as well as some examples.
|
|
|
|
|
2007-01-15 23:13:26 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for Gammu
|
2011-07-24 13:19:07 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-03-18 09:27:37 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
Requires: pkg-config
|
|
|
|
%else
|
|
|
|
Requires: pkgconfig
|
|
|
|
%endif
|
|
|
|
Requires: %{name} = %{version}
|
2007-01-15 23:13:26 +00:00
|
|
|
|
|
|
|
%description devel
|
2009-05-05 16:06:19 +00:00
|
|
|
Gammu is command line utility and library to work with mobile phones
|
|
|
|
from many vendors. Support for different models differs, but basic
|
|
|
|
functions should work with majority of them. Program can work with
|
|
|
|
contacts, messages (SMS, EMS and MMS), calendar, todos, filesystem,
|
|
|
|
integrated radio, camera, etc. It also supports daemon mode to send and
|
|
|
|
receive SMSes.
|
2007-01-15 23:13:26 +00:00
|
|
|
|
2009-05-05 16:06:19 +00:00
|
|
|
Currently supported phones include:
|
2007-01-15 23:13:26 +00:00
|
|
|
|
2009-05-05 16:06:19 +00:00
|
|
|
* Many Nokia models.
|
|
|
|
* Alcatel BE5 (501/701), BF5 (715), BH4 (535/735).
|
|
|
|
* AT capable phones (Siemens, Nokia, Alcatel, IPAQ).
|
|
|
|
* OBEX and IrMC capable phones (Sony-Ericsson, Motorola).
|
|
|
|
* Symbian phones through gnapplet.
|
2007-01-15 23:13:26 +00:00
|
|
|
|
2009-05-05 16:06:19 +00:00
|
|
|
This package contain files needed for development.
|
2007-01-15 23:13:26 +00:00
|
|
|
|
2012-08-08 19:32:20 +00:00
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation of Gammu
|
|
|
|
Group: Documentation/HTML
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the manual for gammu.
|
|
|
|
%endif
|
|
|
|
|
2011-03-18 09:27:37 +00:00
|
|
|
%package smsd
|
|
|
|
Summary: SMS message daemon
|
2011-07-24 13:19:07 +00:00
|
|
|
Group: Hardware/Mobile
|
2011-03-18 09:27:37 +00:00
|
|
|
|
|
|
|
%description smsd
|
|
|
|
Gammu is command line utility and library to work with mobile phones
|
|
|
|
from many vendors. Support for different models differs, but basic
|
|
|
|
functions should work with majority of them. Program can work with
|
|
|
|
contacts, messages (SMS, EMS and MMS), calendar, todos, filesystem,
|
|
|
|
integrated radio, camera, etc. It also supports daemon mode to send and
|
|
|
|
receive SMSes.
|
|
|
|
|
|
|
|
Currently supported phones include:
|
|
|
|
|
|
|
|
* Many Nokia models.
|
|
|
|
* Alcatel BE5 (501/701), BF5 (715), BH4 (535/735).
|
|
|
|
* AT capable phones (Siemens, Nokia, Alcatel, IPAQ).
|
|
|
|
* OBEX and IrMC capable phones (Sony-Ericsson, Motorola).
|
|
|
|
* Symbian phones through gnapplet.
|
|
|
|
|
2011-12-23 20:42:53 +00:00
|
|
|
This package contains the Gammu SMS Daemon and tool to inject messages
|
2011-03-18 09:27:37 +00:00
|
|
|
into the queue.
|
|
|
|
|
|
|
|
%package -n libGammu7
|
|
|
|
Summary: Mobile phone management library
|
2011-03-21 12:05:40 +00:00
|
|
|
Group: System/Libraries
|
2011-03-18 09:27:37 +00:00
|
|
|
|
|
|
|
%description -n libGammu7
|
|
|
|
Gammu is command line utility and library to work with mobile phones
|
|
|
|
from many vendors. Support for different models differs, but basic
|
|
|
|
functions should work with majority of them. Program can work with
|
|
|
|
contacts, messages (SMS, EMS and MMS), calendar, todos, filesystem,
|
|
|
|
integrated radio, camera, etc. It also supports daemon mode to send and
|
|
|
|
receive SMSes.
|
|
|
|
|
|
|
|
Currently supported phones include:
|
|
|
|
|
|
|
|
* Many Nokia models.
|
|
|
|
* Alcatel BE5 (501/701), BF5 (715), BH4 (535/735).
|
|
|
|
* AT capable phones (Siemens, Nokia, Alcatel, IPAQ).
|
|
|
|
* OBEX and IrMC capable phones (Sony-Ericsson, Motorola).
|
|
|
|
* Symbian phones through gnapplet.
|
|
|
|
|
2011-12-23 20:42:53 +00:00
|
|
|
This package contains the Gammu shared library.
|
2011-03-18 09:27:37 +00:00
|
|
|
|
|
|
|
%package -n libgsmsd7
|
|
|
|
Summary: SMS daemon helper library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libgsmsd7
|
|
|
|
Gammu is command line utility and library to work with mobile phones
|
|
|
|
from many vendors. Support for different models differs, but basic
|
|
|
|
functions should work with majority of them. Program can work with
|
|
|
|
contacts, messages (SMS, EMS and MMS), calendar, todos, filesystem,
|
|
|
|
integrated radio, camera, etc. It also supports daemon mode to send and
|
|
|
|
receive SMSes.
|
|
|
|
|
|
|
|
Currently supported phones include:
|
|
|
|
|
|
|
|
* Many Nokia models.
|
|
|
|
* Alcatel BE5 (501/701), BF5 (715), BH4 (535/735).
|
|
|
|
* AT capable phones (Siemens, Nokia, Alcatel, IPAQ).
|
|
|
|
* OBEX and IrMC capable phones (Sony-Ericsson, Motorola).
|
|
|
|
* Symbian phones through gnapplet.
|
|
|
|
|
2011-12-23 20:42:53 +00:00
|
|
|
This package contains the Gammu SMS daemon shared library.
|
2011-03-18 09:27:37 +00:00
|
|
|
|
2009-04-07 10:55:56 +00:00
|
|
|
%package -n python-gammu
|
|
|
|
Summary: Python module to communicate with mobile phones
|
2011-07-24 13:19:07 +00:00
|
|
|
Group: Development/Languages/Python
|
2011-03-18 09:27:37 +00:00
|
|
|
Requires: python < %{g_python_major_version}.99
|
2012-08-08 19:32:20 +00:00
|
|
|
Requires: python >= %{g_python_major_version}
|
2009-04-07 10:55:56 +00:00
|
|
|
%{?py_requires}
|
|
|
|
|
|
|
|
%description -n python-gammu
|
2009-07-11 01:19:02 +00:00
|
|
|
This provides gammu module, that can work with any phone Gammu
|
|
|
|
supports - many Nokias, Siemens, Alcatel, ...
|
2007-01-15 23:13:26 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-03-18 09:27:37 +00:00
|
|
|
%patch0
|
2012-08-10 09:27:37 +00:00
|
|
|
%patch1 -p1
|
|
|
|
|
2011-03-18 09:27:37 +00:00
|
|
|
# Remove build time references - Fix rpmlint warning "file-contains-date-and-time"
|
2011-07-24 13:19:07 +00:00
|
|
|
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
|
|
|
|
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
2011-03-18 09:27:37 +00:00
|
|
|
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" gammu/gammu.c gammu-detect/main.c libgammu/gsmstate.c smsd/inject.c smsd/monitor.c smsd/main.c
|
|
|
|
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" gammu/gammu.c gammu-detect/main.c libgammu/gsmstate.c libgammu/phone/dummy/dummy.c smsd/inject.c smsd/monitor.c smsd/main.c
|
2011-07-24 13:19:07 +00:00
|
|
|
# Change permissions - Fix rpmlint warning "doc-file-dependency"
|
|
|
|
chmod 644 python/examples/*.py
|
2012-08-08 19:32:20 +00:00
|
|
|
chmod 644 contrib/init/gammu-smsd.lsb
|
2007-01-15 23:13:26 +00:00
|
|
|
|
2012-08-10 09:27:37 +00:00
|
|
|
# GPL-3.0 licensed files, bnc#775397
|
|
|
|
rm -rf contrib/sms-gammu2android
|
|
|
|
rm -rf contrib/smscgi
|
|
|
|
rm -rf helper/win32-*
|
|
|
|
|
2007-01-15 23:13:26 +00:00
|
|
|
%build
|
2011-07-24 13:19:07 +00:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="%{optflags}"
|
2009-04-07 10:55:56 +00:00
|
|
|
cmake ../ \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DBUILD_PYTHON=/usr/bin/python \
|
2011-03-18 09:27:37 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DINSTALL_DOC_DIR=%{gammu_docdir} \
|
|
|
|
-DINSTALL_LIB_DIR=%{_lib} \
|
|
|
|
-DINSTALL_LIBDATA_DIR=%{_lib} \
|
2012-08-08 19:32:20 +00:00
|
|
|
-DINSTALL_LSB_INIT=OFF \
|
|
|
|
-DINSTALL_UDEV_RULES=OFF
|
2011-07-24 13:19:07 +00:00
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
2012-08-08 19:32:20 +00:00
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
make manual-html
|
|
|
|
%endif
|
2011-03-18 09:27:37 +00:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
%check
|
2011-07-24 13:19:07 +00:00
|
|
|
#cd build
|
2011-03-18 09:27:37 +00:00
|
|
|
#ctest -V
|
|
|
|
#cd ..
|
2007-01-15 23:13:26 +00:00
|
|
|
|
|
|
|
%install
|
2011-03-21 06:40:54 +00:00
|
|
|
%if !0%{?suse_version}
|
2011-07-24 13:19:07 +00:00
|
|
|
make -C build install DESTDIR=%{buildroot}
|
2011-03-18 09:27:37 +00:00
|
|
|
%else
|
2011-07-24 13:19:07 +00:00
|
|
|
cd build
|
2011-03-18 09:27:37 +00:00
|
|
|
%makeinstall
|
|
|
|
cd ..
|
2009-04-07 10:55:56 +00:00
|
|
|
%endif
|
2011-03-18 09:27:37 +00:00
|
|
|
|
|
|
|
# Install config file
|
2011-12-23 20:42:53 +00:00
|
|
|
install -pm 0644 docs/config/smsdrc %{buildroot}%{_sysconfdir}/gammu-smsdrc
|
2011-03-18 09:27:37 +00:00
|
|
|
|
|
|
|
# Install additional doc files
|
2011-12-23 20:42:53 +00:00
|
|
|
install -pm 0644 AUTHORS README.cs README.da README.de README.en_GB README.es README.id README.pl README.pt_BR %{buildroot}%{gammu_docdir}/
|
2011-03-18 09:27:37 +00:00
|
|
|
|
2012-08-08 19:32:20 +00:00
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
# Install the html manual
|
|
|
|
rm -rf %{buildroot}%{gammu_docdir}/manual/
|
|
|
|
rm -rf build/docs/manual/html/{.doctrees/,.buildinfo,_sources/}
|
|
|
|
cp -a build/docs/manual/html/ %{buildroot}%{gammu_docdir}/manual
|
|
|
|
%endif
|
|
|
|
|
2011-03-18 09:27:37 +00:00
|
|
|
# Remove unneeded locales
|
2011-07-24 13:19:07 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1140
|
2011-03-18 09:27:37 +00:00
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/sw/
|
|
|
|
%endif
|
|
|
|
|
2007-11-08 23:05:14 +00:00
|
|
|
%find_lang %{name}
|
2009-04-07 10:55:56 +00:00
|
|
|
%find_lang libgammu
|
2007-01-15 23:13:26 +00:00
|
|
|
|
2011-03-18 09:27:37 +00:00
|
|
|
%post -n libGammu7 -p /sbin/ldconfig
|
2007-01-15 23:13:26 +00:00
|
|
|
|
2011-03-18 09:27:37 +00:00
|
|
|
%postun -n libGammu7 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libgsmsd7 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libgsmsd7 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%config %{_sysconfdir}/bash_completion.d/gammu
|
|
|
|
%{_bindir}/gammu
|
|
|
|
%{_bindir}/gammu-config
|
2011-07-24 13:19:07 +00:00
|
|
|
%{_bindir}/gammu-detect
|
2011-03-18 09:27:37 +00:00
|
|
|
%{_bindir}/jadmaker
|
|
|
|
%doc %{gammu_docdir}
|
2012-08-08 19:32:20 +00:00
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
%exclude %{gammu_docdir}/manual/
|
|
|
|
%endif
|
2011-07-24 13:19:07 +00:00
|
|
|
%{_datadir}/gammu/
|
2011-12-23 20:42:53 +00:00
|
|
|
%doc %{_mandir}/man1/gammu-config.1*
|
|
|
|
%doc %{_mandir}/man1/gammu-detect.1*
|
|
|
|
%doc %{_mandir}/man1/gammu.1*
|
|
|
|
%doc %{_mandir}/man1/jadmaker.1*
|
|
|
|
%doc %{_mandir}/man5/gammu-backup.5*
|
|
|
|
%doc %{_mandir}/man5/gammu-smsbackup.5*
|
|
|
|
%doc %{_mandir}/man5/gammurc.5*
|
2007-01-15 23:13:26 +00:00
|
|
|
|
|
|
|
%files devel
|
2011-03-18 09:27:37 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/gammu/
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/gammu-smsd.pc
|
|
|
|
%{_libdir}/pkgconfig/gammu.pc
|
|
|
|
|
2012-08-08 19:32:20 +00:00
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %{gammu_docdir}/manual/
|
|
|
|
%endif
|
|
|
|
|
2011-03-18 09:27:37 +00:00
|
|
|
%files smsd
|
|
|
|
%defattr(-,root,root,-)
|
2012-08-08 19:32:20 +00:00
|
|
|
%doc contrib/init/gammu-smsd.lsb
|
2011-03-18 09:27:37 +00:00
|
|
|
%config %{_sysconfdir}/gammu-smsdrc
|
|
|
|
%{_bindir}/gammu-smsd
|
|
|
|
%{_bindir}/gammu-smsd-inject
|
|
|
|
%{_bindir}/gammu-smsd-monitor
|
2011-12-23 20:42:53 +00:00
|
|
|
%doc %{_mandir}/man1/gammu-smsd-inject.1*
|
|
|
|
%doc %{_mandir}/man1/gammu-smsd-monitor.1*
|
|
|
|
%doc %{_mandir}/man1/gammu-smsd.1*
|
|
|
|
%doc %{_mandir}/man5/gammu-smsdrc.5*
|
|
|
|
%doc %{_mandir}/man7/gammu-smsd-dbi.7*
|
|
|
|
%doc %{_mandir}/man7/gammu-smsd-files.7*
|
|
|
|
%doc %{_mandir}/man7/gammu-smsd-mysql.7*
|
|
|
|
%doc %{_mandir}/man7/gammu-smsd-null.7*
|
|
|
|
%doc %{_mandir}/man7/gammu-smsd-odbc.7*
|
|
|
|
%doc %{_mandir}/man7/gammu-smsd-pgsql.7*
|
|
|
|
%doc %{_mandir}/man7/gammu-smsd-run.7*
|
|
|
|
%doc %{_mandir}/man7/gammu-smsd-sql.7*
|
|
|
|
%doc %{_mandir}/man7/gammu-smsd-tables.7*
|
2011-03-18 09:27:37 +00:00
|
|
|
|
|
|
|
%files -n libGammu7 -f libgammu.lang
|
|
|
|
%defattr(-,root,root,-)
|
2011-07-24 13:19:07 +00:00
|
|
|
%{_libdir}/libGammu.so.7*
|
2011-03-18 09:27:37 +00:00
|
|
|
|
|
|
|
%files -n libgsmsd7
|
|
|
|
%defattr(-,root,root,-)
|
2011-07-24 13:19:07 +00:00
|
|
|
%{_libdir}/libgsmsd.so.7*
|
2009-04-07 10:55:56 +00:00
|
|
|
|
|
|
|
%files -n python-gammu
|
2011-03-18 09:27:37 +00:00
|
|
|
%defattr(-,root,root,-)
|
2011-12-23 20:42:53 +00:00
|
|
|
%doc README.Python python/examples/
|
2011-03-18 09:27:37 +00:00
|
|
|
%{g_python_sitearch}/gammu/
|
2007-12-18 17:37:43 +00:00
|
|
|
|
2007-02-27 14:03:17 +00:00
|
|
|
%changelog
|