Trying to build an RPM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 

I have been trying all day to create an RPM package unsuccessfuly.

Here is what I have done:

I have tarball called "my_app-1.1.0.tar.gz" which basicly contains all
the files required for a web application to work, html, flash, cgis,
php, images etc. the files are organized in the hierachy they are to
be installed.

At the end I just end with my_app-debuginfo-version-release.rpm, which
is a an empty rpm.

(Wrote: /home/username/rpms/RPMS/i386/my_app-debuginfo-1.1.0-1.i386.rpm)

Also I redirect STDERR to a file to try to find the problem, the last I get is:

...
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
warning: Installed (but unpackaged) file(s) found:
...
long list of files that should have been included in the rpm


This is my specfile:

Summary: Web application
Name: my_app
Version: 1.1.0
Release: 1
Group: MY_GROUP
Copyright: MY_LICENSE
Source: %{name}-%{version}.tar.gz
BuildRoot: /home/username/rpms/BUILD/%{name}-%{version}-%{release}

%define _unpackaged_files_terminate_build 0

%description
This is my_app version 1.1.0
%prep
rm -rf %{buildroot}
mkdir -p %{buildroot}
cd ${RPM_SOURCE_DIR}
zcat my_app-1.1.0.tar.gz | tar xvf -

%setup -q
%build
%install
cd ${RPM_SOURCE_DIR}/my_app-1.1.0
cp -fR * %{buildroot}/

Any help would be greatly appreciated,

Juan Natera

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux