Blame SPECS/web-assets.spec

e0bdc5
#disable the httpd stuff while we're waiting on getting the path issues
e0bdc5
#cleared up
e0bdc5
%global enable_httpd 1
e0bdc5
e0bdc5
Name:           web-assets
e0bdc5
Version:        5
e0bdc5
Release:        7%{?dist}
e0bdc5
Summary:        A simple framework for bits pushed to browsers
e0bdc5
BuildArch:      noarch
e0bdc5
e0bdc5
License:        MIT
e0bdc5
URL:            https://fedoraproject.org/wiki/User:Patches/PackagingDrafts/Web_Assets
e0bdc5
e0bdc5
Source1:        LICENSE
e0bdc5
Source2:        macros.web-assets
e0bdc5
Source3:        web-assets.conf
e0bdc5
Source4:        README.devel
e0bdc5
e0bdc5
%description
e0bdc5
%{summary}.
e0bdc5
e0bdc5
%package filesystem
e0bdc5
Summary:        The basic directory layout for Web Assets
e0bdc5
#there's nothing copyrightable about a few directories and symlinks
e0bdc5
License:        Public Domain
e0bdc5
e0bdc5
%description filesystem
e0bdc5
%{summary}.
e0bdc5
e0bdc5
%package devel
e0bdc5
Summary:        RPM macros for Web Assets packaging
e0bdc5
License:        MIT
e0bdc5
Requires:       web-assets-filesystem = %{version}-%{release}
e0bdc5
e0bdc5
%description devel
e0bdc5
%{summary}.
e0bdc5
e0bdc5
%if 0%{?enable_httpd}
e0bdc5
%package httpd
e0bdc5
Summary:        Web Assets aliases for the Apache HTTP daemon
e0bdc5
License:        MIT
e0bdc5
Requires:       web-assets-filesystem = %{version}-%{release}
e0bdc5
Requires:       httpd
e0bdc5
Requires(post): systemd
e0bdc5
Requires(postun): systemd
e0bdc5
e0bdc5
%description httpd
e0bdc5
%{summary}.
e0bdc5
%endif
e0bdc5
e0bdc5
%prep
e0bdc5
%setup -c -T
e0bdc5
cp %{SOURCE1} LICENSE
e0bdc5
cp %{SOURCE4} README.devel
e0bdc5
e0bdc5
%build
e0bdc5
#nothing to do
e0bdc5
e0bdc5
%install
e0bdc5
mkdir -p %{buildroot}%{_datadir}/web-assets
e0bdc5
mkdir -p %{buildroot}%{_datadir}/javascript
e0bdc5
e0bdc5
ln -sf ../javascript %{buildroot}%{_datadir}/web-assets/javascript
e0bdc5
ln -sf ../javascript %{buildroot}%{_datadir}/web-assets/js
e0bdc5
ln -sf ../fonts %{buildroot}%{_datadir}/web-assets/fonts
e0bdc5
e0bdc5
install -Dpm0644 %{SOURCE2} %{buildroot}%{_rpmconfigdir}/macros.d/macros.web-assets
e0bdc5
e0bdc5
%if 0%{?enable_httpd}
e0bdc5
install -Dpm0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/conf.d/web-assets.conf
e0bdc5
e0bdc5
%post httpd
e0bdc5
systemctl reload-or-try-restart httpd.service || :
e0bdc5
e0bdc5
%postun httpd
e0bdc5
systemctl reload-or-try-restart httpd.service || :
e0bdc5
%endif
e0bdc5
e0bdc5
%files filesystem
e0bdc5
%{_datadir}/web-assets
e0bdc5
%{_datadir}/javascript
e0bdc5
e0bdc5
%files devel
e0bdc5
%{_rpmconfigdir}/macros.d/macros.web-assets
e0bdc5
%doc LICENSE README.devel
e0bdc5
e0bdc5
%if 0%{?enable_httpd}
e0bdc5
%files httpd
e0bdc5
%config(noreplace) %{_sysconfdir}/httpd/conf.d/web-assets.conf
e0bdc5
%doc LICENSE
e0bdc5
%endif
e0bdc5
e0bdc5
%changelog
e0bdc5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5-7
e0bdc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e0bdc5
e0bdc5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5-6
e0bdc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e0bdc5
e0bdc5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5-5
e0bdc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e0bdc5
e0bdc5
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5-4
e0bdc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e0bdc5
e0bdc5
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-3
e0bdc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e0bdc5
e0bdc5
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-2
e0bdc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e0bdc5
e0bdc5
* Wed Mar 19 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 5-1
e0bdc5
- switch to dot-prefixed Aliases
e0bdc5
- order Aliases for compatibility with older Apache releases
e0bdc5
- enable webfonts
e0bdc5
- enable symlinks in %%{_webassetdir} and %%{_jsdir}
e0bdc5
- re-enable httpd subpackage
e0bdc5
e0bdc5
* Sat Aug 24 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 4-2
e0bdc5
- tighten dependency on filesystem from other packages
e0bdc5
- add brief README to -devel
e0bdc5
e0bdc5
* Fri Aug 16 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 4-1
e0bdc5
- temporarily disable httpd stuff while we're waiting on sorting out the
e0bdc5
  directory
e0bdc5
e0bdc5
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3-1
e0bdc5
- rename directories per discussion on lists
e0bdc5
- provide a /_sysassets/js shortcut
e0bdc5
e0bdc5
* Fri Jul 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2-1
e0bdc5
- rename the license now that we have proper git
e0bdc5
- prefix httpd-exported directory with an underscore (thanks to Joe Orton)
e0bdc5
- add "Require all granted" (thanks to Remi Collet)
e0bdc5
- alias /usr/share/javascript explictly
e0bdc5
e0bdc5
* Thu Jul 11 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1-1
e0bdc5
- initial package