myrpm.spec 672 Bytes
Newer Older
Alex Iribarren's avatar
Alex Iribarren committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Name: myrpm
Version: 1.1
Release: 1%{?dist}
Summary: Super useful program

Group: CERN/Utilities
License: CERN
URL: 	https://cern.ch/myrpm
Source: %{name}-%{version}.tgz

BuildRequires: gcc-c++

%define debug_package %{nil}


%description
Just try to live without this

%prep
%setup -n %{name}-%{version}


%build
rm -rf %{buildroot}
cd src/
g++ -Wall -o hello-world hello-world.cpp


%install
install -d %{buildroot}%{_bindir}
cd src/
install -m 0755 hello-world %{buildroot}%{_bindir}/hello-world


%files
%defattr(-,root,root,-)
%{_bindir}/hello-world
%doc src/README.md



%changelog
* Fri Oct 11 2019 Alex Iribarren <Alex.Iribarren@cern.ch> - 1.0-1
- Initial version