diff options
author | Andrei Belov <defan@nginx.com> | 2019-02-28 18:22:15 +0300 |
---|---|---|
committer | Andrei Belov <defan@nginx.com> | 2019-02-28 18:22:15 +0300 |
commit | 7ce6f0597543baee4275e8d66567d08f2ddaf48b (patch) | |
tree | 1ccc536803ebcfa99626770521c11674ccef5722 /pkg/rpm/unit.module.spec.in | |
parent | 834e8ca576868c5ecd104bd5ebec9968c7f80a0b (diff) | |
download | unit-7ce6f0597543baee4275e8d66567d08f2ddaf48b.tar.gz unit-7ce6f0597543baee4275e8d66567d08f2ddaf48b.tar.bz2 |
Packages: added unit-jsc (Java Servlet Container) family.
Diffstat (limited to '')
-rw-r--r-- | pkg/rpm/unit.module.spec.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/rpm/unit.module.spec.in b/pkg/rpm/unit.module.spec.in index 8b8a3433..6a229c0f 100644 --- a/pkg/rpm/unit.module.spec.in +++ b/pkg/rpm/unit.module.spec.in @@ -72,14 +72,20 @@ 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 |