Repository Spec file

Posted by ahmadfrompk on Server Fault See other posts from Server Fault or by ahmadfrompk
Published on 2012-01-26T06:33:23Z Indexed on 2012/06/12 22:42 UTC
Read the original article Hit count: 145

Filed under:
|
|

I have source of webfiles. I need to make a RPM for it. I have placed my source in SOURCES folder and use following spec file. But it is creating noarch rpm with 2MB size, but my source is greater than 2MB size. Its also did not attach files with this. I think i have a problem in spec file.

Summary: my_project rpm script package
Name: my_project
Version: 1
Release: 1
Source0: my_project-1.tar.gz
License: GPL
Group: MyJunk
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-buildroot
%description
Make some relevant package description here
%prep
%setup -q
%build
%install
install -m 0755 -d $RPM_BUILD_ROOT/opt/my_project
%clean
rm -rf $RPM_BUILD_ROOT
%post
echo " "
echo "This will display after rpm installs the package!"
%files
%dir /opt/my_project

© Server Fault or respective owner

Related posts about rpm

Related posts about rpmbuild