[PyKDE] precompiled rpm-Packages (any links?)

Antonio Cavallo cavallo at casa.darktech.org
Wed Aug 21 17:05:00 BST 2002


Hy,
Here you can find the spec files for sip and pyqt (both in snapshoot dir)
suitables for a SuSE-8.0 (but i guess they will be ok for any rpm based
distro): i hope these will help you as base for a rpm based package.
best regards,
antonio
-------------- next part --------------
%define python_site    %(echo `python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/site-packages/')"`)
%define python_include %(echo `python -c "import sys; print (sys.prefix + '/include/python' + sys.version[:3] )"`)


Name:		pyqt
Version:	20020817
Release:	1
Copyright:	Riverbank Computing Limited <info at riverbankcomputing.co.uk>
Group:		Development/Libraries
Source:		PyQt-snapshot-20020817.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
Packager:	Antonio Cavallo <cavallo at kip.uni-heidelberg.de>
Summary:	bindings for the qt toolkit

%description

These are the Python bindings for Qt.

%prep
%setup -n PyQt-snapshot-20020817

%build

bindir=$RPM_BUILD_ROOT%{_bindir}
python_site=$RPM_BUILD_ROOT/%{python_site}
python_include=$RPM_BUILD_ROOT/%{python_include}

mkdir -p $bindir $python_site $python_include
python build.py -b $bindir -d $python_site -c -lqt-mt
make

%install

make install
make install-eric


%clean 
rm -rf $RPM_BUILD_ROOT

%files

%doc LICENSE
%doc README
%doc README.Linux
%doc NEWS
%doc THANKS


%{_bindir}/eric
%{_bindir}/pyuic
%{_bindir}/qtunittest
%{_bindir}/helpviewer
%{_bindir}/pylupdate
%{python_site}/libqtsqlcmodule.so.1.0
%{python_site}/eric/Scanner.py
%{python_site}/eric/BreakpointForm.pyc
%{python_site}/eric/FilterDialog.py
%{python_site}/eric/Icons.py
%{python_site}/eric/eric.pyc
%{python_site}/eric/helpviewer.py
%{python_site}/eric/Scanner.pyc
%{python_site}/eric/SourceViewer.pyc
%{python_site}/eric/BookmarkDialog.py
%{python_site}/eric/eric_de.qm
%{python_site}/eric/DebugProtocol.py
%{python_site}/eric/FilterForm.pyc
%{python_site}/eric/DebugServer.py
%{python_site}/eric/Info.py
%{python_site}/eric/FilterDialog.pyc
%{python_site}/eric/BookmarkDialog.pyc
%{python_site}/eric/Config.pyc
%{python_site}/eric/DebugServer.pyc
%{python_site}/eric/Icons.pyc
%{python_site}/eric/eric.py
%{python_site}/eric/FilterForm.py
%{python_site}/eric/HelpWindow.pyc
%{python_site}/eric/DebugClient.pyc
%{python_site}/eric/BookmarkForm.py
%{python_site}/eric/qtunittest.py
%{python_site}/eric/UnittestDialog.pyc
%{python_site}/eric/SourceViewer.py
%{python_site}/eric/Explorer.pyc
%{python_site}/eric/Info.pyc
%{python_site}/eric/UnittestForm.py
%{python_site}/eric/VariablesViewer.pyc
%{python_site}/eric/HelpWindow.py
%{python_site}/eric/VariablesViewer.py
%{python_site}/eric/Shell.pyc
%{python_site}/eric/UnittestForm.pyc
%{python_site}/eric/BreakpointForm.py
%{python_site}/eric/DebugClient.py
%{python_site}/eric/Shell.py
%{python_site}/eric/BreakpointDialog.pyc
%{python_site}/eric/AsyncIO.pyc
%{python_site}/eric/BookmarkForm.pyc
%{python_site}/eric/qtunittest.pyc
%{python_site}/eric/UserInterface.py
%{python_site}/eric/Config.py
%{python_site}/eric/UnittestDialog.py
%{python_site}/eric/helpviewer.pyc
%{python_site}/eric/AsyncIO.py
%{python_site}/eric/DebugProtocol.pyc
%{python_site}/eric/UserInterface.pyc
%{python_site}/eric/Explorer.py
%{python_site}/eric/BreakpointDialog.py
%{python_site}/libqtcmodule.so.1
%{python_site}/libqtnetworkcmodule.so
%{python_site}/qtgl.py
%{python_site}/qt.py
%{python_site}/libqttablecmodule.so.1.0.0
%{python_site}/libqtnetworkcmodule.so.1
%{python_site}/libqtxmlcmodule.so.1.0
%{python_site}/libqtnetworkcmodule.so.1.0
%{python_site}/libqtxmlcmodule.so
%{python_site}/libqttablecmodule.so
%{python_site}/libqtglcmodule.so.1.0
%{python_site}/qtcanvas.pyc
%{python_site}/qtsql.pyc
%{python_site}/qtnetwork.py
%{python_site}/libqtcanvascmodule.so.1.0
%{python_site}/libqtcmodule.so.1.0.0
%{python_site}/libqttablecmodule.so.1.0
%{python_site}/libqtglcmodule.so
%{python_site}/libqtsqlcmodule.so.1.0.0
%{python_site}/libqtglcmodule.so.1.0.0
%{python_site}/libqtcanvascmodule.so.1
%{python_site}/libqtcmodule.so.1.0
%{python_site}/libqtsqlcmodule.so.1
%{python_site}/libqtcmodule.so
%{python_site}/libqtxmlcmodule.so.1
%{python_site}/libqttablecmodule.so.1
%{python_site}/libqtxmlcmodule.so.1.0.0
%{python_site}/qtgl.pyc
%{python_site}/qt.pyc
%{python_site}/qttable.pyc
%{python_site}/qtnetwork.pyc
%{python_site}/qtsql.py
%{python_site}/libqtcanvascmodule.so.1.0.0
%{python_site}/libqtglcmodule.so.1
%{python_site}/qttable.py
%{python_site}/qtxml.py
%{python_site}/libqtnetworkcmodule.so.1.0.0
%{python_site}/qtcanvas.py
%{python_site}/libqtsqlcmodule.so
%{python_site}/qtxml.pyc
%{python_site}/libqtcanvascmodule.so
-------------- next part --------------
%define python_site    %(echo `python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/site-packages/')"`)
%define python_include %(echo `python -c "import sys; print (sys.prefix + '/include/python' + sys.version[:3] )"`)


Name:		sip
Version:	20020817
Release:	1
Copyright:	Riverbank Computing Limited <info at riverbankcomputing.co.uk>
Group:		Development/Libraries
Source:		sip-snapshot-20020817.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
Packager:	Antonio Cavallo <cavallo at kip.uni-heidelberg.de>
Summary:	python/c++ bindings generator

%description


SIP is a tool for generating bindings for C++ classes so that they can be
accessed as normal Python classes.  SIP takes many of its ideas from SWIG but,
because it is specifically designed for C++ and Python, is able to generate
tighter bindings.  SIP is so called because it is a small SWIG.

%prep
%setup -n sip-snapshot-20020817

%build

bindir=$RPM_BUILD_ROOT%{_bindir}
python_site=$RPM_BUILD_ROOT/%{python_site}
python_include=$RPM_BUILD_ROOT/%{python_include}

mkdir -p $bindir $python_site $python_include
python build.py -b $bindir -d $python_site -e $python_include -lqt-mt
make

%install

make install


%clean 
rm -rf $RPM_BUILD_ROOT

%files

%doc LICENSE
%doc ChangeLog
%doc README
%doc NEWS
%doc THANKS

%{_bindir}/sip
%{python_site}/libsip.so
%{python_site}/libsip.so.9.1
%{python_site}/libsip.so.9
%{python_site}/libsip.so.9.1.0
%{python_include}/sip.h
%{python_include}/sipQt.h


More information about the PyQt mailing list