[packages/python-gammu] - initial - please review

zawadaa zawadaa at pld-linux.org
Sun Jun 21 21:22:50 CEST 2015


commit 52e29253f9775c247c00c664457185bc3ff67f91
Author: Andrzej Zawadzki <zawadaa at pld-linux.org>
Date:   Sun Jun 21 21:22:24 2015 +0200

    - initial - please review

 python-gammu.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
---
diff --git a/python-gammu.spec b/python-gammu.spec
new file mode 100644
index 0000000..730e508
--- /dev/null
+++ b/python-gammu.spec
@@ -0,0 +1,53 @@
+%define 	module	python-gammu
+Summary:	Python bindings for Gammu library.
+Name:		%{module}
+Version:	2.3
+Release:	1
+License:	GPL v2
+Group:		Development/Languages/Python
+Source0:	http://dl.cihar.com/python-gammu/%{module}-%{version}.tar.bz2
+# Source0-md5:	e92b13cb6fa9681c48981340ffadd251
+URL:		http://http://wammu.eu/python-gammu/
+BuildRequires:	gammu-devel >= 1.34.0
+BuildRequires:	python-devel
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	glibc >= 2.4
+Requires:	python-modules
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python bindings for Gammu library.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+export CFLAGS="%{rpmcflags}"
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+install examples/data/*.* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/data
+install examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+#install examples/data/*.* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/data
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%dir %{py_sitedir}/gammu
+%attr(755,root,root) %{py_sitedir}/gammu/*.so
+%{py_sitedir}/gammu/*.py[co]
+%{py_sitedir}/python_gammu-%{version}-py*.egg-info
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-gammu.git/commitdiff/52e29253f9775c247c00c664457185bc3ff67f91



More information about the pld-cvs-commit mailing list