FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    446

    compile issue with gmediafinder-0.9.7

    hi,

    I was trying to build gmediafinder-0.9.7 vom source

    git clone git://github.com/smolleyes/gmediafinder.git && tar cjf gmediafinder-0.9.7.tar.bz2 gmediafinder/

    Code:
    Name:           gmediafinder
    Version:        0.9.7
    Release:        1%{?dist}
    Summary:        stream an/or download files
    License:        GPLv2
    Group:          Applications/Internet
    URL:            http://gnomefiles.org/content/show.php/Gmediafinder?content=138588&PHPSESSID=9c909890a42ce1ac7a555efab2b34b83
    Source0:        http://github.com/smolleyes/gmediafinder.git/gmediafinder-%{version}.tar.bz2
    BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
    BuildArch:      noarch
    Requires:       python-BeautifulSoup python-html5lib gstreamer-python gstreamer-plugins-base python-gdata
    Requires:       python-distutils-extra pygtk2 python-mechanize python-virtkey
    #no alias for aviutils
    Requires:       ffmpeg-libs
    Requires:       libvisual-plugins python-configobj pygtk2-libglade
    BuildRequires:  hicolor-icon-theme python-mechanize python-setuptools python-distutils-extra
    
    %description
    Gmediafinder is a software to search stream an/or download files form youtube without flash,
    google and some mp3 searchengines (you know the rules...)
    its support fullscreen mode, visualisation and use the gstreamer engine
    for youtube you can select you prefered resolution and give priority to
    mp4 format for video seeking! (and lower cpu usage than flv...).
    
    
    %prep
    #Obtaining source
    #git clone git://github.com/smolleyes/gmediafinder.git && tar cjf gmediafinder-%{version}.tar.bz2 gmediafinder/ && rm -rf gmediafinder
    %setup -q -n %{name}
    
    %build
    python setup.py build
    
    %install
    rm -rf $RPM_BUILD_ROOT
    
    python setup.py install --root=$RPM_BUILD_ROOT
    cp -R data/img/throbber.png $RPM_BUILD_ROOT%{_datadir}/%{name}/
    %{__chmod} 755 ${RPM_BUILD_ROOT}%{_bindir}/%{name}
    
    %post
    update-desktop-database -q %{_datadir}/applications
    if [ -x /usr/bin/gtk-update-icon-cache ]; then
            /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
    fi
    
    %postun
    update-desktop-database -q %{_datadir}/applications
    if [ -x /usr/bin/gtk-update-icon-cache ]; then
            /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
    fi
    
    %clean
    rm -rf $RPM_BUILD_ROOT
    
    
    %files
    %defattr(-,root,root,-)
    %doc CHANGELOG gpl-2.0.txt README VERSION
    %{_bindir}/*
    %{_desktopdir}/%{name}.desktop
    %{py_sitedir}/*/*
    %{_datadir}/%{name}/*
    %{_datadir}/icons/hicolor/22x22/apps/gmediafinder.png
    %{_datadir}/icons/hicolor/24x24/apps/gmediafinder.png
    %{_datadir}/icons/hicolor/48x48/apps/gmediafinder.png
    %{_datadir}/locale/en/LC_MESSAGES/gmediafinder.mo
    %{_datadir}/locale/fr/LC_MESSAGES/gmediafinder.mo
    %{_datadir}/locale/it/LC_MESSAGES/gmediafinder.mo
    %{_datadir}/locale/ro/LC_MESSAGES/gmediafinder.mo
    %{_datadir}/locale/pl_PL/LC_MESSAGES/gmediafinder.mo
    %{_datadir}/locale/cs_CZ/LC_MESSAGES/gmediafinder.mo
    %{_datadir}/locale/es/LC_MESSAGES/gmediafinder.mo
    %{_datadir}/locale/sr/LC_MESSAGES/gmediafinder.mo
    %{_datadir}/pyshared/GmediaFinder/*
    but this fails with the error message:

    Code:
    Copying gmediafinder.egg-info to /usr/src/redhat/BUILDROOT/gmediafinder-0.9.7-1.fc15.i386/usr/lib/python2.7/site-packages/gmediafinder-0.9.7-py2.7.egg-info
    *** Icon cache not updated. After install, run this:
    ***     gtk-update-icon-cache -f -t /usr/share/icons/hicolor
    + cp -R data/img/throbber.png /usr/src/redhat/BUILDROOT/gmediafinder-0.9.7-1.fc15.i386/usr/share/gmediafinder/
    + /bin/chmod 755 /usr/src/redhat/BUILDROOT/gmediafinder-0.9.7-1.fc15.i386/usr/bin/gmediafinder
    + /usr/lib/rpm/check-buildroot
    + /usr/lib/rpm/redhat/brp-compress
    + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
    + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
    + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
    + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
    Bytecompiling .py files below /usr/src/redhat/BUILDROOT/gmediafinder-0.9.7-1.fc15.i386/usr/lib/python2.7/ using /usr/bin/python2.7
    + /usr/lib/rpm/redhat/brp-python-hardlink
    + /usr/lib/rpm/redhat/brp-java-repack-jars
    Processing files: gmediafinder-0.9.7-1.fc15.noarch
    error: File must begin with "/": %{py_sitedir}/*/*
    Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Q7xwGs
    + umask 022
    + cd /usr/src/redhat/BUILD
    + cd gmediafinder
    + DOCDIR=/usr/src/redhat/BUILDROOT/gmediafinder-0.9.7-1.fc15.i386/usr/share/doc/gmediafinder-0.9.7
    + export DOCDIR
    + rm -rf /usr/src/redhat/BUILDROOT/gmediafinder-0.9.7-1.fc15.i386/usr/share/doc/gmediafinder-0.9.7
    + /bin/mkdir -p /usr/src/redhat/BUILDROOT/gmediafinder-0.9.7-1.fc15.i386/usr/share/doc/gmediafinder-0.9.7
    + cp -pr CHANGELOG gpl-2.0.txt README VERSION /usr/src/redhat/BUILDROOT/gmediafinder-0.9.7-1.fc15.i386/usr/share/doc/gmediafinder-0.9.7
    + exit 0
    
    
    RPM build errors:
        File must begin with "/": %{py_sitedir}/*/*
    any hints ?

  2. #2
    leigh123linux Guest

    Re: compile issue with gmediafinder-0.9.7

    Change this

    %{py_sitedir}/*/*

    to

    %{python_sitelib}/*/*

  3. #3
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    446

    Re: compile issue with gmediafinder-0.9.7

    Thanks leigh123linux that works.

    But when i start gmediafinder as normal user i get this error message:

    Code:
    [martin@fc15 ~]$ gmediafinder 
    ** Message: pygobject_register_sinkfunc is deprecated (GstObject)
    Traceback (most recent call last):
      File "/usr/bin/gmediafinder", line 25, in <module>
        from GmediaFinder import gmediafinder
      File "/usr/lib/python2.7/site-packages/GmediaFinder/gmediafinder.py", line 34, in <module>
        from GmediaFinder.config import *
      File "/usr/lib/python2.7/site-packages/GmediaFinder/config.py", line 75, in <module>
        f = open(history_file,'w')
    IOError: [Errno 2] No such file or directory: '/home/martin/.config/gmediafinder/history'
    a workaround is to create the missing directory gmediafinder
    Code:
    mkdir /home/martin/.config/gmediafinder
    Is it possible to create this directory in the rpm spec file ?

    [EDIT]
    Problem is solved with the current git clone git://github.com/smolleyes/gmediafinder.git
    Last edited by TheBigRed; 10th July 2011 at 02:27 PM. Reason: solution

Similar Threads

  1. compile issue with guayadeque-0.2.9
    By TheBigRed in forum Programming & Packaging
    Replies: 2
    Last Post: 2nd March 2011, 06:26 PM
  2. compile issue with gejengel-0.1.4-svn566
    By TheBigRed in forum Programming & Packaging
    Replies: 7
    Last Post: 7th December 2010, 02:22 PM
  3. compile issue with guayadeque-0.2.7
    By TheBigRed in forum Programming & Packaging
    Replies: 2
    Last Post: 9th October 2010, 03:26 PM
  4. Qt issue during compile
    By eGrim in forum Using Fedora
    Replies: 3
    Last Post: 9th February 2007, 03:09 PM
  5. Compile program issue
    By GreyWizzard in forum Using Fedora
    Replies: 5
    Last Post: 14th April 2006, 12:37 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •