]> git.pld-linux.org Git - packages/gammu.git/blobdiff - gammu.spec
- up to 1.36.5
[packages/gammu.git] / gammu.spec
index 71f2ccf211bf27de8a1ab2162e3b3b6876f7479f..c5ab0799f3d629f7dc667ae6f754fefc87397357 100644 (file)
@@ -1,26 +1,26 @@
+# TODO: gammu-smsd-inject should be in seperate package
 Summary:       Tool suite for mobile phones
 Summary(pl.UTF-8):     Zestaw narzędzi do telefonów komórkowych
 Name:          gammu
-Version:       1.31.0
-Release:       1
+Version:       1.36.2
+Release:       2
 Epoch:         1
 License:       GPL v2+
 Group:         Applications/Communications
 Source0:       http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.xz
-# Source0-md5: 6983485c0ad0873f028da6c6e2039fa7
+# Source0-md5: 60702f67a756b058706995824f40016a
 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
 BuildRequires: curl-devel
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
 BuildRequires: mysql-devel
 BuildRequires: postgresql-devel
-BuildRequires: python-devel >= 1:2.5
-BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.600
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz >= 1:4.999.7
@@ -92,19 +92,6 @@ 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
@@ -123,6 +110,9 @@ Summary(pl.UTF-8):  bashowe uzupełnianie nazw dla gammu
 Group:         Applications/Shells
 Requires:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      bash-completion
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description -n bash-completion-gammu
 This package provides bash-completion for gammu.
@@ -141,21 +131,20 @@ cd build
 %cmake .. \
        -DBUILD_SHARED_LIBS=OFF \
        -DINSTALL_LIB_DIR=%{_lib} \
-       -DINSTALL_LIBDATA_DIR=%{_libdir} \
-       -DBUILD_PYTHON=%{_bindir}/python%{py_ver}
+       -DINSTALL_LIBDATA_DIR=%{_libdir}
 %{__make}
 mv libgammu/libGammu.a ..
 mv smsd/libgsmsd.a ..
 %cmake .. \
        -DBUILD_SHARED_LIBS=ON \
        -DINSTALL_LIB_DIR=%{_lib} \
-       -DINSTALL_LIBDATA_DIR=%{_libdir} \
-       -DBUILD_PYTHON=%{_bindir}/python%{py_ver}
+       -DINSTALL_LIBDATA_DIR=%{_libdir}
 %{__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
@@ -171,6 +160,8 @@ 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
 
@@ -207,12 +198,13 @@ fi
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README README.Python docs/manual/Gammu.htm
+%doc AUTHORS ChangeLog 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}
+%{_datadir}/gammu
 %{_mandir}/man[157]/*
 
 %files smsd
@@ -224,6 +216,7 @@ fi
 %attr(754,root,root) /etc/rc.d/init.d/%{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
 
@@ -231,8 +224,8 @@ fi
 %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.?
+%attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.7
+%attr(755,root,root) %ghost %{_libdir}/libGammu.so.7
 
 %files devel
 %defattr(644,root,root,755)
@@ -240,17 +233,9 @@ fi
 %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
This page took 0.050539 seconds and 4 git commands to generate.