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

Axilleas Pipinellis axilleaspi at ymail.com
Thu Jul 4 21:19:54 UTC 2013


On 07/04/2013 09:50 PM, Philip Rhoades wrote:
> Vít,
>
>
> On 2013-07-04 15:31, Vít Ondruch wrote:
>> Dne 2.7.2013 18:48, Philip Rhoades napsal(a):
>>> Vít,
>>>
>>>
>>> On 2013-07-02 15:47, Vít Ondruch wrote:
>>>> Dne 2.7.2013 00:27, Philip Rhoades napsal(a):
>>>>> Vít,
>>>>>
>>>>>
>>>>> On 2013-07-01 16:52, Vít Ondruch wrote:
>>>>>> Dne 30.6.2013 17:17, Philip Rhoades napsal(a):
>>>>>>>
>>>>>>>
>>>>>>> I tried changing the sections as you suggested but the errors are
>>>>>>> still the same . .
>>>>>>
>>>>>> Have you rebuild your SRPM actually? That must works. Show us your
>>>>>> SRPM.
>>>>>
>>>>>
>>>>> It seems that is not getting built either:
>>>>
>>>> You can build SRPM from .spec file using "fedpkg --dist f20 srpm".
>>>
>>>
>>> Whatever dir I execute that in, I get something like:
>>>
>>> Could not execute srpm: dirx is not a valid repo: [Errno 2] No such
>>> file or directory: 'dirx/sources'
>>
>> It complains you don't have the "sources" file in your directory.
>> "touch sources" should fix this issue.
>
>
> OK, the src.rpm now builds OK.
>
>
>>> 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?
>
>

If you followed this guide [0], then when you ran rpmdev-setuptree, it 
should have created the ~/rpmbuild directory and a set of 
subdirectories. One of them is SOURCES. With this structure you use 
rpmbuild. This is one tool of the 'many' you can use to build a package. 
fedpkg is a different one, which I am not familiar with yet.

>
> 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

...snip

Can you please post somewhere your spec file? Mine is here[1] so that 
you can compare.

[0] 
https://fedoraproject.org/wiki/How_to_create_an_RPM_package#Preparing_your_system
[1] http://axilleas.fedorapeople.org/pkgs/rubygem-devise/rubygem-devise.spec


-- 
FAS : axilleas
GPG : 0xABF99BE5
Blog: http://axilleas.github.io


More information about the ruby-sig mailing list