|
|
@ -1,20 +1,19 @@
|
|
|
|
#disable the httpd stuff while we're waiting on getting the path issues
|
|
|
|
%bcond_without httpd
|
|
|
|
#cleared up
|
|
|
|
%bcond_without nginx
|
|
|
|
%global enable_httpd 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: web-assets
|
|
|
|
Name: web-assets
|
|
|
|
Version: 5
|
|
|
|
Version: 5
|
|
|
|
Release: 15%{?dist}
|
|
|
|
Release: 22%{?dist}
|
|
|
|
Summary: A simple framework for bits pushed to browsers
|
|
|
|
Summary: A simple framework for bits pushed to browsers
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: https://fedoraproject.org/wiki/User:Patches/PackagingDrafts/Web_Assets
|
|
|
|
URL: https://fedoraproject.org/wiki/User:Patches/PackagingDrafts/Web_Assets
|
|
|
|
|
|
|
|
Source0: LICENSE
|
|
|
|
Source1: LICENSE
|
|
|
|
Source1: README.devel
|
|
|
|
Source2: macros.web-assets
|
|
|
|
Source2: macros.web-assets
|
|
|
|
Source3: web-assets.conf
|
|
|
|
Source3: httpd-web-assets.conf
|
|
|
|
Source4: README.devel
|
|
|
|
Source4: nginx-web-assets.conf
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
@ -23,6 +22,7 @@ Source4: README.devel
|
|
|
|
Summary: The basic directory layout for Web Assets
|
|
|
|
Summary: The basic directory layout for Web Assets
|
|
|
|
#there's nothing copyrightable about a few directories and symlinks
|
|
|
|
#there's nothing copyrightable about a few directories and symlinks
|
|
|
|
License: Public Domain
|
|
|
|
License: Public Domain
|
|
|
|
|
|
|
|
Requires: fonts-filesystem
|
|
|
|
|
|
|
|
|
|
|
|
%description filesystem
|
|
|
|
%description filesystem
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
@ -35,23 +35,32 @@ Requires: web-assets-filesystem = %{version}-%{release}
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?enable_httpd}
|
|
|
|
%if %{with httpd}
|
|
|
|
%package httpd
|
|
|
|
%package httpd
|
|
|
|
Summary: Web Assets aliases for the Apache HTTP daemon
|
|
|
|
Summary: Web Assets aliases for the Apache HTTP daemon
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
Requires: web-assets-filesystem = %{version}-%{release}
|
|
|
|
Requires: web-assets-filesystem = %{version}-%{release}
|
|
|
|
Requires: httpd
|
|
|
|
Requires: httpd
|
|
|
|
Requires(post): systemd
|
|
|
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description httpd
|
|
|
|
%description httpd
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with nginx}
|
|
|
|
|
|
|
|
%package nginx
|
|
|
|
|
|
|
|
Summary: Web Assets aliases for the nginx daemon
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
|
|
|
Requires: web-assets-filesystem = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: nginx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description nginx
|
|
|
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -c -T
|
|
|
|
%setup -c -T
|
|
|
|
cp %{SOURCE1} LICENSE
|
|
|
|
cp %{SOURCE0} LICENSE
|
|
|
|
cp %{SOURCE4} README.devel
|
|
|
|
cp %{SOURCE1} README.devel
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
#nothing to do
|
|
|
|
#nothing to do
|
|
|
@ -59,21 +68,31 @@ cp %{SOURCE4} README.devel
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/web-assets
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/web-assets
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/javascript
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/javascript
|
|
|
|
|
|
|
|
|
|
|
|
ln -sf ../javascript %{buildroot}%{_datadir}/web-assets/javascript
|
|
|
|
ln -sf ../javascript %{buildroot}%{_datadir}/web-assets/javascript
|
|
|
|
ln -sf ../javascript %{buildroot}%{_datadir}/web-assets/js
|
|
|
|
ln -sf ../javascript %{buildroot}%{_datadir}/web-assets/js
|
|
|
|
ln -sf ../fonts %{buildroot}%{_datadir}/web-assets/fonts
|
|
|
|
ln -sf ../fonts %{buildroot}%{_datadir}/web-assets/fonts
|
|
|
|
|
|
|
|
|
|
|
|
install -Dpm0644 %{SOURCE2} %{buildroot}%{_rpmconfigdir}/macros.d/macros.web-assets
|
|
|
|
install -Dpm0644 %{SOURCE2} %{buildroot}%{_rpmconfigdir}/macros.d/macros.web-assets
|
|
|
|
|
|
|
|
%if %{with httpd}
|
|
|
|
%if 0%{?enable_httpd}
|
|
|
|
|
|
|
|
install -Dpm0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/conf.d/web-assets.conf
|
|
|
|
install -Dpm0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/conf.d/web-assets.conf
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with nginx}
|
|
|
|
|
|
|
|
install -Dpm0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/nginx/default.d/web-assets.conf
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with httpd}
|
|
|
|
%post httpd
|
|
|
|
%post httpd
|
|
|
|
systemctl reload-or-try-restart httpd.service || :
|
|
|
|
[ -x %{_bindir}/systemctl ] && reload-or-try-restart httpd.service || :
|
|
|
|
|
|
|
|
|
|
|
|
%postun httpd
|
|
|
|
%postun httpd
|
|
|
|
systemctl reload-or-try-restart httpd.service || :
|
|
|
|
[ -x %{_bindir}/systemctl ] && reload-or-try-restart httpd.service || :
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with nginx}
|
|
|
|
|
|
|
|
%post nginx
|
|
|
|
|
|
|
|
[ -x %{_bindir}/systemctl ] && systemctl reload-or-try-restart nginx.service || :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun nginx
|
|
|
|
|
|
|
|
[ -x %{_bindir}/systemctl ] && systemctl reload-or-try-restart nginx.service || :
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files filesystem
|
|
|
|
%files filesystem
|
|
|
@ -82,21 +101,48 @@ systemctl reload-or-try-restart httpd.service || :
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%{_rpmconfigdir}/macros.d/macros.web-assets
|
|
|
|
%{_rpmconfigdir}/macros.d/macros.web-assets
|
|
|
|
%doc LICENSE README.devel
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%doc README.devel
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?enable_httpd}
|
|
|
|
%if %{with httpd}
|
|
|
|
%files httpd
|
|
|
|
%files httpd
|
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/conf.d/web-assets.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/conf.d/web-assets.conf
|
|
|
|
%doc LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with nginx}
|
|
|
|
|
|
|
|
%files nginx
|
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/nginx/default.d/web-assets.conf
|
|
|
|
|
|
|
|
%license LICENSE
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 5-15
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5-22
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5-21
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5-20
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5-19
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5-18
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 23 2022 Petr Pisar <ppisar@redhat.com> - 5-17
|
|
|
|
|
|
|
|
- Make a dependency on systemd optional for restarting httpd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Mar 22 2022 Petr Menšík <pemensik@redhat.com> - 5-16
|
|
|
|
|
|
|
|
- Add nginx aliases support
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5-15
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5-14
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5-14
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5-13
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|