T.C. Hollingsworth 21254a
#disable the httpd stuff while we're waiting on getting the path issues
T.C. Hollingsworth 21254a
#cleared up
T.C. Hollingsworth 21254a
%global enable_httpd 0
T.C. Hollingsworth 21254a
T.C. Hollingsworth 77c6df
Name:           web-assets
T.C. Hollingsworth 21254a
Version:        4
T.C. Hollingsworth 54bd96
Release:        2%{?dist}
T.C. Hollingsworth 77c6df
Summary:        A simple framework for bits pushed to browsers
T.C. Hollingsworth 77c6df
BuildArch:      noarch
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
License:        MIT
T.C. Hollingsworth 77c6df
URL:            https://fedoraproject.org/wiki/User:Patches/PackagingDrafts/Web_Assets
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 54b538
Source1:        LICENSE
T.C. Hollingsworth 77c6df
Source2:        macros.web-assets
T.C. Hollingsworth 77c6df
Source3:        web-assets.conf
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%description
T.C. Hollingsworth 77c6df
%{summary}.
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%package filesystem
T.C. Hollingsworth 77c6df
Summary:        The basic directory layout for Web Assets
T.C. Hollingsworth 77c6df
#there's nothing copyrightable about a few directories and symlinks
T.C. Hollingsworth 77c6df
License:        Public Domain
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%description filesystem
T.C. Hollingsworth 77c6df
%{summary}.
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%package devel
T.C. Hollingsworth 77c6df
Summary:        RPM macros for Web Assets packaging
T.C. Hollingsworth 77c6df
License:        MIT
T.C. Hollingsworth 54bd96
Requires:       web-assets-filesystem = %{version}-%{release}
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%description devel
T.C. Hollingsworth 77c6df
%{summary}.
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 21254a
%if 0%{?enable_httpd}
T.C. Hollingsworth 77c6df
%package httpd
T.C. Hollingsworth 77c6df
Summary:        Web Assets aliases for the Apache HTTP daemon
T.C. Hollingsworth 77c6df
License:        MIT
T.C. Hollingsworth 54bd96
Requires:       web-assets-filesystem = %{version}-%{release}
T.C. Hollingsworth 77c6df
Requires:       httpd
T.C. Hollingsworth 77c6df
Requires(post): systemd
T.C. Hollingsworth 77c6df
Requires(postun): systemd
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%description httpd
T.C. Hollingsworth 77c6df
%{summary}.
T.C. Hollingsworth 21254a
%endif
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%prep
T.C. Hollingsworth 77c6df
%setup -c -T
T.C. Hollingsworth 54b538
cp %{SOURCE1} LICENSE
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%build
T.C. Hollingsworth 77c6df
#nothing to do
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%install
T.C. Hollingsworth fecd0b
mkdir -p %{buildroot}%{_datadir}/web-assets
T.C. Hollingsworth 77c6df
mkdir -p %{buildroot}%{_datadir}/javascript
T.C. Hollingsworth 77c6df
T.C. Hollingsworth fecd0b
ln -sf ../javascript %{buildroot}%{_datadir}/web-assets/javascript
T.C. Hollingsworth dcb45c
ln -sf ../javascript %{buildroot}%{_datadir}/web-assets/js
T.C. Hollingsworth fecd0b
ln -sf ../fonts %{buildroot}%{_datadir}/web-assets/fonts
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
install -Dpm0644 %{SOURCE2} %{buildroot}%{_rpmconfigdir}/macros.d/macros.web-assets
T.C. Hollingsworth 21254a
T.C. Hollingsworth 21254a
%if 0%{?enable_httpd}
T.C. Hollingsworth 77c6df
install -Dpm0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/conf.d/web-assets.conf
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%post httpd
T.C. Hollingsworth 77c6df
systemctl reload-or-try-restart httpd.service || :
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%postun httpd
T.C. Hollingsworth 77c6df
systemctl reload-or-try-restart httpd.service || :
T.C. Hollingsworth 21254a
%endif
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%files filesystem
T.C. Hollingsworth fecd0b
%{_datadir}/web-assets
T.C. Hollingsworth 77c6df
%{_datadir}/javascript
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%files devel
T.C. Hollingsworth 77c6df
%{_rpmconfigdir}/macros.d/macros.web-assets
T.C. Hollingsworth 77c6df
%doc LICENSE
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 21254a
%if 0%{?enable_httpd}
T.C. Hollingsworth 77c6df
%files httpd
T.C. Hollingsworth 77c6df
%config(noreplace) %{_sysconfdir}/httpd/conf.d/web-assets.conf
T.C. Hollingsworth 77c6df
%doc LICENSE
T.C. Hollingsworth 21254a
%endif
T.C. Hollingsworth 77c6df
T.C. Hollingsworth 77c6df
%changelog
T.C. Hollingsworth 54bd96
* Sat Aug 24 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 4-2
T.C. Hollingsworth 54bd96
- tighten dependency on filesystem from other packages
T.C. Hollingsworth 54bd96
T.C. Hollingsworth 21254a
* Fri Aug 16 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 4-1
T.C. Hollingsworth 21254a
- temporarily disable httpd stuff while we're waiting on sorting out the
T.C. Hollingsworth 21254a
  directory
T.C. Hollingsworth 21254a
T.C. Hollingsworth 51f669
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3-1
T.C. Hollingsworth 51f669
- rename directories per discussion on lists
T.C. Hollingsworth 51f669
- provide a /_sysassets/js shortcut
T.C. Hollingsworth 51f669
T.C. Hollingsworth 45164b
* Fri Jul 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2-1
T.C. Hollingsworth 45164b
- rename the license now that we have proper git
T.C. Hollingsworth 45164b
- prefix httpd-exported directory with an underscore (thanks to Joe Orton)
T.C. Hollingsworth 45164b
- add "Require all granted" (thanks to Remi Collet)
T.C. Hollingsworth 45164b
- alias /usr/share/javascript explictly
T.C. Hollingsworth 45164b
T.C. Hollingsworth 77c6df
* Thu Jul 11 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1-1
T.C. Hollingsworth 77c6df
- initial package