Created packages for udsclient for modern rh/suse based installar (python3)

This commit is contained in:
Adolfo Gómez García 2020-06-24 03:01:04 +02:00
parent f52b224a38
commit 6de8ccb018
4 changed files with 16 additions and 15 deletions

View File

@ -43,6 +43,8 @@ ifeq ($(DISTRO),targz)
tar czvf ../udsclient-$(VERSION).tar.gz -C $(DESTDIR) . tar czvf ../udsclient-$(VERSION).tar.gz -C $(DESTDIR) .
endif endif
ifeq ($(DISTRO),rh)
endif
# chmod 0755 $(BINDIR)/udsclient # chmod 0755 $(BINDIR)/udsclient
uninstall: uninstall:

View File

@ -13,15 +13,14 @@ cat udsclient-template.spec |
sed -e s/"release 1"/"release ${RELEASE}"/g > udsclient-$VERSION.spec sed -e s/"release 1"/"release ${RELEASE}"/g > udsclient-$VERSION.spec
# Now fix dependencies for opensuse # Now fix dependencies for opensuse
cat udsclient-template.spec | # Note: Right now, opensuse & rh seems to have same dependencies, only 1 package needed
sed -e s/"version 0.0.0"/"version ${VERSION}"/g | # cat udsclient-template.spec |
sed -e s/"name udsclient"/"name udsclient-opensuse"/g | # sed -e s/"version 0.0.0"/"version ${VERSION}"/g |
sed -e s/"PyQt4"/"python-qt4"/g | # sed -e s/"name udsclient3"/"name udsclient3-opensuse"/g > udsclient-opensuse-$VERSION.spec
sed -e s/"libXScrnSaver"/"libXss1"/g > udsclient-opensuse-$VERSION.spec
# Right now, udsactor-xrdp-.spec is not needed # Right now, udsactor-xrdp-.spec is not needed
for pkg in udsclient-$VERSION.spec udsclient-opensuse-$VERSION.spec; do # for pkg in udsclient-$VERSION.spec udsclient-opensuse-$VERSION.spec; do
for pkg in udsclient-$VERSION.spec; do
rm -rf rpm rm -rf rpm
for folder in SOURCES BUILD RPMS SPECS SRPMS; do for folder in SOURCES BUILD RPMS SPECS SRPMS; do

View File

@ -1,14 +1,13 @@
#!/bin/sh #!/bin/sh
cp -r usr/lib/UDSClient /usr/lib/UDSClient cp -r usr/lib/UDSClient /usr/lib/UDSClient
cp -r usr/share/applications /usr/lib/applications -R cp -r usr/share/applications /usr/share/applications -R
update-desktop-database update-desktop-database
echo "Installation process done." echo "Installation process done."
echo "Remembar that the following packages must be installed on system:" echo "Remembar that the following packages must be installed on system:"
echo "* Python paramiko" echo "* Python3 paramiko"
echo "* Python pyqt4" echo "* Python3 pyqt4"
echo "* Python3 requests"
echo "Theese packages (as their names), are dependent on your platform, so you must locate and install them" echo "Theese packages (as their names), are dependent on your platform, so you must locate and install them"
echo "You can install them directly on any platform with pip, using this simple command: " echo "Also, ensure that a /media folder exists on your machine, that will be redirected on RDP connections"
echo "pip install PyQt4 paramiko"

View File

@ -1,5 +1,5 @@
%define _topdir %(echo $PWD)/rpm %define _topdir %(echo $PWD)/rpm
%define name udsclient %define name udsclient3
%define version 0.0.0 %define version 0.0.0
%define release 1 %define release 1
%define buildroot %{_topdir}/%{name}-%{version}-%{release}-root %define buildroot %{_topdir}/%{name}-%{version}-%{release}-root
@ -28,6 +28,7 @@ cd $curdir
%post %post
/usr/bin/update-desktop-database /usr/bin/update-desktop-database
if [ ! -d /media ]; then mkdir /media; echo "/media created for compatibility"; fi
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT