]> git.pld-linux.org Git - packages/gammu.git/blobdiff - gammu.spec
- release 3
[packages/gammu.git] / gammu.spec
index 62b34d89b790b2a58da8b98fbbbc15a8f85a29ed..54f596d56a43ae863a2c98dc5f0538189fe54a76 100644 (file)
@@ -1,16 +1,18 @@
 Summary:       Tool suite for mobile phones
 Summary(pl.UTF-8):     Zestaw narzędzi do telefonów komórkowych
 Name:          gammu
-Version:       1.27.0
-Release:       2
+Version:       1.31.0
+Release:       3
 Epoch:         1
 License:       GPL v2+
 Group:         Applications/Communications
-Source0:       http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2
-# Source0-md5: 320f2a6fa5e0510cc5200f9bef15f92e
+Source0:       http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.xz
+# Source0-md5: 6983485c0ad0873f028da6c6e2039fa7
 Source1:       %{name}-smsd.init
 Source2:       %{name}-smsd.sysconfig
+Source3:       %{name}.tmpfiles
 Patch0:                %{name}-etc_dir.patch
+Patch1:                %{name}-werror.patch
 URL:           http://www.gammu.org/
 BuildRequires: bluez-libs-devel
 BuildRequires: cmake >= 2.4.6
@@ -20,7 +22,9 @@ BuildRequires:        mysql-devel
 BuildRequires: postgresql-devel
 BuildRequires: python-devel >= 1:2.5
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.293
+BuildRequires: rpmbuild(macros) >= 1.600
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz >= 1:4.999.7
 Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
 Suggests:      %{name}-smsd = %{epoch}:%{version}-%{release}
 Provides:      mygnokii2
@@ -59,12 +63,11 @@ messages enqueued in this storage. It is perfect tool for managing big
 amounts of received or sent messages and automatically process them.
 
 %description smsd -l pl.UTF-8
-Demon SMS Gammu jest programem, któr okresowo sprawdza czy modem GSM
-odebrał jakieś wiadomości, przechowuje je w zdefiniowanym 
-zasobie a także wysyła wiadomości skolejkowane w tym zasobie.
-Jest idealnym narzędziem do zarządzania dużą ilością
-otrzymanych lub wysyłanych wiadomości i atomatycznego
-przetwarzania ich.
+Demon SMS Gammu jest programem, który okresowo sprawdza czy modem GSM
+odebrał jakieś wiadomości, przechowuje je w zdefiniowanym zasobie a
+także wysyła wiadomości skolejkowane w tym zasobie. Jest idealnym
+narzędziem do zarządzania dużą ilością otrzymanych lub wysyłanych
+wiadomości i automatycznego przetwarzania ich.
 
 %package libs
 Summary:       Gammu library
@@ -131,38 +134,36 @@ Pakiet ten dostarcza bashowe uzupełnianie nazw dla gammu.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 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"}
+       -DBUILD_PYTHON=%{_bindir}/python%{py_ver}
 %{__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"}
+       -DBUILD_PYTHON=%{_bindir}/python%{py_ver}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}} \
+       $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
 
 %{__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}
+#cp -r docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 install libGammu.a $RPM_BUILD_ROOT%{_libdir}
 install libgsmsd.a $RPM_BUILD_ROOT%{_libdir}
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-smsd $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
@@ -172,10 +173,12 @@ cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-smsd
 install -d $RPM_BUILD_ROOT/%{_varrun}/%{name}-smsd
 install -d $RPM_BUILD_ROOT/%{_sharedstatedir}/%{name}-smsd
 
+install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
+
 %find_lang %{name}
 %find_lang libgammu
 
-rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
 
 # for rpm autodeps
 chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
@@ -208,24 +211,24 @@ fi
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS BUGS ChangeLog docs/user/gammu.html docs/user/readme.html README README.Python SUPPORTERS
-%doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt
+%doc AUTHORS ChangeLog README README.Python docs/manual/Gammu.htm
 %attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_bindir}/%{name}-detect
 %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 smsd
-%defattr(640,root,root,750)
+%defattr(644,root,root,755)
 %doc docs/sql/*.sql
 %attr(755,root,root) %{_bindir}/gammu-smsd
 %attr(755,root,root) %{_bindir}/gammu-smsd-inject
 %attr(755,root,root) %{_bindir}/gammu-smsd-monitor
 %attr(754,root,root) /etc/rc.d/init.d/%{name}-smsd
-%config(noreplace) /etc/sysconfig/%{name}-smsd
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}-smsd
 %{_sysconfdir}/%{name}-smsd
+/usr/lib/tmpfiles.d/%{name}.conf
 %attr(750,root,gammu-smsd) %{_varrun}/%{name}-smsd
 %attr(750,gammu-smsd,gammu-smsd) %{_sharedstatedir}/%{name}-smsd
 
This page took 0.036771 seconds and 4 git commands to generate.