Compare commits

...
Sign in to create a new pull request.

9 commits

Author SHA1 Message Date
Petr Písař
ed56c4869c Rename source package to web-assets-epel
Koji uses SRPM name for tagging:

    BuildError: package web-assets not in list for tag epel9-testing-candidate

bug #2036086
2022-01-11 17:44:33 +01:00
Petr Písař
4618392f24 Rename spec file to EPEL9-specfic web-assets-epel
A spec file name must match a component name.

bug #2036086
2022-01-11 17:33:38 +01:00
Petr Písař
b093c7fd59 Disable filesystem subpackage as it is already provided by CentOS 9 Stream
This package supplies subpackages of CentOS 9 stream build
web-assets-5-15.el9 which are not shipped in any repository.
2022-01-11 17:28:12 +01:00
Petr Písař
e762e5822f Merge commit 'aa2f00bf44' into epel9
Merged from CentOS Stream c9s branch as referred in
web-assets-5-15.el9 CentOS Stream 9 build.
2022-01-11 16:52:44 +01:00
Mohan Boddu
aa2f00bf44 Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-08-10 01:19:21 +00:00
Mohan Boddu
786ddbf128 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-04-16 06:10:09 +00:00
DistroBaker
85f0467f54 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/web-assets.git#f70ffdfce1f26e3686d5ad84f6b07edaaa3c9c4b
2021-02-05 07:57:00 +01:00
Troy Dawson
702750fce0 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/web-assets#7f330215846fd1c161cacb3598675eba4aed34cf
2020-10-15 13:40:40 -07:00
Release Configuration Management
1fa6e47c6a New branch setup 2020-10-09 05:19:11 +00:00
8 changed files with 277 additions and 2 deletions

0
.gitignore vendored Normal file
View file

19
LICENSE Normal file
View file

@ -0,0 +1,19 @@
Copyright 2013 T.C. Hollingsworth <tchollingsworth@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

8
README.devel Normal file
View file

@ -0,0 +1,8 @@
web-assets-devel contains the RPM macros that implement the Fedora Web Assets
and JavaScript packaging policies.
For more information on packaging Web Assets, see:
https://fedoraproject.org/wiki/Packaging:Web_Assets
For more information on packaging JavaScript, see:
https://fedoraproject.org/wiki/Packaging:JavaScript

View file

@ -1,3 +1,19 @@
# web-assets-epel
one directory to rule them all
==============================
A simple framework for bits pushed to browsers
For more information, see the
[proposal](https://fedoraproject.org/Changes/Web_Assets) and
[proposed guidelines](https://fedoraproject.org/User:Patches/PackagingDrafts/Web_Assets)
Try Me
------
```sh
sudo yum install git fedora-packager
git clone https://github.com/tchollingsworth/fedora-web-assets
cd fedora-web-assets
fedpkg --dist=f19 local
sudo yum install noarch/*
```
[There are also some builds here.](http://patches.fedorapeople.org/web-assets/)

13
macros.web-assets Normal file
View file

@ -0,0 +1,13 @@
%_webassetdir %{_datadir}/web-assets
%_jsdir %{_datadir}/javascript
%js_includes() %{expand: \
%(
ver=$(rpm -q --qf='%%{version}' -- %1)
if [[ $? -eq 0 ]]; then
echo "Provides: js-includes(%1) = $ver"
else
echo "Provides: js-includes(%1)"
fi
)
}

0
sources Normal file
View file

176
web-assets-epel.spec Normal file
View file

@ -0,0 +1,176 @@
#disable the httpd stuff while we're waiting on getting the path issues
#cleared up
%global enable_httpd 1
Name: web-assets-epel
Version: 5
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
Source1: LICENSE
Source2: macros.web-assets
Source3: web-assets.conf
Source4: README.devel
%description
%{summary}.
%if 0
# Disabled for EPEL 9 as already provided by CentOS 9 Stream, bug #2036086
%package -n web-assets-filesystem
Summary: The basic directory layout for Web Assets
#there's nothing copyrightable about a few directories and symlinks
License: Public Domain
%description -n web-assets-filesystem
%{summary}.
%endif
%package -n web-assets-devel
Summary: RPM macros for Web Assets packaging
License: MIT
Requires: web-assets-filesystem = %{version}-%{release}
%description -n web-assets-devel
%{summary}.
%if 0%{?enable_httpd}
%package -n web-assets-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 -n web-assets-httpd
%{summary}.
%endif
%prep
%setup -c -T
cp %{SOURCE1} LICENSE
cp %{SOURCE4} README.devel
%build
#nothing to do
%install
%if 0
# Disabled for EPEL 9 as already provided by CentOS 9 Stream, bug #2036086
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
%endif
install -Dpm0644 %{SOURCE2} %{buildroot}%{_rpmconfigdir}/macros.d/macros.web-assets
%if 0%{?enable_httpd}
install -Dpm0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/conf.d/web-assets.conf
%post -n web-assets-httpd
systemctl reload-or-try-restart httpd.service || :
%postun -n web-assets-httpd
systemctl reload-or-try-restart httpd.service || :
%endif
%if 0
# Disabled for EPEL 9 as already provided by CentOS 9 Stream, bug #2036086
%files -n web-assets-filesystem
%{_datadir}/web-assets
%{_datadir}/javascript
%endif
%files -n web-assets-devel
%{_rpmconfigdir}/macros.d/macros.web-assets
%doc LICENSE README.devel
%if 0%{?enable_httpd}
%files -n web-assets-httpd
%config(noreplace) %{_sysconfdir}/httpd/conf.d/web-assets.conf
%doc LICENSE
%endif
%changelog
* Tue Jan 11 2022 Petr Pisar <ppisar@redhat.com> - 5-15
- Disable filesystem subpackage as it is already provided by CentOS 9 Stream
(bug #2036086)
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 5-15
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* 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
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Mar 19 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 5-1
- switch to dot-prefixed Aliases
- order Aliases for compatibility with older Apache releases
- enable webfonts
- enable symlinks in %%{_webassetdir} and %%{_jsdir}
- re-enable httpd subpackage
* Sat Aug 24 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 4-2
- tighten dependency on filesystem from other packages
- add brief README to -devel
* Fri Aug 16 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 4-1
- temporarily disable httpd stuff while we're waiting on sorting out the
directory
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3-1
- rename directories per discussion on lists
- provide a /_sysassets/js shortcut
* Fri Jul 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2-1
- rename the license now that we have proper git
- prefix httpd-exported directory with an underscore (thanks to Joe Orton)
- add "Require all granted" (thanks to Remi Collet)
- alias /usr/share/javascript explictly
* Thu Jul 11 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1-1
- initial package

43
web-assets.conf Normal file
View file

@ -0,0 +1,43 @@
<Directory /usr/share/web-assets>
Options -Indexes +FollowSymLinks
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
<Directory /usr/share/javascript>
Options -Indexes +FollowSymLinks
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
<Directory /usr/share/fonts>
Options -Indexes
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
Alias /.sysassets/fonts /usr/share/fonts
Alias /.sysassets/javascript /usr/share/javascript
Alias /.sysassets/js /usr/share/javascript
Alias /.sysassets /usr/share/web-assets