]> git.pld-linux.org Git - packages/gammu.git/blobdiff - gammu.spec
- macros for cmake
[packages/gammu.git] / gammu.spec
index 63cc013e1357a609aa3ec344895a8f8b1b77ed23..d66c5ade4f2e16944b31dd2ea336346322b445ce 100644 (file)
-Summary:       Linux/Unix tool suite for Nokia mobile phones
-Summary(pl):   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:       0.64
+Version:       1.12.92
 Release:       1
 Epoch:         1
 License:       GPL v2
 Group:         Applications/Communications
-Source0:       http://www.mwiacek.com/english/zips/%{name}.tar.gz
-URL:           http://www.mwiacek.com/english/gsm/gammu/gammu.html
-BuildRequires: autoconf
-BuildRequires: automake
+Source0:       http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2
+# Source0-md5: 5bcb87a39e9004c654e080bf8df7cd43
+Patch0:                %{name}-etc_dir.patch
+URL:           http://www.gammu.org/
+BuildRequires: bluez-libs-devel
+BuildRequires: cmake
+BuildRequires: gettext-devel
+BuildRequires: mysql-devel
+BuildRequires: postgresql-devel
+BuildRequires: rpmbuild(macros) >= 1.293
+Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
 Provides:      mygnokii2
 Obsoletes:     mygnokii2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Gammu (formerly known as MyGnokii2) is cellular manager for various
-mobile phones and modems. It currently supports Nokia 3210, 33xx, 3410,
-3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx, 8310, 9110,
-and 9210, and AT devices (such as Siemens, Alcatel, WaveCom, IPAQ, and
-other). It has a command line version with many functions for ringtones,
-phonebook, SMS, logos, WAP, date/time, alarm, calls, etc. It can also
-make full backups and restore them.
+mobile phones and modems. It currently supports Nokia 3210, 33xx,
+3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
+8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
+WaveCom, IPAQ, and other). It has a command line version with many
+functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
+calls, etc. It can also make full backups and restore them.
+
+%description -l pl.UTF-8
+Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania
+różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie
+3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
+82xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens,
+Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z
+wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo,
+WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
+kopie zapasowe danych i odtwarzać je.
+
+%package libs
+Summary:       Gammu library
+Summary(pl.UTF-8):     Biblioteka Gammu
+Group:         Libraries
+
+%description libs
+Gammu tool suite library.
+
+%description libs -l pl.UTF-8
+Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
+
+%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}-libs = %{epoch}:%{version}-%{release}
+Requires:      bluez-libs-devel
+
+%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 static
+Summary:       Gammu static library
+Summary(pl.UTF-8):     Biblioteka statyczna Gammu
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
+
+%description static
+Gammu static library.
+
+%description static -l pl.UTF-8
+Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
 
 %prep
-%setup -q -n %{name}
+%setup -q
+#%patch0 -p1
 
 %build
+mkdir -p build
+cd build
+%cmake ../ \
+       -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
+       -DCMAKE_VERBOSE_MAKEFILE=1 \
+       -DENABLE_SHARED=OFF \
+       -DINSTALL_LIB_DIR=%{_libdir} \
+       %{?debug:-DCMAKE_BUILD_TYPE="Debug"} 
+%{__make}
+mv common/libGammu.a ..
+%cmake ../ \
+       -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
+       -DCMAKE_VERBOSE_MAKEFILE=1 \
+       -DENABLE_SHARED=ON \
+       -DINSTALL_LIB_DIR=%{_libdir} \
+       %{?debug:-DCMAKE_BUILD_TYPE="Debug"}  
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1/,%{_prefix}/src/examples,%{name}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
+
+%{__make} -C build install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-install %{name}/%{name} $RPM_BUILD_ROOT%{_bindir}
-mv -f docs/docs/english/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/
-mv -f docs/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}
-mv -f docs/default $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+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}
+
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%post   libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc changelog docs/* readme.txt
+%doc ChangeLog docs/user/gammu.htm docs/user/readme.htm other/bash README SUPPORTERS
+%doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt
 %attr(755,root,root) %{_bindir}/%{name}
-%{_examplesdir}/%{name}
-%{_mandir}/man1/*.1*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
+%{_examplesdir}/%{name}-%{version}
+%{_mandir}/man1/*
+
+%files libs
+%defattr(755,root,root,755)
+%attr(755,root,root) %{_libdir}/libGammu.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libGammu.so.2
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}-config
+%attr(755,root,root) %{_libdir}/libGammu.so
+%{_includedir}/*
+%{_pkgconfigdir}/gammu.pc
+
+%files static
+%defattr(755,root,root,755)
+%{_libdir}/libGammu.a
This page took 0.038405 seconds and 4 git commands to generate.