mirror of
https://github.com/thp/pyotherside.git
synced 2025-01-28 23:52:55 +08:00
ecdb478dd4
This makes it easy to build a development RPM package for using PyOtherSide on a Fedora machine. This it not intended to build source tarballs, releases or .spec files for proper distribution packages, but rather as convenience during development from Git.
40 lines
757 B
RPMSpec
40 lines
757 B
RPMSpec
Summary: Asynchronous Python 3 Bindings for Qt 5
|
|
Name: %NAME%
|
|
Version: %VERSION%
|
|
Release: %RELEASE%
|
|
Source: %{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)
|
|
Requires: python3-libs
|
|
|
|
%description
|
|
A QML Plugin that provides access to a Python 3 interpreter from QML.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
qmake-qt5
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make INSTALL_ROOT=%{buildroot} install
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README COPYING
|
|
%{_libdir}/qt5/qml/io/thp/pyotherside/*
|