Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:infrastructure
download-o-o
download-o-o.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File download-o-o.spec of Package download-o-o
# # spec file for package download-o-o # # Copyright (c) 2020-2022 Jacob Michalskie <hel@lcp.world>. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: download-o-o Version: 20200713 Release: 0 License: CC-BY-SA-4.0 Summary: Autoindex theme for download.opensuse.org Url: http://download.opensuse.org/ Source0: %{name}-%{version}.tar.gz Source1: jekyll-theme.tar.gz BuildRequires: ruby-devel BuildRequires: rubygem(%{rb_default_ruby_abi}:bundler) BuildRequires: gcc-c++ BuildRequires: apache2-devel BuildRequires: git-core Requires: apache2 BuildArch: noarch %define apache_sysconfdir %(/usr/sbin/apxs2 -q SYSCONFDIR) %description Autoindex theme for download.opensuse.org. %prep %autosetup -b 1 ls %{_builddir} cp -r %{_sourcedir}/vendor vendor cp -r %{_builddir}/jekyll-theme vendor/jekyll-theme %build %if 0%{?suse_version} > 1500 bundler config set local.jekyll-theme-openSUSE vendor/jekyll-theme bundler config set allow_online_install false %else bundler config local.jekyll-theme-openSUSE vendor/jekyll-theme bundler config allow_online_install false %endif bundler config deployment true bundler install bundler exec jekyll build rm -rf _site/assets %install mkdir -p %{buildroot}%{_datadir}/apache2/download-o-o/icons mkdir -p %{buildroot}%{apache_sysconfdir} install -m 0644 _site/*.css _site/*.html _site/*.js _site/*.css.map %{buildroot}%{_datadir}/apache2/download-o-o/ install -m 0644 _site/icons/*.svg %{buildroot}%{_datadir}/apache2/download-o-o/icons/ install -m 0644 _site/mod_autoindex_mb_download-o-o.conf %{buildroot}%{apache_sysconfdir}/ %files %dir %{_datadir}/apache2/download-o-o %{_datadir}/apache2/download-o-o/*.css %{_datadir}/apache2/download-o-o/*.css.map %{_datadir}/apache2/download-o-o/*.js %{_datadir}/apache2/download-o-o/*.html %dir %{_datadir}/apache2/download-o-o/icons %{_datadir}/apache2/download-o-o/icons/*.svg %config %{apache_sysconfdir}/mod_autoindex_mb_download-o-o.conf %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor