MirrorCache/_service:set_version:obs_scm:MirrorCache.spec
Andrii Nikitin bb45628c9e 1.0 2021-07-08
- Fix render of branding when TOP_FOLDERS is set.
  - Add 'My Statistics' menu item with individual statistics for IP.
  - Internals: use stat table for scheduling jobs.
  - Internals: fix unsafe usage of Datamodule in delayed rendering.

M    MirrorCache.changes

Diff for working copy: .
Index: MirrorCache.changes
===================================================================

--- MirrorCache.changes	(revision 3)
+++ MirrorCache.changes	(working copy)
@@ -1,3 +1,53 @@
+1.0  2021-07-08
+  - Fix render of branding when TOP_FOLDERS is set.
+  - Add 'My Statistics' menu item with individual statistics for IP.
+  - Internals: use stat table for scheduling jobs.
+  - Internals: fix unsafe usage of Datamodule in delayed rendering.
+
+0.9  2021-07-01
+ - ui: Add branding capability and footer info
+ - ui: Render landing page if MIRRORCACHE_TOP_FOLDERS is set
+ - Truncate country code to two letters
+ - Log trailing slash in stat
+ - Fix double stats when no mirror in country
+ - t: Replace repo in docker to openSUSE:infrastructure
+ - salt: switch test to use 15.3
+
+0.8  2021-06-24
+  - Add mirrorlist page, reference it in file listing 'Metadata' column;
+  - Do not require /download prefix when MIRRORCACHE_TOP_FOLDERS is configured;
+  - Fix error "time_bad_sig: Return_to signature is not valid." during openid login by setting secret in Mojo app;
+  - Performance improvements in estimating load on background jobs;
+  - Performance improvements in stat calculation;
+  - [ui] Move mirror statistics to folder status form;
+  - Cleanup audit events, add DB index for that;
+  - Tweak job creating metadata (folder_hashes_create);
+  - Schedule scan when main server serves as a mirror;
+  - Improve handling symlinked files in rsync root;
+  - rpm spec improvements.
+
+0.7  2021-06-03
+  - [ui] Change /logout only on POST message, (before it was on GET).
+  - [ui] Tweak html in file listing.
+  - [ui] Use natural sort in file listing (case insensitive, foo-9 before foo-10).
+  - [internal] Significantly reduce time of guards inside some permanent tasks.
+  - [internal] (Experimental) new task FolderHashesCreate in new queue hashes to collect files metadata and store in db.
+  - [tests] Switch test containers to leap 15.3
+
+0.6  2021-05-27
+  - an audit logs page for admins
+  - new config MIRRORCACHE_AUTH_URL, fake auth for testing
+  - new permanent job mirror_check_from_stat
+  - tests: switch to new reworked environ framework
+
+0.5  2021-04-30
+  - Obsolete MIRRORCACHE_FALLBACK_REDIRECT in favor of MIRRORCACHE_REDIRECT
+  - Adjust github address to openSUSE
+
+0.4  2021-04-29
+  - Collect file size from origin if nginx with indexing
+  - Add favicon and initial version of logo
+
 0.3  2021-04-24
   - Remove column db_sync_for_country from /app/folder

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=4
2021-07-08 08:58:22 +00:00

90 lines
3.5 KiB
RPMSpec

#
# spec file for package MirrorCache
#
# Copyright (c) 2021 SUSE LLC
#
# 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/
#
%define mirrorcache_services mirrorcache.service mirrorcache-backstage.service
%define assetpack_requires perl(CSS::Minifier::XS) >= 0.01 perl(JavaScript::Minifier::XS) >= 0.11 perl(Mojolicious::Plugin::AssetPack) >= 1.36 perl-IO-Socket-SSL
%define main_requires %{assetpack_requires} perl(Carp) perl(DBD::Pg) >= 3.7.4 perl(DBI) >= 1.632 perl(DBIx::Class) >= 0.082801 perl(DBIx::Class::DynamicDefault) perl(DateTime) perl(Encode) perl(Time::Piece) perl(Time::Seconds) perl(Time::ParseDate) perl(DateTime::Format::Pg) perl(Exporter) perl(File::Basename) perl(LWP::UserAgent) perl(Mojo::Base) perl(Mojo::ByteStream) perl(Mojo::IOLoop) perl(Mojo::JSON) perl(Mojo::Pg) perl(Mojo::URL) perl(Mojo::Util) perl(Mojolicious::Commands) perl(Mojolicious::Plugin) perl(Mojolicious::Plugin::RenderFile) perl(Mojolicious::Static) perl(Net::OpenID::Consumer) perl(POSIX) perl(Sort::Naturally) perl(URI::Escape) perl(XML::Writer) perl(base) perl(constant) perl(diagnostics) perl(strict) perl(warnings) shadow rubygem(sass) perl-Net-DNS perl-LWP-Protocol-https perl-Digest-SHA
%define build_requires %{assetpack_requires} rubygem(sass) tidy sysuser-shadow sysuser-tools
Name: MirrorCache
Version: 1.0
Release: 0
Summary: WebApp to redirect and manage mirrors
License: GPL-2.0-or-later
Group: Productivity/Networking/Web/Servers
URL: https://github.com/openSUSE/MirrorCache
Source: %{name}-%{version}.tar.xz
Source1: %{name}-user.conf
Source2: %{name}-tmpfilesd.conf
BuildRequires: %{build_requires}
Requires: %{main_requires}
Requires: perl(Minion) >= 10.0
BuildArch: noarch
%sysusers_requires
%description
Mirror redirector web service, which automatically scans the main server and mirrors
%prep
%setup -q
%build
# make {?_smp_mflags}
%sysusers_generate_pre %{SOURCE1} %{name}
%check
%install
%make_install
# DEST_DIR={_datadir}
mkdir -p %{buildroot}%{_sbindir}
ln -s ../sbin/service %{buildroot}%{_sbindir}/rcmirrorcache
ln -s ../sbin/service %{buildroot}%{_sbindir}/rcmirrorcache-backstage
install -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf
install -D -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
%pre -f %{name}.pre
%service_add_pre %{mirrorcache_services}
%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%service_add_post %{mirrorcache_services}
%preun
%service_del_preun %{mirrorcache_services}
%postun
%service_del_postun %{mirrorcache_services}
%files
%doc README.asciidoc
%license LICENSE
%{_sbindir}/rcmirrorcache
%{_sbindir}/rcmirrorcache-backstage
%{_sysusersdir}/%{name}.conf
%{_tmpfilesdir}/%{name}.conf
%ghost %dir %attr(0750,mirrorcache,-) %{_localstatedir}/lib/mirrorcache/
# init
%dir %{_unitdir}
%{_unitdir}/mirrorcache.service
%{_unitdir}/mirrorcache-backstage.service
# web libs
%{_datadir}/mirrorcache
%attr(-,mirrorcache,-) %{_datadir}/mirrorcache/assets/cache
%changelog