-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathspecfile-template.ini
51 lines (37 loc) · 1022 Bytes
/
specfile-template.ini
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
45
46
47
48
Name: %%NAME%%
Version: %%VERSION%%
Release: 1
Summary: %{name} package
Group: Development/Libraries
License: MIT
URL: https://example.com/%{name}
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}
BuildArch: noarch
# BuildRequires:
# Requires:
%description
%{name} package. Nothing to see here.
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/sbin/
mkdir -p $RPM_BUILD_ROOT/etc/%{name}
mkdir -p $RPM_BUILD_ROOT/var/lib/%{name}
cp $RPM_BUILD_DIR/%{name}-%{version}/%{name}-test-file.txt $RPM_BUILD_ROOT/etc/%{name}/
cp $RPM_BUILD_DIR/%{name}-%{version}/%{name}-dummy-data.dat $RPM_BUILD_ROOT/var/lib/%{name}
cp $RPM_BUILD_DIR/%{name}-%{version}/%{name} $RPM_BUILD_ROOT/usr/sbin/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%config %{_sysconfdir}/
%{_sysconfdir}/%{name}
/var/lib/%{name}
/var/lib/%{name}/%{name}-dummy-data.dat
/usr/sbin/%{name}
%changelog
* Wed May 05 2010 <[email protected]> - %%VERSION%%.1
- Initial rev