Results 1 to 3 of 3

Thread: Configure RPM spec file

  1. #1
    Join Date
    Jan 2009
    Posts
    66

    Configure RPM spec file

    Hello,

    I try to create an rpm for vls (file spec below). But when I run
    Code:
    > Rpmbuild-bb rpmbuild / SPECS / vls.spec
    I have some errors during the. / Configure. Result, the compilation fails.

    configure: WARNING: fcntl.h: present but can not be compiled
    configure: WARNING: fcntl.h: check for missing prerequisite headers?
    configure: WARNING: fcntl.h: see the Autoconf documentation
    configure: WARNING: fcntl.h: section "Present But Can not Be Compiled"
    configure: WARNING: fcntl.h: proceeding with the preprocessor's result
    configure: WARNING: fcntl.h: in the future, the compiler will take precedence
    configure: WARNING: # # ------------------------------------------ # #
    configure: WARNING: # # Report this to the AC_PACKAGE_NAME lists. # #
    configure: WARNING: # # ------------------------------------------ # #
    checking for fcntl.h ... yes
    As against, if I direct, I can install without problem. To reproduce the bug, I have to do in export CXXFLAGS (Tourves in the temporary rpmbuild)
    Code:
    > CXXFLAGS = "$ (CXXFLAGS: - O2-g-pipe-Wall-Wp,-D_FORTIFY_SOURCE = 2-fexceptions-fstack-protector - param = ssp-buffer-size = 4-m32-march = i386-mtune = fasynchronous-generic-unwind-tables) "export CXXFLAGS;
    So my question is how to keep this position rpmbuild variable or ensure that it does not? I put unset across the spec file to no avail.

    Thank you

  2. #2
    Dr. V Guest

    Re: Configure RPM spec file

    Do you need particular vls? or for the creation of packages?
    Because vls is no longer supported, and that most of its features have been deported in vlc
    http://www.videolan.org/vlc/streaming.html
    A few quick comments :
    • Instead of typing the path to a disk, prefer to use macros
    • eg% (_libdir) instead of / usr / lib
    • Source: vls-% (version). Tar.gz
    • Complete changelog
    • Packager tag must be in a file. Rpmmacros
    • The buildrequires?

    also BR allow rpm to detect a large-dependencies finally, do not blindly rely on non-current, making unnecessary some Requires maintenance recompilations quickly identifying compilation dependencies missing. Through the change log, you can follow your work on your package.

  3. #3
    Join Date
    Apr 2008
    Posts
    3,295

    Re: Configure RPM spec file

    see this may you will get something

    Summary: VideoLAN is a free streaming software solution.
    Name: vls
    Version: 0.5.6
    Release: 1
    License: GPL
    Group: Applications / Multimedia
    Source: vls-% (version). Tar.gz
    Buildroot:% (_tmppath) /% (name) -% (version) -% (release)-root-%(%{__ id_u)-n)
    Provides: vls
    Requires: libdvdread, libdvbpsi, libdvb
    BuildRequires: libdvdread-devel, libdvbpsi-devel, libdvb, gcc, gcc-c + +

    % description
    VideoLAN is a free streaming software solution developed by
    students from the Ecole Centrale Paris and developers from all over the
    World.
    The VideoLAN Server can stream MPEG content from several sources
    (MPEG 1 or 2 files, DVDs, satellite cards, digital terrestrial television
    cards, real time MPEG encoding cards) over an IP network in unicast or
    multicast.
    You may install vls-dvd DVD to allow streaming and / or vls-dvb to be able
    to stream unencrypted digital satellite and digital channels unencrypted
    terrestrial television channels from a DVB device.

    % prep
    % setup-q

    % build
    % configure - disable-debug - enable-dvb

    make% (?) _smp_mflags


    % install
    rm-rf $ RPM_BUILD_ROOT
    make install DESTDIR = $ RPM_BUILD_ROOT

    % clean
    rm-rf $ RPM_BUILD_ROOT


    % files
    % (_bindir) / vls
    % (_bindir) / vlsd
    % (_libdir) / videolan / vls / dvdreader.so
    % (_libdir) / videolan / vls / dvbinput.so
    % (_libdir) / videolan / vls / dvbreader.so
    % (_sysconfdir) / videolan / vls / vls.cfg

    % changelog

Similar Threads

  1. Spec Ops: The Line Co-Op mode?
    By Baanbhatt in forum Video Games
    Replies: 4
    Last Post: 06-07-2012, 06:40 PM
  2. Palit Geforce gtx 570 spec's
    By Gaia in forum Monitor & Video Cards
    Replies: 5
    Last Post: 10-12-2010, 07:43 PM
  3. Replies: 1
    Last Post: 11-06-2009, 09:08 AM
  4. How can i Configure IE to download more than one file
    By Sophia in forum Technology & Internet
    Replies: 1
    Last Post: 02-02-2009, 03:35 PM
  5. spec for a server
    By subinks.iway in forum Hardware Peripherals
    Replies: 2
    Last Post: 31-10-2008, 01:16 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,408,989.10006 seconds with 17 queries