#21 tnef.spec file doesn't work

v1.3
closed-fixed
Mark Simpson
Build (6)
5
2005-05-18
2005-05-11
John Simpson
No

The "tnef.spec" file created by "./configure" does not
work when trying to produce a set of RPM files as a
non-root user.

I don't know enough about RPM files to say for sure,
but it looks like when the main Makefile calls
"doc/Makefile" it's passing an incorrect value of
DESTDIR. normally this would be something like
"/var/tmp/tnef-1.3.2-root", but the command it's
running is "make DESTDIR=/tnef-1.3.2-root install", and
it's failing because the non-root user doesn't have
permission to create directories at the root of the
filesystem.

Discussion

  • John Simpson
    John Simpson
    2005-05-12

    Logged In: YES
    user_id=795723

    in the file "tnef.spec.in", the "BuildRoot:" line is wrong.
    it should read...

    BuildRoot: %{_tmppath}/%{name}-%{version}-root

    note that the "$" in front of tmppath should be a "%", and
    there needs to be a "/" between tmppath and name.

    also, in the %files section... instead of "tnef.1.gz", you
    should have "tnef.1". it appears that when the Makefile
    installs the man page, it doesn't compress it.

    these two changes have produced a working set of rpm files
    on two different systems- one running centos 4, and one
    running whitebox 3.

     
  • John Simpson
    John Simpson
    2005-05-12

    • status: open --> pending-works-for-me
     
  • John Simpson
    John Simpson
    2005-05-12

    • status: pending-works-for-me --> open-works-for-me
     
  • John Simpson
    John Simpson
    2005-05-12

    Logged In: YES
    user_id=795723

    i just looked at the full list of bugs and see where i
    reported almost the same thing a few months back... and i
    also see that the "$" vs "%" typo was originally mine. sorry...

     
  • Mark Simpson
    Mark Simpson
    2005-05-12

    Logged In: YES
    user_id=479738

    I am glad you could figure that out. I don't have any
    redhat systems handy for this sort of testing so i took your
    change as is.

    I will roll fix into the next release (soon-ish hopefully).
    Can you please attach your fully modified tnef.spec.in file
    (or email it to me) so that there will be no mistakes due to
    misunderstanding.

    Thanks.

     
  • John Simpson
    John Simpson
    2005-05-12

    Logged In: YES
    user_id=795723

    attaching updated file per your request. i think this will
    make the file available for other sourceforge users to
    download, if somebody else with a redhat system can download
    it and test it i'm sure that would be appreciated.

     
  • John Simpson
    John Simpson
    2005-05-12

    updated tnef.spec file

     
    Attachments
  • Mark Simpson
    Mark Simpson
    2005-05-17

    • assigned_to: nobody --> verdammelt
    • status: open-works-for-me --> pending-fixed
     
  • Mark Simpson
    Mark Simpson
    2005-05-18

    • status: pending-fixed --> closed-fixed