Cześć
Po wprowadzeniu zmian na podstawie Waszych uwag, załączam finalne wersje SPECy
i patchy. Jeśli nie ma więcej uwag, prosiłbym o dodanie do CVS.
Pozdrawiam
Beorn
--
Daniel 'Beorn' Mróz <[EMAIL PROTECTED]> http://127.0.0.1/beorn
[GIT d s:- a-@ C++++ UL++++$ P+ L++++ E--- W+ N+++ o? K- w---]
[O- M- V! PS+ PE++ Y+ PGP++ t- 5 X R !tv b+ DI D++ G++ e h*]
[ r++ y+ ]
--- gammu.spec.orig 2007-02-26 12:20:39.475546750 +0100
+++ gammu.spec 2007-02-26 17:14:27.237213000 +0100
@@ -1,22 +1,25 @@
# $Revision: 1.44 $, $Date: 2007/02/13 07:16:44 $
-Summary: Linux/Unix tool suite for Nokia mobile phones
-Summary(pl.UTF-8): Linuksowy/uniksowy zestaw narzędzi dla telefonów komórkowych Nokia
+Summary: GNU tool suite for mobile phones
+Summary(pl.UTF-8): Zestaw narzędzi GNU dla telefonów komórkowych
Name: gammu
-Version: 1.07.00
+Version: 1.10.0
Release: 1
Epoch: 1
License: GPL v2
Group: Applications/Communications
-Source0: http://www.mwiacek.com/zips/gsm/gammu/stable/1_0x/%{name}-%{version}.tar.gz
-# Source0-md5: b706e35a6f003acc47f8c2bb71fa8036
+Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2
+# Source0-md5: 05b623c30cfd69ea97f0bc054b19928d
Patch0: %{name}-etc_dir.patch
Patch1: %{name}-no_nss.patch
+Patch2: %{name}-libpq_dir.patch
URL: http://www.gammu.org/
BuildRequires: autoconf
BuildRequires: bluez-libs-devel
BuildRequires: mysql-devel
+BuildRequires: postgresql-devel
Provides: mygnokii2
Obsoletes: mygnokii2
+Requires: %{name}-libs = %{epoch}:%{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -38,11 +41,47 @@
WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
kopie zapasowe danych i odtwarzać je.
+%package devel
+Summary: Header files for Gammu tool suite for mobile phones
+Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description devel
+Header files for Gammu tool suite for mobile phones.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu.
+
+%package libs
+Summary: Gammu library
+Summary(pl.UTF-8): Biblioteka Gammu
+Group: Libraries
+
+%description libs
+Gammu tool suite library.
+
+%description devel -l pl.UTF-8
+Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
+
+%package static
+Summary: Gammu static library
+Summary(pl.UTF-8): Biblioteka statyczna Gammu
+Group: Development/Libraries
+Requires: %{name}-libs = %{epoch}:%{version}-%{release}
+
+%description static
+Gammu static library.
+
+%description devel -l pl.UTF-8
+Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
+
%prep
%setup -q
#%patch0 -p1
%patch1 -p1
-cp -f version cfg/autoconf/VERSION
+%patch2 -p1
+cp -f VERSION cfg/autoconf/VERSION
mv docs/docs/english/gammu.1 .
%build
@@ -61,7 +100,7 @@
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version},%{_datadir}/%{name}}
-%{__make} installlocales installlibonly \
+%{__make} installlibonly \
DESTDIR=$RPM_BUILD_ROOT \
prefix=%{_prefix} \
INSTALL_LIB_DIR=%{_libdir} \
@@ -70,36 +109,52 @@
install -D gammu.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
+install docs/docs/locale/*.txt $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cd $RPM_BUILD_ROOT%{_libdir}
+ln -sf libGammu.so.1.0 libGammu.so
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
-# anybody feels like developing gammu-based apps?
-rm -rf $RPM_BUILD_ROOT{%{_includedir},%{_libdir}/{*.{so,a},pkgconfig}}
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%if %{with ldconfig}
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+%endif
%files
%defattr(644,root,root,755)
-%doc changelog docs/docs/english/gammu.htm other/bash readme.txt
+%doc ChangeLog docs/docs/english/gammu.htm other/bash README
%doc %lang(it) docs/docs/italian
%attr(755,root,root) %{_bindir}/%{name}
-%attr(755,root,root) %{_libdir}/*.so.*
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
%dir %{_datadir}/%{name}
-%lang(cs) %{_datadir}/gammu/gammu_cs.txt
-%lang(de) %{_datadir}/gammu/gammu_de.txt
-%lang(es) %{_datadir}/gammu/gammu_es.txt
-%lang(it) %{_datadir}/gammu/gammu_it.txt
-%lang(pl) %{_datadir}/gammu/gammu_pl.txt
-%lang(ru) %{_datadir}/gammu/gammu_ru.txt
-%{_datadir}/gammu/gammu_us.txt
+%lang(cs) %{_datadir}/%{name}/gammu_cs.txt
+%lang(de) %{_datadir}/%{name}/gammu_de.txt
+%lang(es) %{_datadir}/%{name}/gammu_es.txt
+%lang(it) %{_datadir}/%{name}/gammu_it.txt
+%lang(pl) %{_datadir}/%{name}/gammu_pl.txt
+%lang(ru) %{_datadir}/%{name}/gammu_ru.txt
+%{_datadir}/%{name}/gammu_us.txt
%{_examplesdir}/%{name}-%{version}
%{_mandir}/man1/*
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/*.so
+%{_includedir}/*
+%{_pkgconfigdir}/*
+
+%files libs
+%defattr(755,root,root,755)
+%{_libdir}/*.so.*
+
+%files static
+%defattr(755,root,root,755)
+%{_libdir}/*.a
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <[EMAIL PROTECTED]>
# $Revision:$, $Date:$
Summary: Python bingings for Gammu library
Summary(pl.UTF-8): Wiązania języka Python dla biblioteki Gammu
Name: python-gammu
Version: 0.19
Release: 1
License: GPL
Group: Development/Languages/Python
Source0: http://dl.cihar.com/python-gammu/latest/%{name}-%{version}.tar.bz2
# Source0-md5: ad967c35b6398545d4358d3f9915ef50
URL: http://icepick.info/
BuildRequires: python-devel
BuildRequires: rpm-pythonprov
BuildRequires: gammu-devel >= 1:1.10.0-0.1
BuildRequires: pkgconfig >= 0.21-2
%pyrequires_eq python-modules
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires: gammu-libs >= 1:1.10.0-0.1
%description
Python bingings for Gammu library.
%description -l pl.UTF-8
Wiązania języka Python dla biblioteki Gammu.
%prep
%setup -q
%build
find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
#find $RPM_BUILD_ROOT%{py_sitedir} -type f -name "*.py" | xargs rm
cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README NEWS AUTHORS
%attr(755,root,root) %{py_sitedir}/gammu.so
%{_examplesdir}/%{name}-%{version}/
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <[EMAIL PROTECTED]>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log:$--- gammu-1.09.19/gammu/smsd/smsdcore.h.orig 2007-02-06 17:36:07.000000000 +0100
+++ gammu-1.09.19/gammu/smsd/smsdcore.h 2007-02-15 12:45:03.073571004 +0100
@@ -13,11 +13,7 @@
#endif
#ifdef HAVE_POSTGRESQL_LIBPQ_FE_H
-#ifdef WIN32
-# include <libpq-fe.h>
-#else
-# include <postgresql/libpq-fe.h>
-#endif
+# include <libpq-fe.h>
#endif
#include "../../common/service/sms/gsmsms.h"
--- gammu-1.09.19/cfg/Makefile.cfg.orig 2007-02-15 12:24:48.253571004 +0100
+++ gammu-1.09.19/cfg/Makefile.cfg 2007-02-15 12:25:41.713571004 +0100
@@ -19,7 +19,7 @@
CC = gcc
CFLAGS = -g -O0 -fPIC -Wall -Wno-format-y2k
GAMMU_CFLAGS = -pthread
-LDLIBS = -lm -lbluetooth
+LDLIBS = -lmysqlclient -lz -lcrypt -lm -pthread -lbluetooth
GAMMU_LIBS = -pthread
SMSD_LIBS = -L/usr/lib/mysql -lmysqlclient -L/usr/lib -lpq
INSTALL = /usr/bin/install
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl