Build RPM package from source code

# yum install rpm-build
# wget http://rsync.samba.org/ftp/rsync/rsync-3.0.9.tar.gz
# vim rsync.spec
Name:rsync
Version:3.0.9
Release: 1%{?dist}
Summary:GNU rsync

Group:Development/Tools
License:GPL
URL:www.rsync.com
Source0:%{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

#BuildRequires:
#Requires:

%description
Rsync is a syncup tool

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc

%changelog
# cp rsync-3.0.9.tar.gz rpmbuild/SOURCES/
# rpmbuild -bb rsync.spec

Build RPM package from source code,布布扣,bubuko.com

时间: 2024-08-09 21:50:23

Build RPM package from source code的相关文章

How to build windows azure PowerShell Source Code

Download any version source code of Windows Azure Powershell from https://github.com/Azure/azure-sdk-tools/releases Downdload Wix ToolSet from http://wix.codeplex.com/releases/view/115492 and install it to let your VS supports Wix component. Build \W

How to Build MySQL from Source Code on Windows & compile MySQL on win7+vs2010

Not counting obtaining the source code, and once you have the prerequisites satisfied, [Windows] users can build from source code in 5 easy steps. Prerequisites – Install & ensure they are in the $PATH: CMake <-- Download C++ compiler <-- Visual

How to compile and install Snort from source code on Ubuntu

http://www.tuicool.com/articles/v6j2Ab Snort is by far the most popular open-source network intrusion detection and prevention system (IDS/IPS) for Linux. Snort can conduct detailed traffic analysis, including protocol analysis, packet content search

How to create an rpm package

转自:https://linuxconfig.org/how-to-create-an-rpm-package Rpm is both the package manager and the package format used by many linux distributions such as Fedora, Red Hat and CentOS, to manage and distribute software in binary form. In this tutorial we

Thinking in Java 4th Edition Source Code

Thinking in Java 4th Edition Source Code Instructions for downloading, installing and testing the source code Download the source code zip file from this link. Create a directory in which to install the code. For these instructions, we'll refer to th

Tips for newbie to read source code

作者:ll kid链接:https://zhuanlan.zhihu.com/p/23796485来源:知乎著作权归作者所有.商业转载请联系作者获得授权,非商业转载请注明出处. This post is first posted on my WeChat public account: GeekArtT Reading source code is always one big part for software engineers. Just like the writers to learn

C#调试含有源代码的动态链接库遇见there is no source code available for the current location提示时的解决方案

C#调试含有源代码的动态链接库遇见there is no source code available for the current location提示时的解决方案: 1.首先试最常规的方法:Clean and then rebuild solution,但是没有解决 2.进入Tools>Options,选择Debugging>General 却掉 Enable address-level debugging 选项,在去掉 Require source files to exactly ma

DevExpress Components16.2.6 Source Code 重编译教程

http://www.cnblogs.com/Soar1991/p/6669862.html DevExpress 是一个比较有名的界面控件套件,提供了一系列优秀的界面控件.这篇文章将展示如何在拥有源代码的情况下,对 DevExpress 的程序集进行重新编译. 特别提示:重编译后,已安装好的 DevExpress Demo 项目都将无法正常运行,需要将 Demo 也进行重编译操作后,方可恢复正常,新手请注意. 系统必备 Windows 7 SP1 以上操作系统 Visual Studio 20

DevExpress Components16.2.6 Source Code 编译

DevExpress 是一个比较有名的界面控件套件,提供了一系列优秀的界面控件.这篇文章将展示如何在拥有源代码的情况下,对 DevExpress 的程序集进行重新编译. 特别提示:重编译后,已安装好的 DevExpress Demo 项目都将无法正常运行,需要将 Demo 也进行重编译操作后,方可恢复正常,新手请注意. 系统必备 Windows 7 SP1 以上操作系统 Visual Studio 2010 SP1 .Net Framework 4.5 [ 下载 .Net Framework 4