]> git.pld-linux.org Git - packages/python-emotion.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 21 Jan 2012 20:40:01 +0000 (20:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-emotion-cython.patch -> 1.1
    python-emotion.spec -> 1.1

python-emotion-cython.patch [new file with mode: 0644]
python-emotion.spec [new file with mode: 0644]

diff --git a/python-emotion-cython.patch b/python-emotion-cython.patch
new file mode 100644 (file)
index 0000000..5f5e5c1
--- /dev/null
@@ -0,0 +1,11 @@
+--- python-emotion-0.7.3/emotion/emotion.c_emotion.pyx.orig    2010-10-01 01:03:44.000000000 +0200
++++ python-emotion-0.7.3/emotion/emotion.c_emotion.pyx 2012-01-21 20:29:17.554886922 +0100
+@@ -50,7 +50,7 @@
+ cdef class Emotion(evas.c_evas.Object):
+-    def __new__(self, *a, **ka):
++    def __cinit__(self, *a, **ka):
+         self._emotion_callbacks = {}
+     def __init__(self, c_evas.Canvas canvas not None, **kargs):
diff --git a/python-emotion.spec b/python-emotion.spec
new file mode 100644 (file)
index 0000000..4be088b
--- /dev/null
@@ -0,0 +1,82 @@
+Summary:       Python bindings for Emotion library
+Summary(pl.UTF-8):     Wiązania Pythona do biblioteki Emotion
+Name:          python-emotion
+Version:       0.7.3
+Release:       1
+License:       LGPL v2.1+
+Group:         Development/Languages/Python
+Source0:       http://download.enlightenment.org/releases/BINDINGS/python/%{name}-%{version}.tar.bz2
+# Source0-md5: 9e4a63a5b6314c81225addd68e26bb69
+Patch0:                %{name}-cython.patch
+URL:           http://trac.enlightenment.org/e/wiki/Python
+BuildRequires: emotion-devel >= 0.2.0.52190
+BuildRequires: epydoc
+BuildRequires: evas-devel >= 1.0.0
+BuildRequires: python-Cython >= 0.13
+BuildRequires: python-devel >= 1:2.5
+BuildRequires: python-evas >= 0.7.3
+BuildRequires: rpm-pythonprov
+BuildRequires: pkgconfig >= 1:0.22
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires:      emotion >= 0.2.0.52190
+Requires:      evas >= 1.0.0
+Requires:      python-evas >= 0.7.3
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python bindings for Emotion library.
+
+%description -l pl.UTF-8
+Wiązania Pythona do biblioteki Emotion.
+
+%package devel
+Summary:       Python bindings for Emotion library - development files
+Summary(pl.UTF-8):     Wiązania Pythona do biblioteki Emotion - pliki programistyczne
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      emotion-devel >= 0.2.0.52190
+Requires:      evas-devel >= 1.0.0
+Requires:      python-evas-devel >= 0.7.3
+
+%description devel
+Python bindings for Emotion library - development files.
+
+%description devel -l pl.UTF-8
+Wiązania Pythona do biblioteki Emotion - pliki programistyczne.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure \
+       --disable-silent-rules
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%py_postclean
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/emotion/c_emotion.la
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}
+mv $RPM_BUILD_ROOT%{_datadir}/%{name}/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README
+%dir %{py_sitedir}/emotion
+%attr(755,root,root) %{py_sitedir}/emotion/c_emotion.so
+%{py_sitescriptdir}/emotion
+%{_examplesdir}/%{name}-%{version}
+
+%files devel
+%defattr(644,root,root,755)
+%{_pkgconfigdir}/python-emotion.pc
This page took 0.654465 seconds and 4 git commands to generate.