[Fedora-packaging] RPM packaging for fedora 10 problem

Gary T. Giesen giesen at snickers.org
Thu Sep 3 15:39:28 UTC 2009


Also, if this is your own program, this should also include a LICENSE
file with the text of the license for the program.

GG

On 9/3/09, Dan Horák <dan at danny.cz> wrote:
> ram s píše v Čt 03. 09. 2009 v 17:36 +0530:
>> Hello all,
>>
>> sorry to ask questions again and again.
>> I am new to rpm packaging.
>>
>> I am trying to  create one RPM package for my daemon application in
>> Fedora 10.
>>
>> daemon application contains ,
>> 1. daemon.c
>> 2. daemon.h
>> 3. list.c
>> 4.list.h
>> 5.makefile.
>>
>> So , I am just tar the daemon application as "daemon.tar.gz".
>>
>> I put this daemon.tar.gz in /home/user/rpmbuild/SOURCES directory.
>>
>> I am creating spec filr and put it in /home/user/rpmbuild/SPECS
>> directory.
>>
>> Now, I am trying to create binary RPM for my application. I am in
>> x86_64 architecture.
>>
>> when I run rpmbuild -bs daemon-1.spec   and then rpmbuild -bb
>> daemon-1.spec
>>
>> only source rpm created. Binary RPM is not created.
>>
>> How to cretae binary RPM for my application.
>> If my spec file is wrong, please correct me.
>> I create .rpmmacros in my home director (/home/user/).
>>
>>
>> MY spec file is,
>>
>> [SPEC]
>> Summary: This Package install Daemon application
>> Name: daemon
>> Version:1
>> Release:1
>> License: GPL
>> Group: Applications/System
>> Source:daemon.tar.gz
>> BuildRoot: /home/nco_user/rpmbuild/tmp
>>
>> BuildArch:noarch
> ^^^^
> drop this line, a package that is built from C sources can't be "noarch"
>
>> Packager:S.J.Ram
>>
>> %description
>> This Package install Daemon application
>> %prep
>> %setup -q
>> %build
>> make
>>
>> %install
>> rm -rf $RPM_BUILD_ROOT
>> make install
>>
>> %clean
>> rm -rf $RPM_BUILD_ROOT
>>
>> %files
>> %defattr(-,root,root,-)
>> %{_tmppath}/daemon
>>
>> [/SPEC]
>>
>>
>> please guide me to create binary rpm.
>> Do I need to change SPEC file?.
>>
>> If any one already did RPM package for their C or java application,
>> please give me the example (with one tar.gz file)
>> thank you.
>
>
> 		Dan
>
>
> --
> Fedora-packaging mailing list
> Fedora-packaging at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-packaging
>
>




More information about the Fedora-packaging mailing list