Author Topic: <solved>HamsiManager  (Read 824 times)

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
<solved>HamsiManager
« on: January 11, 2012, 12:59:32 PM »
Hello,

would like to pack hamsi manager, and create my spec file.

Code: [Select]
%define prefix /usr
%define name HamsiManager
%define version 1.0
%define release %mkrel 1
%define url http://hamsiapps.com/en/HamsiManager

Name: %{name}
Version: %{version}
Release: %{release}
License: GPLv3
Group: File tools
URL: %{url}
Source: %{name}-%{version}.tar.xz
Summary: Hamsi Manager is a file manager
Summary(de): Hamsi Manager ist ein Dateimanager
BuildRoot: %{_tmppath}/%{name}-buildroot
Requires: python >= 2.5
Requires: python-qt4
Obsoletes: %name < %version

%description
Hamsi Manager is a file manager developed for extra treatments.
You can perform a process to multiple files at once. You can
perform multiple processes to multiple files at once or over
and over again the next time. Offers you more options as possible,
all the while. Aimed to create a fully customizable environment
and it aims to combine with ease of use.

Distributed under the GPLv3 license and is a project developed
with entirely Open Source libraries.

#german
%description -l de
Hamsi Manager ist ein Datei-Manager mit zusätzlichen Extras.
Sie können einen Prozess, auf mehrere Dateien auf einmal
anwenden. Sie können mehrere Prozesse durchführen, um mehrere
Dateien auf einmal oder wiederholend zeitgleich abzufertigen.
Bietet Ihnen mehrere Optionen als nötig, die ganze Zeit.
Zielt darauf ab, eine vollständig anpassbare Umgebung zu
schaffen, und es mit einfacher Bedienung zu kombinieren.

Lizensiert unter der GPLv3-Lizenz und ist ein Projekt mit
völlig Open Source-Bibliotheken entwickelt.

%prep

%setup -q -n %{name}

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p %{buildroot}%{_datadir}/hamsimanager
cp -r $RPM_BUILD_DIR/%{name}/* %{buildroot}%{_datadir}/hamsimanager/

mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/hamsi << EOF
#!/bin/bash
# simple script to start HamsiManager
#
/usr/share/hamsimanager/HamsiManager.py
exit 0
EOF
%__chmod 777 %{buildroot}%{_bindir}/hamsi

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Comment[tr]=Hamsi Manager
Comment=Hamsi Manager
Categories=X-MandrivaLinux-System-FileTools;Utility;Qt;KDE;System;X-KDE-Utilities-File;GTK;GNOME;FileTools;FileManager
Exec=hamsi
GenericName[tr]=Hamsi Manager
GenericName=Hamsi Manager
Icon=hamsi.png
MimeType=inode/directory;
Name[tr]=Hamsi Manager
Name=Hamsi Manager
StartupNotify=true
Terminal=false
Type=Application
X-KDE-SubstituteUID=false
X-MultipleArgs=false
EOF

mkdir -p %{buildroot}%{_datadir}/icons
install -m 644 /Themes/Default/Images/HamsiManager-128x128.png %{buildroot}%{_datadir}/icons/hamsi.png

rm -rf %{buildroot}%{_datadir}/hamsimanager/install.py



%post
%{update_menus}
%{update_desktop_database}


%postun
%{clean_menus}
%{clean_desktop_database}

%files
%defattr(-,root,root)
%{_bindir}/hamsi
%{_datadir}/hamsimanager/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hamsi.png

%clean
rm -rf %{buildroot}
rm -rf $RPM_BUILD_DIR/%{name}-%{version}

%changelog
* Wed Jan 11 2012 leiche <meisssw01 at gmail.com> 1.0-1leiche2012
- initial packages

but when i run in terminal command rpmbuild -ba pclos-Hamsi-Manager.spec
i get this error

Code: [Select]
Fehler: Installierte (aber nicht gepackte) Datei(en) gefunden:
   /usr/bin/hamsi
   snip
   /usr/share/hamsimanager/setup.py
  

But it defined here
%files
%defattr(-,root,root)
%{_bindir}/hamsi
%{_datadir}/hamsimanager/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hamsi.png

Am i silly ???

Thanks for helping

Source http://minus.com/mG869yjMK
« Last Edit: January 11, 2012, 02:00:47 PM by Leiche »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: HamsiManager
« Reply #1 on: January 11, 2012, 01:30:53 PM »
Having a look.....    

Hmm...... did you read the For Packagers document in the source tar?    

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: HamsiManager
« Reply #2 on: January 11, 2012, 01:33:56 PM »
Yes i read...

@Sproggy
Don't understand, sorry

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: HamsiManager
« Reply #3 on: January 11, 2012, 01:45:04 PM »
From For Packagers:     
Quote
Executable File Path       :   /usr/bin/hamsi
            Example :      ln -s /usr/share/hamsimanager/HamsiManager.py /usr/bin/hamsi
            Example 2 :      echo -e '#!/bin/bash\n\ncd "/usr/share/hamsi"\n./HamsiManager.py $@\nexit $?\n' > /usr/bin/hamsi
     

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: HamsiManager
« Reply #4 on: January 11, 2012, 01:52:06 PM »
found the problem...

Line 66
cat > %{buildroot%{_datadir}/applications/%{name}.desktop << EOF

must could

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF

Sorry for nothing  ;D

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: <solved>HamsiManager
« Reply #5 on: January 11, 2012, 02:10:25 PM »
I'm just glad you found it. :)     

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: <solved>HamsiManager
« Reply #6 on: January 11, 2012, 02:34:25 PM »
yeahhhh, now i playing a little with it, would you like to play, too?

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: <solved>HamsiManager
« Reply #7 on: January 11, 2012, 02:36:33 PM »
yeahhhh, now i playing a little with it, would you like to play, too?
     
I wish I had some play time. :-\ Maybe later?     

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: <solved>HamsiManager
« Reply #8 on: January 11, 2012, 02:37:44 PM »
okay, no problem... ;D

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: <solved>HamsiManager
« Reply #9 on: January 11, 2012, 04:42:28 PM »
Hmmm, late for the party again. I hate timezones.

Leiche, take a look at my dropbox.

1.0


0.9.73
« Last Edit: January 11, 2012, 04:45:47 PM by Archie »
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: <solved>HamsiManager
« Reply #10 on: January 12, 2012, 03:19:28 AM »
hehe, should look before i ask  ;D...
That's life  ;)

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: <solved>HamsiManager
« Reply #11 on: January 12, 2012, 06:35:29 AM »
Looks like I have a problem with mine. When I uninstall it, the service menu were not removed. You should check yours. I think there were three of the options (or a combination) for the users to choose. I think they ought to be be removed when the app is uninstalled.


Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42