Policy re Gems that don't have RPMs yet? - devise attempt

Vít Ondruch vondruch at redhat.com
Mon Jul 8 10:51:29 UTC 2013


Dne 4.7.2013 20:50, Philip Rhoades napsal(a):
>
>>> BTW, that should be f18 in my case I think.
>>>
>>> Since the gem file has a tar.gz format, I thought that should go in 
>>> the SOURCES dir - should I actually find the devise tar.gz file and 
>>> put that there?
>>
>> fedpkg is looking for sources in the same directory as the .spec file,
>> no SOURCES directory is needed.
>
>
> Seems confusing - why are unnecessary dirs being created?

Well, if you are using rpmbuild, then they are necessary.

Nevertheless, I don't suggest to use rpmbuild directly. I always suggest 
to use mock [1]. Mock allows you to build packages isolated from your 
system and it may prevent issues such as missing BuildRequires, etc. 
fedpkg is wrapper above rpmbuild, git, etc and it allows some nice 
tricks, such checkout of package sources from Fedora's dist git, 
building SRPM from this sources, etc.

>
>> BTW gem with .tar.gz? Looks extraordinary. I would not recommend to
>> follow this path.
>
>
> But with:
>
>   rpmbuild -ba rubygem-devise.spec
>
> I still get the original problems:
>
> Checking for unpackaged file(s): /usr/lib/rpm/check-files 
> /home/makerpm/rpmbuild/BUILDROOT/rubygem-devise-2.2.4-1.fc18.x86_64
> error: Installed (but unpackaged) file(s) found:
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise/confirmations_controller.rb
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise/omniauth_callbacks_controller.rb
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise/passwords_controller.rb
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise/registrations_controller.rb
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise/sessions_controller.rb
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise/unlocks_controller.rb
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise_controller.rb
>    /usr/share/gems/gems/devise-2.2.4/app/helpers/devise_helper.rb
>    /usr/share/gems/gems/devise-2.2.4/app/mailers/devise/mailer.rb
>    /usr/share/gems/gems/devise-2.2.4/app/views/devise/_links.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/confirmations/new.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/mailer/confirmation_instructions.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/mailer/reset_password_instructions.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/mailer/unlock_instructions.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/passwords/edit.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/passwords/new.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/registrations/edit.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/registrations/new.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/shared/_links.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/unlocks/new.html.erb
>    /usr/share/gems/gems/devise-2.2.4/config/locales/en.yml
>    /usr/share/gems/gems/devise-2.2.4/devise.png
>
> RPM build errors:
>     Installed (but unpackaged) file(s) found:
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise/confirmations_controller.rb
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise/omniauth_callbacks_controller.rb
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise/passwords_controller.rb
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise/registrations_controller.rb
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise/sessions_controller.rb
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise/unlocks_controller.rb
> /usr/share/gems/gems/devise-2.2.4/app/controllers/devise_controller.rb
>    /usr/share/gems/gems/devise-2.2.4/app/helpers/devise_helper.rb
>    /usr/share/gems/gems/devise-2.2.4/app/mailers/devise/mailer.rb
>    /usr/share/gems/gems/devise-2.2.4/app/views/devise/_links.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/confirmations/new.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/mailer/confirmation_instructions.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/mailer/reset_password_instructions.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/mailer/unlock_instructions.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/passwords/edit.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/passwords/new.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/registrations/edit.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/registrations/new.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/shared/_links.erb
> /usr/share/gems/gems/devise-2.2.4/app/views/devise/unlocks/new.html.erb
>    /usr/share/gems/gems/devise-2.2.4/config/locales/en.yml
>    /usr/share/gems/gems/devise-2.2.4/devise.png
>
> Thanks,

You have to fix your %files section, but unless you provide us with your 
.spec file or better with your SRPM, it is hard to guess what is wrong.


Vít


More information about the ruby-sig mailing list