SPECS: gammu.spec - upgraded to 1.11.92, - switched from autoconf ...

gotar gotar at pld-linux.org
Fri Jun 8 14:01:45 CEST 2007


Author: gotar                        Date: Fri Jun  8 12:01:45 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- upgraded to 1.11.92,
- switched from autoconf to cmake (why there's no R: libbluetooth.so.2 in
  libs subpackage?),
- fixed descriptions

---- Files affected:
SPECS:
   gammu.spec (1.51 -> 1.52) 

---- Diffs:

================================================================
Index: SPECS/gammu.spec
diff -u SPECS/gammu.spec:1.51 SPECS/gammu.spec:1.52
--- SPECS/gammu.spec:1.51	Sun May 27 22:08:44 2007
+++ SPECS/gammu.spec	Fri Jun  8 14:01:40 2007
@@ -2,19 +2,18 @@
 Summary:	GNU tool suite for mobile phones
 Summary(pl.UTF-8):	Zestaw narzędzi GNU dla telefonów komórkowych
 Name:		gammu
-Version:	1.11.0
+Version:	1.11.92
 Release:	1
 Epoch:		1
 License:	GPL v2
 Group:		Applications/Communications
 Source0:	http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2
-# Source0-md5:	7b46148677ba82dd2f4eca749bc9e975
+# Source0-md5:	01f34c88bd2559f243ae51905fd9fdc3
 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:	cmake
 BuildRequires:	gettext-devel
 BuildRequires:	mysql-devel
 BuildRequires:	postgresql-devel
@@ -62,7 +61,7 @@
 %description libs
 Gammu tool suite library.
 
-%description devel -l pl.UTF-8
+%description libs -l pl.UTF-8
 Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
 
 %package static
@@ -74,46 +73,43 @@
 %description static
 Gammu static library.
 
-%description devel -l pl.UTF-8
+%description static -l pl.UTF-8
 Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
 
 %prep
 %setup -q
 #%patch0 -p1
 %patch1 -p1
-%patch2 -p1
-cp -f VERSION cfg/autoconf/VERSION
-mv docs/user/gammu.1 .
 
 %build
-cd cfg/autoconf
-%{__autoconf}
-%configure \
-	--disable-static \
-	--without-rpmdir \
-	--enable-cb \
-	--enable-7110incoming \
-	--enable-6210calendar \
-	--with-localedir=%{_datadir}/%{name}
-cd ../..
-%{__make} shared
+mkdir -p build
+cd build
+%cmake ../ \
+	-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
+	-DENABLE_SHARED=OFF \
+	%{?debug:-DCMAKE_BUILD_TYPE="Debug"}
+%{__make}
+mv common/libGammu.a ..
+%cmake ../ \
+	-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
+	-DENABLE_SHARED=ON \
+	%{?debug:-DCMAKE_BUILD_TYPE="Debug"}
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version},%{_datadir}/%{name}}
-%{__make} installlibonly installlocales \
-	DESTDIR=$RPM_BUILD_ROOT \
-	prefix=%{_prefix} \
-	INSTALL_LIB_DIR=%{_libdir} \
-	INSTALL_MAN_DIR=%{_mandir}/man1 \
-	FIND=find
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
+cd build
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+cd ..
 
-install -D gammu.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
 install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
 cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install libGammu.a $RPM_BUILD_ROOT%{_libdir}
 %find_lang %{name}
 cd $RPM_BUILD_ROOT%{_libdir}
-ln -sf libGammu.so.1.0 libGammu.so
+ln -sf libGammu.so.1.11.92 libGammu.so
 
 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
 
@@ -136,6 +132,7 @@
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}-config
 %{_libdir}/*.so
 %{_includedir}/*
 %{_pkgconfigdir}/*
@@ -154,6 +151,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.52  2007/06/08 12:01:40  gotar
+- upgraded to 1.11.92,
+- switched from autoconf to cmake (why there's no R: libbluetooth.so.2 in
+  libs subpackage?),
+- fixed descriptions
+
 Revision 1.51  2007/05/27 20:08:44  blekot
 - up to 1.11.0
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gammu.spec?r1=1.51&r2=1.52&f=u



More information about the pld-cvs-commit mailing list