2010-05-11 16:51:31 +02:00
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
|
|
|
%{!?version: %define version %(cat version)}
|
|
|
|
|
|
|
|
Name: qubes-manager
|
|
|
|
Version: %{version}
|
|
|
|
Release: 1
|
|
|
|
Summary: The Graphical Qubes VM Manager.
|
|
|
|
|
|
|
|
Group: Qubes
|
|
|
|
Vendor: Invisible Things Lab
|
|
|
|
License: GPL
|
|
|
|
URL: http://fixme
|
2011-06-02 01:15:24 +02:00
|
|
|
Requires: python, PyQt4, qubes-core-dom0 >= 1.3.1, kdebase
|
2010-05-16 06:31:36 +02:00
|
|
|
BuildRequires: PyQt4-devel
|
|
|
|
AutoReq: 0
|
2010-05-11 16:51:31 +02:00
|
|
|
|
|
|
|
%define _builddir %(pwd)
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Graphical Qubes VM Manager.
|
|
|
|
|
2010-05-16 06:31:36 +02:00
|
|
|
%build
|
|
|
|
make res
|
2011-03-02 14:53:27 +01:00
|
|
|
python -m compileall qubesmanager
|
|
|
|
python -O -m compileall qubesmanager
|
2010-05-11 16:51:31 +02:00
|
|
|
|
2010-05-16 06:31:36 +02:00
|
|
|
%install
|
2010-05-11 16:51:31 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/bin/
|
|
|
|
cp qubes-manager $RPM_BUILD_ROOT/usr/bin
|
2011-05-25 02:26:41 +02:00
|
|
|
cp qubes-appmenu-select $RPM_BUILD_ROOT/usr/bin
|
2010-05-11 16:51:31 +02:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager/
|
2011-03-02 14:53:27 +01:00
|
|
|
cp qubesmanager/main.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2011-05-25 02:26:41 +02:00
|
|
|
cp qubesmanager/appmenu_select.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2011-03-06 19:54:42 +01:00
|
|
|
cp qubesmanager/firewall.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2011-03-02 14:53:27 +01:00
|
|
|
cp qubesmanager/qrc_resources.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/__init__.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/ui_newappvmdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2011-03-06 19:54:42 +01:00
|
|
|
cp qubesmanager/ui_newfwruledlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/ui_editfwrulesdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2010-05-11 16:51:31 +02:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/applications
|
|
|
|
cp qubes-manager.desktop $RPM_BUILD_ROOT/usr/share/applications
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/xdg/autostart/
|
|
|
|
cp qubes-manager.desktop $RPM_BUILD_ROOT/etc/xdg/autostart/
|
|
|
|
|
|
|
|
%post
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
|
|
|
|
%postun
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/usr/bin/qubes-manager
|
2011-05-25 02:26:41 +02:00
|
|
|
/usr/bin/qubes-appmenu-select
|
2010-05-11 16:51:31 +02:00
|
|
|
%{python_sitearch}/qubesmanager/__init__.py
|
|
|
|
%{python_sitearch}/qubesmanager/__init__.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/__init__.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/main.py
|
|
|
|
%{python_sitearch}/qubesmanager/main.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/main.pyo
|
2011-05-25 02:26:41 +02:00
|
|
|
%{python_sitearch}/qubesmanager/appmenu_select.py
|
|
|
|
%{python_sitearch}/qubesmanager/appmenu_select.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/appmenu_select.pyo
|
2011-03-06 19:54:42 +01:00
|
|
|
%{python_sitearch}/qubesmanager/firewall.py
|
|
|
|
%{python_sitearch}/qubesmanager/firewall.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/firewall.pyo
|
2010-05-11 16:51:31 +02:00
|
|
|
%{python_sitearch}/qubesmanager/qrc_resources.py
|
|
|
|
%{python_sitearch}/qubesmanager/qrc_resources.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/qrc_resources.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/ui_newappvmdlg.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_newappvmdlg.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_newappvmdlg.pyo
|
2011-03-06 19:54:42 +01:00
|
|
|
%{python_sitearch}/qubesmanager/ui_newfwruledlg.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_newfwruledlg.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_newfwruledlg.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/ui_editfwrulesdlg.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_editfwrulesdlg.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_editfwrulesdlg.pyo
|
2010-05-11 16:51:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
/usr/share/applications/qubes-manager.desktop
|
|
|
|
/etc/xdg/autostart/qubes-manager.desktop
|