haroopad
haroopad copied to clipboard
RPM package
resources
- http://daddy-linux.blogspot.kr/2012/02/convert-deb-to-rpm-or-rpm-to-deb.html
But I don't want to have a perl script converting. <Lazy> I usually just compile the program instead. <not lazy?>
Ah~ I have not a RPM packaging experiences :-( Could you show me the stuff for nice RPM works?
How about this? http://fedoraproject.org/wiki/How_to_create_an_RPM_package
+1 to this. That is a good resource for creating RPM packages, but another good resource for understanding RPM and building packages is http://www.rpm.org/max-rpm/ -- It's a bit dated but it gives a solid break down of RPM as a whole.
I think SUSE Build service is a amazing package builder for most distros. Build once in the system and it builds the different packages. It also host the files.
Quick and dirty install steps for Fedora 20 Alpha 64bit for those that want to give Haroopad a try while waiting for an official RPM. No warrenty. You break it you buy it.
#Fix symlinks
ln -s /usr/lib64/libudev.so.1 /usr/lib64/libudev.so.0
#Get source and extract
mkdir /tmp/haroopad
cd /tmp/haroopad
wget https://www.dropbox.com/s/z9qc6e04rm0th0e/haroopad-v0.7.0_amd64.tar.gz
tar xzf haroopad-v0.7.0_amd64.tar.gz
tar xzf data.tar.gz
#Copy Haroopad files to correct locations
cp usr/bin/haroopad /usr/bin/haroopad
cp usr/share/icons/hicolor/16x16/apps/haroopad.png /usr/share/icons/hicolor/16x16/apps/haroopad.png
cp usr/share/icons/hicolor/128x128/apps/haroopad.png /usr/share/icons/hicolor/128x128/apps/haroopad.png
cp usr/share/icons/hicolor/32x32/apps/haroopad.png /usr/share/icons/hicolor/32x32/apps/haroopad.png
cp usr/share/icons/hicolor/24x24/apps/haroopad.png /usr/share/icons/hicolor/24x24/apps/haroopad.png
cp usr/share/icons/hicolor/48x48/apps/haroopad.png /usr/share/icons/hicolor/48x48/apps/haroopad.png
cp usr/share/icons/hicolor/64x64/apps/haroopad.png /usr/share/icons/hicolor/64x64/apps/haroopad.png
cp usr/share/icons/hicolor/22x22/apps/haroopad.png /usr/share/icons/hicolor/22x22/apps/haroopad.png
mkdir /usr/share/haroopad/
cp usr/share/haroopad/nw.pak /usr/share/haroopad/nw.pak
cp usr/share/haroopad/haroopad /usr/share/haroopad/haroopad
cp usr/share/applications/Haroopad.desktop /usr/share/applications/Haroopad.desktop
cp usr/share/applications/mimeapps.list /usr/share/applications/mimeapps.list
# Lazy replace to fix menu icon
# /usr/bin/replace provided by mysql-server or mariadb-server on FC20 (yum install mariadb-server) or you can manually edit the file with the changes.
replace Icon=haroopad Icon=/usr/share/icons/hicolor/128x128/apps/haroopad.png Exec=haroopad Exec=/usr/bin/haroopad -- /usr/share/applications/Haroopad.desktop
#Clean up sources
rm -rf /tmp/haroopad
#Quick Uninstall
rm -f /usr/bin/haroopad
rm -f /usr/share/icons/hicolor/16x16/apps/haroopad.png
rm -f /usr/share/icons/hicolor/128x128/apps/haroopad.png
rm -f /usr/share/icons/hicolor/32x32/apps/haroopad.png
rm -f /usr/share/icons/hicolor/24x24/apps/haroopad.png
rm -f /usr/share/icons/hicolor/48x48/apps/haroopad.png
rm -f /usr/share/icons/hicolor/64x64/apps/haroopad.png
rm -f /usr/share/icons/hicolor/22x22/apps/haroopad.png
rm -rf /usr/share/haroopad/
rm -f /usr/share/applications/
rm -f /usr/share/applications/Haroopad.desktop
rm -f /usr/share/applications/mimeapps.list
rm -f /usr/lib64/libudev.so.0
hello, thanks for the install process. on mageia 3, if i try to launch via gnome, haroopad start launching then quit (~/.config/haroopad is created) if i try to type haroopad command on terminal i have this error : [18662:1121/122036:INFO:CONSOLE(343)] "Uncaught Error: Cannot find module 'moment'", source: module.js (343) i need some advices to go further
@bachy It'll be fixed at next release.
I was getting this error when launching haroopad via terminal (after executing the given copy instructions)
[10052:1224/210158:INFO:CONSOLE(427)] "Uncaught Error: ENOENT, no such file or directory '/usr/share/haroopad/Libraries/.locales/en/menu.json'", source: fs.js (427)
Turns out, we'll have to add one more copy instruction -
sudo cp -r usr/share/haroopad/Libraries /usr/share/haroopad/Libraries
Application launches just fine then,
it would be cool if these copy and remove instructions can be provided along with the source tarball as install and uninstall scripts
hello, i retried to install haroopad-v0.12.0_amd64 with the @jdoss's method but again it didn't work :( but, i have a new message :
[10650:0427/170710:INFO:CONSOLE(343)] "Uncaught Error: Cannot find module 'fs-extra'", source: module.js (343)
any idea ?
@rhiokim any news for me ??
hello,
finally get haroopad working on my distrib mageia using alien to convert deb to rpm. see here http://www.mageialinux-online.org/forum/topic-18221.php#m175477
@bachy Thank you for the great tip Really nice job for RPM users
I would love to help contribute an official RPM spec file for compiling an RPM for Haroopad, using the latest binary from here. Using alien is a very hacky "solution." Once you have the spec file, it's as simple as running the "rpmbuild" command on it from a Red Hat Enterprise Linux (or similar) based system to create an RPM package.
However, I couldn't find any files related to building the deb packages. Are those publicly available somewhere? That would be a great reference, otherwise the steps that jdoss already mentioned earlier should translate nicely into an RPM spec file.
+1