]> git.pld-linux.org Git - packages/gammu.git/commitdiff
- upgraded to 1.11.92,
authorTomasz Pala <gotar@pld-linux.org>
Fri, 8 Jun 2007 12:01:40 +0000 (12:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- switched from autoconf to cmake (why there's no R: libbluetooth.so.2 in
  libs subpackage?),
- fixed descriptions

Changed files:
    gammu.spec -> 1.52

gammu.spec

index 3d7dfdfc9477e2787d146d4755b98542151d503b..0cdbbba14f44b4044f927a294a9597f67569ad40 100644 (file)
@@ -1,19 +1,18 @@
 Summary:       GNU tool suite for mobile phones
 Summary(pl.UTF-8):     Zestaw narzędzi GNU dla telefonów komórkowych
 Name:          gammu
 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
 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
 Patch0:                %{name}-etc_dir.patch
 Patch1:                %{name}-no_nss.patch
-Patch2:                %{name}-libpq_dir.patch
 URL:           http://www.gammu.org/
 URL:           http://www.gammu.org/
-BuildRequires: autoconf
 BuildRequires: bluez-libs-devel
 BuildRequires: bluez-libs-devel
+BuildRequires: cmake
 BuildRequires: gettext-devel
 BuildRequires: mysql-devel
 BuildRequires: postgresql-devel
 BuildRequires: gettext-devel
 BuildRequires: mysql-devel
 BuildRequires: postgresql-devel
@@ -61,7 +60,7 @@ Group:                Libraries
 %description libs
 Gammu tool suite library.
 
 %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
 Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
 
 %package static
@@ -73,46 +72,43 @@ Requires:   %{name}-libs = %{epoch}:%{version}-%{release}
 %description static
 Gammu static library.
 
 %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
 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
 
 %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
 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 gammu.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
+cd build
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+cd ..
+
 install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
 cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 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}
 %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}
 
 
 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
 
@@ -135,6 +131,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}-config
 %{_libdir}/*.so
 %{_includedir}/*
 %{_pkgconfigdir}/*
 %{_libdir}/*.so
 %{_includedir}/*
 %{_pkgconfigdir}/*
This page took 0.0339660000000001 seconds and 4 git commands to generate.