Difference between revisions of "Template Spec Files"

From Rosalab Wiki
Jump to: navigation, search
(Fix release)
(Add cmake template)
Line 29: Line 29:
 
%makeinstall_std
 
%makeinstall_std
  
%find_lang %name
+
%find_lang %{name}
 +
</pre>
 +
 
 +
==Spec file for a program built using CMake==
 +
 
 +
<pre>
 +
Name: foo
 +
Version: 1.0
 +
Release: 1
 +
Summary: foo
 +
License: foo
 +
Group: foo
 +
URL: foo
 +
Source0: %{name}-%{version}.tar.bz2
 +
BuildRequires:  cmake
 +
 
 +
%description
 +
foo
 +
 
 +
%files -n %{name}
 +
 
 +
#-----------------------------------------------
 +
 
 +
%prep
 +
%setup -q
 +
 
 +
%build
 +
%cmake
 +
%make
 +
 
 +
%install
 +
%makeinstall_std -C build
 +
 
 +
%find_lang %{name}
 
</pre>
 
</pre>

Revision as of 14:56, 14 July 2014

Spec file for a program built using GNU Autotools

Name:		foo	
Version:	1.0
Release:	1
Summary:	foo
License:	foo
Group:		foo
URL:		foo
Source0:	%{name}-%{version}.tar.bz2

%description
foo

%files -n %{name}

#-----------------------------------------------

%prep
%setup -q

%build
%configure2_5x

%make

%install
%makeinstall_std

%find_lang %{name}

Spec file for a program built using CMake

Name:		foo	
Version:	1.0
Release:	1
Summary:	foo
License:	foo
Group:		foo
URL:		foo
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:  cmake

%description
foo

%files -n %{name}

#-----------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

%find_lang %{name}