-
Notifications
You must be signed in to change notification settings - Fork 0
/
module.spec.in
52 lines (35 loc) · 998 Bytes
/
module.spec.in
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
52
%define BUILD_SHARED_LIBRARY @BUILD_SHARED_LIBRARY@
%define CUSTOM_HTML @CUSTOM_HTML@
%define ENABLE_ADMIN @ENABLE_ADMIN@
Name: @PACKAGE_TARNAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Summary: @MODULE_SUMMARY@
License: @MODULE_LICENSE@
URL: %URL%
Source0: @PACKAGE_TARNAME@-%{version}.tar.gz
BuildRequires: poco-devel >= 1.7.5, oxool-devel >= 4.0.0
Requires: oxool >= 4.0.0
%description
@MODULE_DESCRIPTION@
%prep
%setup -q -n @PACKAGE_TARNAME@-%{version}
%build
%configure
%make_build
%install
rm -rf $RPM_BUILD_ROOT
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%files
%config(noreplace) %attr(640, lool, root) @OXOOL_MODULE_CONFIG_DIR@/*
%if "%{BUILD_SHARED_LIBRARY}" == "true"
@OXOOL_MODULES_DIR@/*
%endif
%if "%{CUSTOM_HTML}" == "true"
@OXOOL_MODULE_DATA_DIR@/@MODULE_NAME@/html/*
%endif
%if "%{ENABLE_ADMIN}" == "true"
@OXOOL_MODULE_DATA_DIR@/@MODULE_NAME@/admin/*
%endif
%changelog