Author Topic: [solved] need help with ClamTk  (Read 3402 times)

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 558
  • be patient, I'm German
[solved] need help with ClamTk
« on: September 19, 2009, 06:02:19 PM »
Hola amigos,

ClamTk is a GUI front-end for Clam Antivirus using gtk2-perl. It is designed to be an easy-to-use, lightweight, point-and-click desktop virus scanner for Linux.

Files for ClamTk
i downloaded clamtk-4.18.tar.gz
Also I found a clamtk.spec

modified spec
Code: [Select]
Summary: Easy to use front-end for ClamAV
Name: clamtk
Version: 4.18
Release: %mkrel 1
License: Artistic 2.0
Group: File tools
URL: http://clamtk.sourceforge.net/
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildArch: noarch

BuildRequires: gettext
BuildRequires: desktop-file-utils
Requires: perl-Gtk2
Requires: perl-File-Find-Rule, perl-Date-Calc, perl-gettext
Requires: perl-libwww-perl, perl-Net-DNS
Requires: clamav >= 0.90 clamav-db
Requires: zenity, crontabs
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils

%description
ClamTk is a GUI front-end for ClamAV using Gtk2-perl.
It is designed to be an easy-to-use, point and click
virus scanner for Linux systems.

%prep
%setup -q

%build

%install
%{__rm} -rf %{buildroot}
%{__install} -D -m0755 clamtk %{buildroot}%{_bindir}/clamtk
%{__install} -D -m0644 clamtk.png %{buildroot}%{_datadir}/pixmaps/clamtk.png
%{__install} -D -m0644 clamtk.1.gz %{buildroot}%{_mandir}/man1/clamtk.1.gz
%{__install} -D -m0644 clamtk.desktop %{buildroot}%{_datadir}/applications/clamtk.desktop
%{__mkdir} -p %{buildroot}%{_datadir}/locale/{ar,cs_CZ,da,de,el_GR,en_GB,es,fr,gl,hr,hu,it,ja,ko_KR,ms,nl,nl_BE,nb,nn,pl,pt_BR,ro,ru,sk,sl,sv,tr,zh_CN}/LC_MESSAGES
%{__install} -d %{buildroot}%{perl_vendorlib}/ClamTk
%{__install} -m0644 lib/*.pm %{buildroot}%{perl_vendorlib}/ClamTk/

for n in po/*.mo ; do
%{__install} -D -m0644 $n %{buildroot}%{_datadir}/locale/`basename $n .mo`/LC_MESSAGES/clamtk.mo
done
%find_lang %{name}

desktop-file-install --delete-original \
--add-category="GTK" \
--add-category="GNOME" \
--dir $RPM_BUILD_ROOT%{_datadir}/applications %{buildroot}%{_datadir}/applications/*


%clean
%{__rm} -rf %{buildroot}

%files -f %{name}.lang
%defattr(-, root, root, 0755)
%doc CHANGES DISCLAIMER LICENSE README
%{_bindir}/%{name}
%{perl_vendorlib}/ClamTk
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/clamtk.png
%{_mandir}/man1/%{name}.1*


%changelog


Code: [Select]
$ rpm -ba clamtk.spec
...
+ /usr/bin/install -D -m0644 po/zh_CN.mo /home/rogaven/RPM/tmp/clamtk-4.18-root/usr/share/locale/zh_CN/LC_MESSAGES/clamtk.mo
+ /usr/lib/rpm/mandriva/find-lang.sh /home/rogaven/RPM/tmp/clamtk-4.18-root clamtk
+ desktop-file-install --delete-original --add-category=GTK --add-category=GNOME --dir /home/rogaven/RPM/tmp/clamtk-4.18-root/usr/share/applications /home/rogaven/RPM/tmp/clamtk-4.18-root/usr/share/applications/clamtk.desktop
Must specify the vendor namespace for these files with --vendor

I need help, or any other packer must make it work :'(


saludos
« Last Edit: September 22, 2009, 01:49:41 PM by margarita »
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: need help with ClamTk
« Reply #1 on: September 19, 2009, 09:18:38 PM »
Hola!

Quien es el 'vendor?'

En el spec como asi -
Quote
Group:          File tools
Vendor:        Nombre


Quote
Must specify the vendor namespace for these files with --vendor

You need to specify the vendor.




Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 558
  • be patient, I'm German
Re: need help with ClamTk
« Reply #2 on: September 19, 2009, 09:49:11 PM »
hola Neal,

Gracias por su respuesta ;D


I do not know what that means with a vendor to. The original spec comes without that information.
First I use a spec from mandrakes clamtk-4.17-1mdv2010.0.src.rpm
That also comes without a vendor info.

I'm confused ??? (but only a little bit ;))


saludos
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: need help with ClamTk
« Reply #3 on: September 19, 2009, 10:26:16 PM »
De nada.

I understand your confusion. Perhaps adding the vendor in the files section should be enough. The error message says that the vendor must be specified, though.


Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 558
  • be patient, I'm German
Re: need help with ClamTk
« Reply #4 on: September 19, 2009, 11:46:53 PM »
Life can be so easy :D

hola Neal,
thx for the hint

The solution was
Code: [Select]
$ desktop-file-install --helpI added --vendor=""
Code: [Select]
...
%find_lang %{name}

desktop-file-install --vendor="" \
--delete-original \
--add-category="GTK" \
--add-category="GNOME" \
--dir $RPM_BUILD_ROOT%{_datadir}/applications %{buildroot}%{_datadir}/applications/*
...
and that was

Now I must modify the clamtk.desktop
also I have delete perl-gettext from
Code: [Select]
...
Requires: perl-File-Find-Rule, perl-Date-Calc, perl-gettext
...


How do we go from here? ???



hasta maƱana y buenas noche

[attachment deleted by admin]
« Last Edit: September 19, 2009, 11:58:47 PM by margarita »
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: need help with ClamTk
« Reply #5 on: September 20, 2009, 05:15:44 AM »
Do you have it built? :)

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 558
  • be patient, I'm German
Re: need help with ClamTk
« Reply #6 on: September 20, 2009, 06:14:01 AM »
Do you have it built? :)


Yes Sir ;D

build, installed and it works :)
I will now examine whether the spec is PCLOS conform and then it can be controlled.
I hope this is the normal procedure.


saludos
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: need help with ClamTk
« Reply #7 on: September 20, 2009, 06:42:43 AM »
Do you have Dropbox installed? If so, do you have the SRPM folder? Are you set up to share it?


Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 558
  • be patient, I'm German
Re: need help with ClamTk
« Reply #8 on: September 20, 2009, 07:02:30 AM »
I have dropbox installed and an folder PCLinuxOS for packages.
here I'll parking my packages (if there are even more :D)


saludos
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: need help with ClamTk
« Reply #9 on: September 20, 2009, 07:36:48 AM »
I have dropbox installed and an folder PCLinuxOS for packages.
here I'll parking my packages (if there are even more :D)


saludos

 :D :D Good.


Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 558
  • be patient, I'm German
Re: need help with ClamTk
« Reply #10 on: September 20, 2009, 07:57:26 AM »
I have dropbox installed and an folder PCLinuxOS for packages.
here I'll parking my packages (if there are even more :D)


saludos

 :D :D Good.



YES
now I can share this files with myself ;D ;D ;D
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: need help with ClamTk
« Reply #11 on: September 20, 2009, 08:09:48 AM »
Do you have it enabled to share with Texstar, too?


Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 558
  • be patient, I'm German
Re: need help with ClamTk
« Reply #12 on: September 20, 2009, 08:37:57 AM »
sry, but I need more info

I can't share it with Texstar before the build is complete.
I have problems with the desktop-entry, until now I still have no solution

Code: [Select]
desktop-file-install --vendor="" \
--delete-original \
--add-category="GTK" \
--add-category="GNOME" \
--add-category="X-MandrivaLinux-Filetools" \
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

Have in /usr/share/applications/clamtk.desktop but i can't find it in the KDE-Menu.
What is wrong here or what is missing?

next

Source:      %{name}-%{version}.tar.gz
vs.
Source:      http://downloads.sourceforge.net/clamtk/%{name}-%{version}.tar.gz

which option is better?


But once pause
saludos
« Last Edit: September 20, 2009, 08:39:34 AM by margarita »
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: need help with ClamTk
« Reply #13 on: September 20, 2009, 02:08:27 PM »
sry, but I need more info

I can't share it with Texstar before the build is complete.
I have problems with the desktop-entry, until now I still have no solution

Code: [Select]
desktop-file-install --vendor="" \
--delete-original \
--add-category="GTK" \
--add-category="GNOME" \
--add-category="X-MandrivaLinux-Filetools" \
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

Have in /usr/share/applications/clamtk.desktop but i can't find it in the KDE-Menu.
What is wrong here or what is missing?


This should give you a clue, I think: --add-category="GNOME" \

Try it without this line.


Quote
next

Source:      %{name}-%{version}.tar.gz
vs.
Source:      http://downloads.sourceforge.net/clamtk/%{name}-%{version}.tar.gz

which option is better?


But once pause
saludos


Use the second option.

Saludos,
Neal

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 558
  • be patient, I'm German
Re: need help with ClamTk
« Reply #14 on: September 20, 2009, 03:27:10 PM »
hola Neal,

it's the little things that make us despair.

--add-category="X-MandrivaLinux-Filetools" \
--add-category="X-MandrivaLinux-FileTools" \

Where are the testers?
I have KDE3 only.
Do I now install GNOME, XFCE, KDE4 ... ?


saludos
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS