Blame SPECS/web-assets.spec

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