SPECS: python-gammu.spec (NEW) - Initial revision of python-gammu....

beorn beorn at pld-linux.org
Fri Mar 2 15:03:55 CET 2007


Author: beorn                        Date: Fri Mar  2 14:03:55 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- Initial revision of python-gammu.spec

---- Files affected:
SPECS:
   python-gammu.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/python-gammu.spec
diff -u /dev/null SPECS/python-gammu.spec:1.1
--- /dev/null	Fri Mar  2 15:03:55 2007
+++ SPECS/python-gammu.spec	Fri Mar  2 15:03:50 2007
@@ -0,0 +1,57 @@
+# $Revision$, $Date$
+Summary:    Python bingings for Gammu library
+Summary(pl.UTF-8):    Wiązania języka Python dla biblioteki Gammu
+Name:       python-gammu
+Version:    0.19
+Release:    1
+License:    GPL
+Group:      Development/Languages/Python
+Source0:    http://dl.cihar.com/python-gammu/latest/%{name}-%{version}.tar.bz2
+# Source0-md5:  ad967c35b6398545d4358d3f9915ef50
+URL:        http://icepick.info/
+BuildRequires:  python-devel
+BuildRequires:  rpm-pythonprov
+BuildRequires:  gammu-devel >= 1:1.10.0-0.1
+BuildRequires:  pkgconfig >= 0.21-2
+%pyrequires_eq  python-modules
+BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Requires:   gammu-libs >= 1:1.10.0-0.1
+
+%description
+Python bingings for Gammu library.
+
+%description -l pl.UTF-8
+Wiązania języka Python dla biblioteki Gammu.
+
+%prep
+%setup -q
+
+%build
+find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+#find $RPM_BUILD_ROOT%{py_sitedir} -type f -name "*.py" | xargs rm
+cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README NEWS AUTHORS
+%attr(755,root,root) %{py_sitedir}/gammu.so
+%{_examplesdir}/%{name}-%{version}/
+
+%define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/03/02 14:03:50  beorn
+- Initial revision of python-gammu.spec
================================================================


More information about the pld-cvs-commit mailing list