Accepting request 129868 from home:adra:branches:hardware
Updated to 1.32.0, Don't install the init script, Build the package manual OBS-URL: https://build.opensuse.org/request/show/129868 OBS-URL: https://build.opensuse.org/package/show/hardware/gammu?expand=0&rev=16
This commit is contained in:
parent
0fc5266ccb
commit
1b321cbd4f
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:623286e06c8faad391c26786adac87f9e620b5a09781c61ecca37afea46ac7cf
|
|
||||||
size 6326580
|
|
3
gammu-1.32.0.tar.xz
Normal file
3
gammu-1.32.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1c0979affc17d92b81c39f4d35a1b213f2f56323bf261a07432b3f99124d5242
|
||||||
|
size 2072408
|
@ -1,3 +1,30 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 31 12:25:03 UTC 2012 - asterios.dramis@gmail.com
|
||||||
|
|
||||||
|
- Updated to 1.32.0:
|
||||||
|
* Fixed auto installation of EventLog registry.
|
||||||
|
* Improved support for Arduino GPRS shield (bug #1592).
|
||||||
|
* Fixed communication with Cross PD1101wi (bug #1617).
|
||||||
|
* Ignore another unknown block in Nokia phonebook (bug #1614).
|
||||||
|
* Do not encode number when setting up diverts.
|
||||||
|
From 1.31.90:
|
||||||
|
* Improved compatibility with ES75 (bug #1586).
|
||||||
|
* Changed API for call diverts.
|
||||||
|
* Added support for call diverts in Python API.
|
||||||
|
* AT backend supports manipulating with call diverts.
|
||||||
|
* Added support for suspending/resuming SMSD using SIGUSR1/2.
|
||||||
|
* Changed protocol for S60 applet.
|
||||||
|
* S60 applet now handles SMS with new lines.
|
||||||
|
* Improved support for Windows Event Log.
|
||||||
|
- Added xz as build requirement for openSUSE <= 12.1 (needed to unpack the
|
||||||
|
package sources).
|
||||||
|
- Don't install the init script "gammu-smsd" (doesn't work correctly out of the
|
||||||
|
box). Instead install it in the documentation.
|
||||||
|
- Build the package manual (html) for openSUSE > 11.4 (fails for <= 11.4 due to
|
||||||
|
python-sphinx). Added gnu-free-fonts, graphviz, graphviz-gd and python-Sphinx
|
||||||
|
build requirements for this. Added it in a separate subpackage (gammu-doc) to
|
||||||
|
fix rpmlint warning "package-with-huge-docs".
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 23 18:45:46 UTC 2011 - asterios.dramis@gmail.com
|
Fri Dec 23 18:45:46 UTC 2011 - asterios.dramis@gmail.com
|
||||||
|
|
||||||
|
114
gammu.spec
114
gammu.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gammu
|
# spec file for package gammu
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,14 +15,15 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: gammu
|
Name: gammu
|
||||||
Version: 1.31.0
|
Version: 1.32.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Mobile phone management utility
|
Summary: Mobile phone management utility
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
Group: Productivity/Telephony/Utilities
|
Group: Productivity/Telephony/Utilities
|
||||||
Url: http://wammu.eu/gammu/
|
Url: http://wammu.eu/gammu/
|
||||||
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
|
||||||
# PATCH-FIX-OPENSUSE gammu-smsd.lsb.patch asterios.dramis@gmail.com -- Fix rpmlint warnings "unknown-lsb-keyword" and "init-script-runlevel-4"
|
# 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
|
Patch0: gammu-smsd.lsb.patch
|
||||||
# Python location
|
# Python location
|
||||||
@ -84,6 +85,17 @@ BuildRequires: cmake
|
|||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
|
%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
|
||||||
%if 0%{?centos_version} || 0%{?rhel_version} || 0%{?rhel}
|
%if 0%{?centos_version} || 0%{?rhel_version} || 0%{?rhel}
|
||||||
BuildRequires: curl-devel
|
BuildRequires: curl-devel
|
||||||
%else
|
%else
|
||||||
@ -109,9 +121,15 @@ BuildRequires: pkg-config
|
|||||||
%else
|
%else
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: %{dist_bluez_libs}
|
||||||
|
%if 0%{?suse_version} > 1140
|
||||||
|
BuildRequires: python-Sphinx
|
||||||
|
%endif
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: unixODBC-devel
|
BuildRequires: unixODBC-devel
|
||||||
BuildRequires: %{dist_bluez_libs}
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
|
||||||
|
BuildRequires: xz
|
||||||
|
%endif
|
||||||
%if 0%{?suse_version} > 1130 || 0%{?mandriva_version} > 2010 || 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
%if 0%{?suse_version} > 1130 || 0%{?mandriva_version} > 2010 || 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
||||||
BuildRequires: %{dist_dbi_libs}
|
BuildRequires: %{dist_dbi_libs}
|
||||||
%endif
|
%endif
|
||||||
@ -119,6 +137,7 @@ BuildRequires: %{dist_postgres_libs}
|
|||||||
BuildRequires: %{dist_usb_libs}
|
BuildRequires: %{dist_usb_libs}
|
||||||
Requires: bluez
|
Requires: bluez
|
||||||
Requires: dialog
|
Requires: dialog
|
||||||
|
Recommends: gammu-doc
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -167,19 +186,19 @@ Currently supported phones include:
|
|||||||
|
|
||||||
This package contain files needed for development.
|
This package contain files needed for development.
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
%package smsd
|
%package smsd
|
||||||
Summary: SMS message daemon
|
Summary: SMS message daemon
|
||||||
Group: Hardware/Mobile
|
Group: Hardware/Mobile
|
||||||
%if 0%{?suse_version}
|
|
||||||
Requires(post): %insserv_prereq %fillup_prereq
|
|
||||||
Requires(preun): %insserv_prereq %fillup_prereq
|
|
||||||
Requires(postun): %insserv_prereq %fillup_prereq
|
|
||||||
%endif
|
|
||||||
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
|
||||||
Requires(post): chkconfig
|
|
||||||
Requires(preun): chkconfig
|
|
||||||
Requires(preun): initscripts
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description smsd
|
%description smsd
|
||||||
Gammu is command line utility and library to work with mobile phones
|
Gammu is command line utility and library to work with mobile phones
|
||||||
@ -247,8 +266,8 @@ This package contains the Gammu SMS daemon shared library.
|
|||||||
%package -n python-gammu
|
%package -n python-gammu
|
||||||
Summary: Python module to communicate with mobile phones
|
Summary: Python module to communicate with mobile phones
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Requires: python >= %{g_python_major_version}
|
|
||||||
Requires: python < %{g_python_major_version}.99
|
Requires: python < %{g_python_major_version}.99
|
||||||
|
Requires: python >= %{g_python_major_version}
|
||||||
%{?py_requires}
|
%{?py_requires}
|
||||||
|
|
||||||
%description -n python-gammu
|
%description -n python-gammu
|
||||||
@ -265,6 +284,7 @@ sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" gammu/gammu.c gammu-detect/main.c libga
|
|||||||
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
|
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
|
||||||
# Change permissions - Fix rpmlint warning "doc-file-dependency"
|
# Change permissions - Fix rpmlint warning "doc-file-dependency"
|
||||||
chmod 644 python/examples/*.py
|
chmod 644 python/examples/*.py
|
||||||
|
chmod 644 contrib/init/gammu-smsd.lsb
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build
|
mkdir build
|
||||||
@ -278,8 +298,12 @@ cmake ../ \
|
|||||||
-DINSTALL_DOC_DIR=%{gammu_docdir} \
|
-DINSTALL_DOC_DIR=%{gammu_docdir} \
|
||||||
-DINSTALL_LIB_DIR=%{_lib} \
|
-DINSTALL_LIB_DIR=%{_lib} \
|
||||||
-DINSTALL_LIBDATA_DIR=%{_lib} \
|
-DINSTALL_LIBDATA_DIR=%{_lib} \
|
||||||
-DINSTALL_LSB_INIT=ON
|
-DINSTALL_LSB_INIT=OFF \
|
||||||
|
-DINSTALL_UDEV_RULES=OFF
|
||||||
make %{?_smp_mflags} VERBOSE=1
|
make %{?_smp_mflags} VERBOSE=1
|
||||||
|
%if 0%{?suse_version} > 1140
|
||||||
|
make manual-html
|
||||||
|
%endif
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -296,19 +320,19 @@ cd build
|
|||||||
cd ..
|
cd ..
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Change permissions - Fix rpmlint warning "non-executable-script"
|
|
||||||
chmod 755 %{buildroot}%{_sysconfdir}/init.d/gammu-smsd
|
|
||||||
|
|
||||||
# rc-symlink for gammu-smsd
|
|
||||||
mkdir -p %{buildroot}%{_sbindir}
|
|
||||||
ln -sf ../../etc/init.d/gammu-smsd %{buildroot}%{_sbindir}/rcgammu-smsd
|
|
||||||
|
|
||||||
# Install config file
|
# Install config file
|
||||||
install -pm 0644 docs/config/smsdrc %{buildroot}%{_sysconfdir}/gammu-smsdrc
|
install -pm 0644 docs/config/smsdrc %{buildroot}%{_sysconfdir}/gammu-smsdrc
|
||||||
|
|
||||||
# Install additional doc files
|
# Install additional doc files
|
||||||
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}/
|
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}/
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
# Remove unneeded locales
|
# Remove unneeded locales
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} < 1140
|
%if 0%{?suse_version} && 0%{?suse_version} < 1140
|
||||||
rm -rf %{buildroot}%{_datadir}/locale/sw/
|
rm -rf %{buildroot}%{_datadir}/locale/sw/
|
||||||
@ -317,38 +341,6 @@ rm -rf %{buildroot}%{_datadir}/locale/sw/
|
|||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
%find_lang libgammu
|
%find_lang libgammu
|
||||||
|
|
||||||
%post smsd
|
|
||||||
%if 0%{?mandriva_version}
|
|
||||||
%_post_service gammu-smsd
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%fillup_and_insserv gammu-smsd
|
|
||||||
%endif
|
|
||||||
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
|
||||||
/sbin/chkconfig --add gammu-smsd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%preun smsd
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%stop_on_removal gammu-smsd
|
|
||||||
%endif
|
|
||||||
%if 0%{?mandriva_version}
|
|
||||||
%_preun_service gammu-smsd
|
|
||||||
%endif
|
|
||||||
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
|
||||||
if [ $1 = 0 ] ; then
|
|
||||||
/sbin/service gammu-smsd stop >/dev/null 2>&1
|
|
||||||
/sbin/chkconfig --del <script>
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
|
|
||||||
%postun smsd
|
|
||||||
%restart_on_update gammu-smsd
|
|
||||||
%insserv_cleanup
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%post -n libGammu7 -p /sbin/ldconfig
|
%post -n libGammu7 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libGammu7 -p /sbin/ldconfig
|
%postun -n libGammu7 -p /sbin/ldconfig
|
||||||
@ -365,6 +357,9 @@ fi
|
|||||||
%{_bindir}/gammu-detect
|
%{_bindir}/gammu-detect
|
||||||
%{_bindir}/jadmaker
|
%{_bindir}/jadmaker
|
||||||
%doc %{gammu_docdir}
|
%doc %{gammu_docdir}
|
||||||
|
%if 0%{?suse_version} > 1140
|
||||||
|
%exclude %{gammu_docdir}/manual/
|
||||||
|
%endif
|
||||||
%{_datadir}/gammu/
|
%{_datadir}/gammu/
|
||||||
%doc %{_mandir}/man1/gammu-config.1*
|
%doc %{_mandir}/man1/gammu-config.1*
|
||||||
%doc %{_mandir}/man1/gammu-detect.1*
|
%doc %{_mandir}/man1/gammu-detect.1*
|
||||||
@ -381,14 +376,19 @@ fi
|
|||||||
%{_libdir}/pkgconfig/gammu-smsd.pc
|
%{_libdir}/pkgconfig/gammu-smsd.pc
|
||||||
%{_libdir}/pkgconfig/gammu.pc
|
%{_libdir}/pkgconfig/gammu.pc
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1140
|
||||||
|
%files doc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc %{gammu_docdir}/manual/
|
||||||
|
%endif
|
||||||
|
|
||||||
%files smsd
|
%files smsd
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%doc contrib/init/gammu-smsd.lsb
|
||||||
%config %{_sysconfdir}/gammu-smsdrc
|
%config %{_sysconfdir}/gammu-smsdrc
|
||||||
%config %{_sysconfdir}/init.d/gammu-smsd
|
|
||||||
%{_bindir}/gammu-smsd
|
%{_bindir}/gammu-smsd
|
||||||
%{_bindir}/gammu-smsd-inject
|
%{_bindir}/gammu-smsd-inject
|
||||||
%{_bindir}/gammu-smsd-monitor
|
%{_bindir}/gammu-smsd-monitor
|
||||||
%{_sbindir}/rcgammu-smsd
|
|
||||||
%doc %{_mandir}/man1/gammu-smsd-inject.1*
|
%doc %{_mandir}/man1/gammu-smsd-inject.1*
|
||||||
%doc %{_mandir}/man1/gammu-smsd-monitor.1*
|
%doc %{_mandir}/man1/gammu-smsd-monitor.1*
|
||||||
%doc %{_mandir}/man1/gammu-smsd.1*
|
%doc %{_mandir}/man1/gammu-smsd.1*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user