Compare commits

...

No commits in common. 'c10-beta' and 'c9' have entirely different histories.
c10-beta ... c9

@ -1,21 +0,0 @@
# allow access to /.sysassets
location /.sysassets/fonts {
alias /usr/share/fonts;
autoindex off;
}
location /.sysassets/javascript {
alias /usr/share/javascript;
autoindex off;
}
location /.sysassets/js {
alias /usr/share/javascript;
autoindex off;
}
location /.sysassets/ {
alias /usr/share/web-assets;
autoindex off;
}

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

Loading…
Cancel
Save