aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Question about using RPMBUILD with the amule.spec file  (Read 2639 times)

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Question about using RPMBUILD with the amule.spec file
« on: January 31, 2006, 10:40:40 AM »

I'm experimenting a bit with building an rpm file to keep aMule as I have compiled it now. However, when I use the amule.spec file I keep getting a build error: "/usr/bin/amuled installed but not packaged". Oddly I don't have amuled in /usr/bin, but in /usr/local/bin, but I guess the path setting picks it up nevertheless.

I reckon it's because in the amule.spec file it actually instructs to install these files, am I correct in this? And since I already have amuled installed, this will fail.

Question: Can I simply remove all the lines using _bindir? Will then the rpm still be produced?

As you can see I'm a new at this, and the since it takes just over 2 hours every compilation run I hope somebody can give me some useful pointers here.
Logged
A waste is a terrible thing to mind.

IhmSelbst

  • Full Member
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 220
    • http://www.ed2k-serverboard.de/
RE: Question about using RPMBUILD with the amule.spec file
« Reply #1 on: January 31, 2006, 10:15:30 PM »

since you enabled the daemon by --enable-amule-daemon in the ./configure-section, this requires an entry %{_bindir}/amuled.
the %{_bindir}/whatever-lines tell it, which executables should be installed. (so, you shouldn´t remove them for that reason.)
you can change the install-path, too, for example by using --prefix=/usr flag, to install in /usr


cu

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Question about using RPMBUILD with the amule.spec file
« Reply #2 on: February 01, 2006, 09:28:36 AM »

Of course, that's it, I added the daemon and the remote GUI to the compile options, but not to the install section, hence it rpmbuild complains that it has something installed but not packaged.

Thanks for this, I'll try it right away this afternoon.
Logged
A waste is a terrible thing to mind.

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Question about using RPMBUILD with the amule.spec file
« Reply #3 on: February 01, 2006, 10:37:16 AM »

btw cool feature for slow mashines --> ccache
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."