From 644ce230b767c49614497fbbdb631a26cc2b41d0 Mon Sep 17 00:00:00 2001 From: Martin Kolman Date: Fri, 10 Apr 2015 14:12:39 +0200 Subject: [PATCH] Initial build, try nr. 2 --- .gitignore | 1 + pyotherside.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 60 insertions(+) create mode 100644 pyotherside.spec diff --git a/.gitignore b/.gitignore index e69de29..0e5160b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pyotherside-1.4.0.tar.gz diff --git a/pyotherside.spec b/pyotherside.spec new file mode 100644 index 0000000..c5574d6 --- /dev/null +++ b/pyotherside.spec @@ -0,0 +1,58 @@ +Summary: Asynchronous Python 3 Bindings for Qt 5 +Name: pyotherside +Version: 1.4.0 +Release: 3%{?dist} +Source0: http://thp.io/2011/pyotherside/%{name}-%{version}.tar.gz +URL: http://thp.io/2011/pyotherside/ +License: ISC +Group: Development/Libraries +BuildRequires: python3-devel +BuildRequires: qt5-qtbase-devel +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(Qt5Qml) +BuildRequires: pkgconfig(Qt5Quick) +BuildRequires: pkgconfig(Qt5Test) +BuildRequires: xorg-x11-server-Xvfb +Requires: python3 + +%description +A QML Plugin that provides access to a Python 3 interpreter from QML. + +%prep +%setup -q + +%build +%{_qt5_qmake} +make %{?_smp_mflags} + +%check +xvfb-run ./tests/tests + +%install +make INSTALL_ROOT=%{buildroot} install + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc README LICENSE +%dir %{_libdir}/qt5/qml/io/ +%dir %{_libdir}/qt5/qml/io/thp/ +%{_libdir}/qt5/qml/io/thp/pyotherside + +%changelog +* Fri Apr 10 2015 Martin Kolman - 1.4.0-3 +- fix QML plugin directory ownership + +* Thu Apr 02 2015 Martin Kolman - 1.4.0-2 +- add a changelog +- call ldconfig correctly +- run the test suite in check + +* Thu Apr 02 2015 Martin Kolman - 1.4.0-1 +- update to upstream release 1.4.0 + +* Wed Dec 10 2014 Martin Kolman - 1.3.0-1 +- Initial package diff --git a/sources b/sources index e69de29..9df5cf7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3445be9b4cea3b63cfee56b64a40fc83 pyotherside-1.4.0.tar.gz