unit.module.spec.in (938:ef76227ec159) unit.module.spec.in (940:fe0d5eb09b66)
1# distribution specific definitions
2%define bdir %{_builddir}/%{name}-%{version}
3
4%%MODULE_DEFINITIONS%%
5
6%if (0%{?rhel} == 7 && 0%{?amzn} == 0)
7%define dist .el7
8%endif

--- 34 unchanged lines hidden (view full) ---

43directly in the cloud / container environments and fully control your app
44dynamically via an API.
45This package contains %%SUMMARY%%.
46
47%if 0%{?suse_version}
48%debug_package
49%endif
50
1# distribution specific definitions
2%define bdir %{_builddir}/%{name}-%{version}
3
4%%MODULE_DEFINITIONS%%
5
6%if (0%{?rhel} == 7 && 0%{?amzn} == 0)
7%define dist .el7
8%endif

--- 34 unchanged lines hidden (view full) ---

43directly in the cloud / container environments and fully control your app
44dynamically via an API.
45This package contains %%SUMMARY%%.
46
47%if 0%{?suse_version}
48%debug_package
49%endif
50
51%if 0%{?fedora}
52%define _debugsource_template %{nil}
53%endif
54
55%prep
56%setup -qcTn %{name}-%{unit_version}
57tar --strip-components=1 -zxf %{SOURCE0}
58
59%build
60./configure \
61 %{CONFIGURE_ARGS} \
62 --modules=%{_libdir}/unit/debug-modules \

--- 18 unchanged lines hidden (view full) ---

81%%MODULE_PREINSTALL%%
82%{__ln_s} build-debug build
83DESTDIR=%{buildroot} make %%MODULE_INSTARGS%%
84%{__rm} -f build
85%{__ln_s} build-nodebug build
86DESTDIR=%{buildroot} make %%MODULE_INSTARGS%%
87
88%check
51%prep
52%setup -qcTn %{name}-%{unit_version}
53tar --strip-components=1 -zxf %{SOURCE0}
54
55%build
56./configure \
57 %{CONFIGURE_ARGS} \
58 --modules=%{_libdir}/unit/debug-modules \

--- 18 unchanged lines hidden (view full) ---

77%%MODULE_PREINSTALL%%
78%{__ln_s} build-debug build
79DESTDIR=%{buildroot} make %%MODULE_INSTARGS%%
80%{__rm} -f build
81%{__ln_s} build-nodebug build
82DESTDIR=%{buildroot} make %%MODULE_INSTARGS%%
83
84%check
89%{__rm} -rf %{buildroot}/usr/src
90cd %{bdir}
91grep -v 'usr/src' debugfiles.list > debugfiles.list.new && mv debugfiles.list.new debugfiles.list
92cat /dev/null > debugsources.list
93%if 0%{?suse_version} >= 1500
94cat /dev/null > debugsourcefiles.list
95%endif
96
97%clean
98%{__rm} -rf %{buildroot}
99
100%post
101if [ $1 -eq 1 ]; then
102%%MODULE_POST%%
103fi
104
105%files
106%defattr(-,root,root,-)
107%dir %{_datadir}/doc/%%NAME%%
108%{_datadir}/doc/%%NAME%%/*
109%%MODULE_FILES%%
110
111%changelog
85
86%clean
87%{__rm} -rf %{buildroot}
88
89%post
90if [ $1 -eq 1 ]; then
91%%MODULE_POST%%
92fi
93
94%files
95%defattr(-,root,root,-)
96%dir %{_datadir}/doc/%%NAME%%
97%{_datadir}/doc/%%NAME%%/*
98%%MODULE_FILES%%
99
100%changelog