]> git.pld-linux.org Git - packages/gammu.git/blobdiff - gammu.spec
- 1.27.95
[packages/gammu.git] / gammu.spec
index 0fd22d823ae0d5f8736b46dfd092be99603875dd..ebb623d1bb9276166843003611cd0c8b6f014211 100644 (file)
@@ -1,21 +1,25 @@
-%define         major   0
-%define         minor   92
-%define         rel    0
-
-Summary:       Linux/Unix tool suite for Nokia mobile phones
-Summary(pl):   Linuksowy/Uniksowy zestaw narzêdzi dla telefonów komórkowych Nokia
+Summary:       Tool suite for mobile phones
+Summary(pl.UTF-8):     Zestaw narzędzi do telefonów komórkowych
 Name:          gammu
-Version:       %{major}.%{minor}.{rel}
-Release:       1
+Version:       1.27.95
+Release:       0.beta.1
 Epoch:         1
-License:       GPL v2
+License:       GPL v2+
 Group:         Applications/Communications
-Source0:       http://www.mwiacek.com/zips/gsm/%{name}/older/%{name}-%{major}.%{minor}.%{rel}.tar.gz
-# Source0-md5: dba30fe8fded818508a065ca10519bf6
+Source0:       http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2
+# Source0-md5: e835ec39c141a7bb4bd8cb5f238bc4ff
 Patch0:                %{name}-etc_dir.patch
-URL:           http://www.mwiacek.com/english/gsm/gammu/gammu.html
-BuildRequires: autoconf
+URL:           http://www.gammu.org/
 BuildRequires: bluez-libs-devel
+BuildRequires: cmake >= 2.4.6
+BuildRequires: curl-devel
+BuildRequires: gettext-devel
+BuildRequires: mysql-devel
+BuildRequires: postgresql-devel
+BuildRequires: python-devel >= 1:2.5
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.293
+Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
 Provides:      mygnokii2
 Obsoletes:     mygnokii2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -29,44 +33,173 @@ 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
-Gammu (poprzednio znany jako MyGnokii2) jest narzêdziem do zarz±dzania
-ró¿nymi telefonami komórkowymi i modemami. Aktualnie obs³uguje Nokie
+%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.
+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 -n python-gammu
+Summary:       Python bingings for Gammu library
+Summary(pl.UTF-8):     Wiązania języka Python dla biblioteki Gammu
+Group:         Development/Languages/Python
+Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
+%pyrequires_eq python-modules
+
+%description -n python-gammu
+Python bingings for Gammu library.
+
+%description -n python-gammu -l pl.UTF-8
+Wiązania języka Python dla biblioteki 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.
+
+%package -n bash-completion-gammu
+Summary:       bash-completion for gammu
+Summary(pl.UTF-8):     bashowe uzupełnianie nazw dla gammu
+Group:         Applications/Shells
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      bash-completion
+
+%description -n bash-completion-gammu
+This package provides bash-completion for gammu.
+
+%description -n bash-completion-gammu -l pl.UTF-8
+Pakiet ten dostarcza bashowe uzupełnianie nazw dla gammu.
 
 %prep
-%setup -q -n %{name}-%{major}.%{minor}.%{rel}
-#%patch0 -p1
+%setup -q
+%patch0 -p1
 
 %build
-cd cfg/autoconf
-%{__autoconf}
-%configure
-cd ../..
+mkdir -p build
+cd build
+%cmake .. \
+       -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
+       -DCMAKE_VERBOSE_MAKEFILE=ON \
+       -DBUILD_SHARED_LIBS=OFF \
+       -DINSTALL_LIB_DIR=%{_lib} \
+       -DINSTALL_LIBDATA_DIR=%{_libdir} \
+       %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
+%{__make}
+mv libgammu/libGammu.a ..
+mv smsd/libgsmsd.a ..
+%cmake .. \
+       -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
+       -DCMAKE_VERBOSE_MAKEFILE=ON \
+       -DBUILD_SHARED_LIBS=ON \
+       -DINSTALL_LIB_DIR=%{_lib} \
+       -DINSTALL_LIBDATA_DIR=%{_libdir} \
+       %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_examplesdir}/%{name},%{_sysconfdir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
+
+%{__make} -C build install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install docs/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
+cp -r docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install libGammu.a $RPM_BUILD_ROOT%{_libdir}
+install libgsmsd.a $RPM_BUILD_ROOT%{_libdir}
+
+%find_lang %{name}
+%find_lang libgammu
 
-install %{name}/%{name} $RPM_BUILD_ROOT%{_bindir}
-install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
-mv -f docs/docs/english/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
-mv -f docs/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}
-mv -f docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
+
+# for rpm autodeps
+chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
 
 %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 AUTHORS BUGS ChangeLog docs/user/gammu.html docs/user/gammu.html README README.Python
+%doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt
 %attr(755,root,root) %{_bindir}/%{name}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gammurc
-%{_examplesdir}/%{name}
-%{_mandir}/man1/*.1*
+%attr(755,root,root) %{_bindir}/gammu-smsd
+%attr(755,root,root) %{_bindir}/gammu-smsd-inject
+%attr(755,root,root) %{_bindir}/gammu-smsd-monitor
+%attr(755,root,root) %{_bindir}/jadmaker
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
+%{_examplesdir}/%{name}-%{version}
+%{_mandir}/man[157]/*
+%lang(cs) %{_mandir}/cs/man[157]/*
+
+%files libs -f libgammu.lang
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libGammu.so.*.*
+%attr(755,root,root) %{_libdir}/libgsmsd.so.*.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.?
+%attr(755,root,root) %ghost %{_libdir}/libGammu.so.?
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}-config
+%attr(755,root,root) %{_libdir}/libGammu.so
+%attr(755,root,root) %{_libdir}/libgsmsd.so
+%{_includedir}/*
+%dir %{py_sitedir}/gammu/
+%attr(755,root,root) %{py_sitedir}/gammu/_gammu.so
+%{_pkgconfigdir}/gammu.pc
+%{_pkgconfigdir}/gammu-smsd.pc
+
+%files -n python-gammu
+%defattr(644,root,root,755)
+%dir %{py_sitedir}/gammu
+%attr(755,root,root) %{py_sitedir}/gammu/*.so
+%{py_sitedir}/gammu/*.py
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgsmsd.a
+%{_libdir}/libGammu.a
+
+%files -n bash-completion-gammu
+%defattr(644,root,root,755)
+%{_sysconfdir}/bash_completion.d/gammu
This page took 0.118312 seconds and 4 git commands to generate.