2014-11-20 13:54:19 +03:00
%define _topdir %(echo $PWD)/rpm
%define name udsactor
%define version 1.7.0
%define release 1
%define buildroot %{_topdir}/%{name}-%{version}-%{release}-root
BuildRoot : %{buildroot}
Name : %{name}
Version : %{version}
Release : %{release}
Summary : Actor for Universal Desktop Services (UDS) Broker
License : BSD3
Group : Admin
2014-12-02 21:37:34 +03:00
Requires : python-six python-requests PyQt4 libXScrnSaver
2014-11-22 12:36:49 +03:00
Vendor : Virtual Cable S.L.U.
URL : http://www.udsenterprise.com
Provides : udsactor
2014-11-20 13:54:19 +03:00
%define _rpmdir ../
%define _rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
%install
curdir=`pwd`
cd ../..
2014-11-23 11:31:39 +03:00
make DESTDIR=$RPM_BUILD_ROOT DISTRO=rh install-udsactor
2014-11-20 13:54:19 +03:00
cd $curdir
%clean
rm -rf $RPM_BUILD_ROOT
curdir=`pwd`
cd ../..
make DESTDIR=$RPM_BUILD_ROOT DISTRO=rh clean
cd $curdir
%post
2014-11-22 12:36:49 +03:00
systemctl enable udsactor.service > /dev/null 2>&1
2014-11-20 13:54:19 +03:00
%preun
2014-11-22 12:36:49 +03:00
systemctl disable udsactor.service > /dev/null 2>&1
2014-11-24 02:47:08 +03:00
systemctl stop udsactor.service > /dev/null 2>&1
2014-11-20 13:54:19 +03:00
%postun
2014-11-22 12:36:49 +03:00
# $1 == 0 on uninstall, == 1 on upgrade for preun and postun (just a reminder for me... :) )
if [ $1 -eq 0 ]; then
rm -rf /etc/udsactor
rm /var/log/udsactor.log
fi
# And, posibly, the .pyc leaved behind on /usr/share/UDSActor
rm -rf /usr/share/UDSActor > /dev/null 2>&1
2014-11-20 13:54:19 +03:00
%description
This package provides the required components to allow this machine to work on an environment managed by UDS Broker.
%files
%defattr (-,root,root)
/etc/udsactor
/etc/xdg/autostart/UDSActorTool.desktop
/etc/init.d/udsactor
/usr/bin/UDSActorTool-startup
/usr/bin/udsactor
/usr/bin/UDSActorTool
/usr/sbin/UDSActorConfig
/usr/sbin/UDSActorConfig-pkexec
/usr/share/UDSActor/*
/usr/share/applications/UDS_Actor_Configuration.desktop
/usr/share/autostart/UDSActorTool.desktop
/usr/share/polkit-1/actions/org.openuds.pkexec.UDSActorConfig.policy