diff options
Diffstat (limited to 'pkg/rpm/unit.module.spec.in')
-rw-r--r-- | pkg/rpm/unit.module.spec.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/rpm/unit.module.spec.in b/pkg/rpm/unit.module.spec.in index d86469f4..ab55d2a4 100644 --- a/pkg/rpm/unit.module.spec.in +++ b/pkg/rpm/unit.module.spec.in @@ -48,6 +48,10 @@ This package contains %%SUMMARY%%. %debug_package %endif +%if 0%{?fedora} +%define _debugsource_template %{nil} +%endif + %prep %setup -qcTn %{name}-%{unit_version} tar --strip-components=1 -zxf %{SOURCE0} @@ -72,16 +76,29 @@ make %%MODULE_MAKEARGS%% %install %{__rm} -rf %{buildroot} %{__mkdir} -p %{buildroot}%{_datadir}/doc/%%NAME%% +if [ `basename %{SOURCE100}` == COPYRIGHT.%{name} ]; then +%{__install} -m 644 -p %{SOURCE100} \ + %{buildroot}%{_datadir}/doc/%%NAME%%/COPYRIGHT +else %{__install} -m 644 -p NOTICE \ %{buildroot}%{_datadir}/doc/%%NAME%%/COPYRIGHT +fi %%MODULE_PREINSTALL%% %{__ln_s} build-debug build DESTDIR=%{buildroot} make %%MODULE_INSTARGS%% %{__rm} -f build %{__ln_s} build-nodebug build DESTDIR=%{buildroot} make %%MODULE_INSTARGS%% +%%MODULE_POSTINSTALL%% %check +%{__rm} -rf %{buildroot}/usr/src +cd %{bdir} +grep -v 'usr/src' debugfiles.list > debugfiles.list.new && mv debugfiles.list.new debugfiles.list +cat /dev/null > debugsources.list +%if 0%{?suse_version} >= 1500 +cat /dev/null > debugsourcefiles.list +%endif %clean %{__rm} -rf %{buildroot} |