-
Notifications
You must be signed in to change notification settings - Fork 0
/
odb.spec
52 lines (35 loc) · 964 Bytes
/
odb.spec
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
49
50
51
Name: ODB
Version: 10.0
Release: 1%{?dist}
Summary: Why You use RPM if you can use maven?
Group: Lolo
License: Uganda Drivers License
URL: http://idontknowwhyineedtopackagethisstupidpackage.com
Source0: odb.tar.gz
Source1: ironcloud.conf
Source2: odb.init
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
ODB package ...
#One day Nikita asks for ODB RPM instead of JUST using maven. And then this stupid and unneeded package was born ...
%prep
%setup -q -n odb
%build
%install
install -d -m 755 %{buildroot}%{_datarootdir}
install -d -m 755 %{buildroot}%{_sysconfdir}
cp -r odb %{buildroot}%{_datarootdir}/
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/ironcloud.conf
install -p -D -m 755 %{SOURCE2} %{buildroot}%{_initrddir}/odb
%clean
rm -rf $RPM_BUILD_ROOT
%post
%preun
%files
%defattr(-,root,root,-)
%{_datarootdir}/odb
%{_initrddir}/odb
%config(noreplace)
%{_sysconfdir}/ironcloud.conf
%doc
%changelog