SHA256
1
0
forked from pool/matomo
matomo/matomo.spec
Eric Schirra e0d2486d68 Accepting request 923668 from home:ecsos:server
- Update to 4.5.0
  * matomo-org/matomo
    - #17870 Improve I/O performance by not writing placeholder files when they already exist
    - #17732 Users can get logged out when many notifications are pending
    - #17853 Clicking through the following pages in the transition overlay for page titles does not work
    - #17872 If the period is not enabled in config “The period is not supported” message is shown in cron archiving
    - #17926 Console error “There was an error setting cookie `mtm_cookie_consent`.
      Please check domain and path.” when calling ‘rememberCookieConsentGiven’
    - #17965 In Acquisition > Overview report, the Row selector is missing
    - #17966 Warning DataCollection.php(381): Notice – Undefined index: 2021-04-26,2021-05-02
    - #17091 Failing SMTP connection might result in information disclosure in password recovery
    - #17773 Matomo should be setting content security policy to prevent some XSS
    - #18030 Remove fallback to mt_rand and always use random_int for secure randomness
    - #2672 New INI config setting for Custom image to replace default 1×1 GIF image
    - #16576 New console command config:delete to delete a key
    - #16859 Add JS tracker methods setPagePerformanceTiming and getCustomPagePerformanceTiming to set
      specific values for performance metrics
    - #17738 Don’t log an error when not supported browser is used
    - #14719 Run OPTIMIZE TABLE on each table in a separate SQL query to work better with replication
    - #15322 Removed misleading help text from segment dimensions tooltip
    - #15892 ‘Acquistion/Overview/Evolution over the period’ graph fails when adding more channels
    - #16529 Old data in log tables without idvisit column are not purged (affects plugins)
    - #15036 Hide “AND segmented reports are pre-processed (faster, requires cron)” from
      the UI when enable_create_realtime_segments = 0
    - #15135 Link to a helpful FAQ in the error message “Oops, there was a problem during the request.”
    - #15335 When configuring an e-mail report, the selected segment is not saved
    - #16604 Update RegEx extractions help text to show slashes don’t need escaping
    - #17577 Split private directories system check into “Required” and “Recommended”
    - #16834 Use row_format=dynamic by default when creating a table
    - #18012 Add warning about dropping support for IE11 in Matomo user interface
    - #18039 Remove not used DB adapters
    - #16459 Heartbeat timer ping request is not always sent
      (focusing away from the tab should trigger the ping request)
    - #17640 Page Overlay ignores token_auth in URL when opened from a Widget
    - #17752 Automatically delete plugin specific/report specific invalidations that do not need to run
    - #17787 Javascript console error when clicking Install routine: Download System Check button
    - #17816 Limiting ecommerce product reports to 10,000 to avoid memory issues with new INI config setting to customise
    - #17871 Added info message that INI setting archiving_query_max_execution_time may not work for MySQLI
    - #17883 Possible warning notices during log archive
    - #17925 The selected [Allow multiple conversions per visit] option is not displayed when editing a goal
    - #18046 For login allow list add support for IPv6
    - #17817 When aggregating reports, inflate one expanded datatable at a time
    - #17818 get rid of stashed datatables before going into safe mode to free up memory
    - #17846 Remove checking for /proc existence
    - #17849 Scheduled tasks: Always read timetable from the database and not from memory
    - #17855 Use Monolog:SyslogHandler syslog default facility
    - #17867 Do not log a failed login if a valid app token_auth is sent
    - #17869 Fix a couple a possible warnings in PHP 8.1
    - #17877 Only set requests in tracking request set when correct value is given
    - #17891 Ignore overwrite subtable warning for summary rows for old data to avoid re-archiving for a single row
    - #17905 Update cache component
    - #17910 Expose methods to disable content security policy or loosen it for embedded iframes
    - #17937 Load sparkline images only once they are near view port
    - #17943 When processing a dependent archive for a range, then only process the requested plugin, not all plugins
    - #17949 try and reconnect database after running each scheduled task (at most once per two hours) during core:archive
    - #17992 Update doctrine cache to the right version
    - #18023 Allow social & search definitions to be sourced locally
    - #18024 Check config file was written correctly
    - #18033 Allow scheduled report emails to be differentiated from other emails
    - #18042 removed files related to unsupported databases
    - #18074 Update container factory to allow for sorting plugins
  * matomo-org/tag-manager
    - #217 Enable Debugging mode without URL parameter
    - #208 Added option to configure cookie domain in configuration
    - #328 Observe DOM element changes even when a user doesn’t scroll on the page
    - #339 Visibility trigger add feature to observe DOM changes etc.
    - #49 Make Matomo tag parameters descriptions translatable
    - #225 Explain what the Tag Manager “Enable DNT” setting in the Matomo Configuration variable does
    - #268 New “Click Button” variable and “All Elements Click” and “All Links Click” will trigger on middle and right click also
    - #349 The `WindowUnload` event should be triggered only once for Microsoft Internet Explorer in Edge mode
    - #362 Element visibility trigger may trigger too often
    - #344 Visibility trigger add feature to observe DOM changes
  * matomo-org/device-detector
    - #6477 Adds detection for Secure Browser
    - #6546 Adds detection for tvOS and removes Apple TV
    - #6812 Added detection for existing brands: AT&T, Tecno Mobile, Vivo, Blu, Philips, Phonemax,
      Motorola, Ulefone, ZTE, DEXP, JVC, UMIDIGI, F150, Neffos, Nomi, Nomu, NOA, Inoi, Doogee,
      Senseit, Pixus, Mintt, Mobicel
    - #6813 Added detection for existing brands: ZTE, HTC, Lenovo, Doogee, Prestigio, GOCLEVER,
      iLife, Explay, Blu, Vivo, Overmax, Vertex, Blackview
    - #6815 Added detection for bots: LinkPreview, JungleKeyThumbnail
    - #6817 Adds detection for various bots
    - #6818 Added detection for mobile app: NTV Mobil
    - #6819 Detect devices for existing brands: Infinix, Oukitel, Inoi, Wileyfox, Teclast, Iris,
      Umax, Sencor, Meizu, Huawei, Blu, MyPhone, Hisense, ZTE, Vivo
    - #6822 Detect devices for existing brands: Doro, Xiaomi, Turbo-X, Majestic, Energizer,
      Ulefone, Prestigio, Nomi, NGM, Lenovo, Blu, HTC, ZTE, Motorola, Digma
    - #6824 Detect devices for existing brands: Santin, Ulefone, DEXP, TrekStor, Teclast, Asus,
      Neffos, Nobby, Xiaomi, ZTE, OPPO, Wiko, Lenovo, LT Mobile, MLS, Vertex, MyPhone, Lava,
      HTC, Palm, Jinga, Archos, Bravis, Nomi, Elephone
    - #6825 Detect bot Turnitin
    - #6827 Detect devices for existing brands: A1, Huawei, Crosscall, Samsung, Tecno Mobile,
      Teclast, Realme, Reeder, Leagoo, OPPO, Sony, Asus, Sharp, Fujitsu, Xiaomi, Motorola
    - #6828 Detect app TikTok for Android
    - #6829 Adds bot detection Google StoreBot
    - #6830 Detect new brands Adronix, ProVision and Detect devices for existing brands:
      AllDocube, Asus, Fujitsu, Huawei, Xiaomi, Lenovo, Motorola, Openbox, Karbonn,
      Lava, Vivo, Meizu, Hoozo, Realme, Krüger&Matz
    - #6834 Adds bot detection Dotcom Monitor
    - #6835 Detect apps: AliExpress, QuickCast, Blue Proxy, COAF SMART Citizen
    - #6837 Detect devices for existing brands: Alcatel, MTC, HTC, Nokia, Vivo, Samsung,
      OnePlus, Nomi, ONN, Tecno Mobile, Realme, Blackview, LG, Lenovo, Motorola, Digma,
      Fairphone, Homtom
    - #6839 Detect new brand Sirin labs and Detect devices for existing brands:
      Google, Vivo, POCO, OPPO, Sony, Sharp, Oukitel, Lenco, iVA, Doogee, MyPhone,
      M-Horse, Dialog, Digma, Energizer, Santin, MDC Store, 4Good, Matrix, Allwinner,
      Prestigio
    - #6840 Detect new brands: Anker, Perfeo, CGV and Detect devices for existing brands:
      Hoffmann, Huawei, Lenovo, Prestigio, Coolpad, Digiland, Reeder, Xiaomi, Realme,
      Oukitel, Oale, Tecno Mobile, Medion, Teclast, Kyocera, Gionee, MTC, Alcatel,
      DEXP, Irbis
    - #6842 Adds browser detection for Stampy Browser
    - #6843 Add Amazonbot and simplify some bot regexes
    - #6845 Detect bots: ThinkChaos, DataForSeoBot
    - #6846 Detect new brands: Telia, Canal Digital and Detect device OPPO A16
    - #6847 Detect new brand ZIFRO and Detect devices for existing brands:
      Blu, Prestigio, Bluboo, Leagoo, Motorola, Sigma, Google, Tecno Mobile, Archos,
      Xiaomi, Ginzzu, Qumo, UMIDIGI, DEXP, EE, CUBOT, Amoi, Xgody, Sony, IconBIT,
      MegaFon, OPPO
    - #6850 OS family added to operating system parse result
    - #6851 Detect brand Google model: Chromecast (2020)
    - #6852 Detect new brands: SmartBook, Covia, Qubo, Bundy, Sprint, Kiowa and 
      Detect devices for existing brands: F2 Mobile, QMobile, KINGZONE, Mobicel,
      Vodafone, HTC, Bmobile, Gome, Cherry Mobile, Oukitel, Alcatel, Sunny,
      Primux, Sky, Vestel, iView, Realme, Ainol, IconBIT
    - #6854 Detect brand Huawei model: Nexus 6P
    - #6856 Detect new brands: Smart, Stylo, Galaxy Innovations, Benzo, Exmart and
      Detect devices for existing brands: GOCLEVER, Hurricane, Gresso, Mobicel,
      Riviera, Haier, Alcatel, Kanji, Karbonn, NextBook, Leader Phone, Leotec,
      TrekStor, Highscreen, Starmobile, Blu, Lava, Gome, Hyundai, Carrefour,
      F2 Mobile, Xiaomi, Sony, Sico, Amazon, Asus
    - #6857 Rename brand 2F Mobile to F2 Mobile
    - #6859 Detect app TikTok for iOS
    - #6861 Detect OS HarmonyOS
    - #6863 Detect browser GoBrowser for Symbian
    - #6865 Improved browser engine detection for Tenta browser
    - #6866 Detect new brands: Vexia, AIRON, Mymaga, HiMax, Packard Bell, Qnet Mobile and
      Detect devices for existing brands: Hyundai, Odys, Inco, Amazon, NEC, Sony, iMars,
      Qubo, Mito, DNS, Lark, Timovi, Masstel, Telefunken, Luna, MyPhone, Leader Phone,
      Elephone
    - #6868 Detect New Model: Mi Mix 4
    - #6870 Detect devices for existing brands: Xiaomi, Samsung, Realme, Tecno Mobile,
      Mobicel, Vivo, Lenovo, ZTE, OPPO, Oukitel, CUBOT, UMIDIGI, OnePlus, Ulefone,
      Doogee, TCL, Vivo, Vertex, Infinix, Krüger&Matz, Wiko, DEXP, BQ
    - #6872 Detect new brand Nubia
    - #6873 Detect new brands: Bluebird, Mara and Detect devices for existing brands:
      Krüger&Matz, iHunt, Sony, Teclast, Tanix, Logicom, Nubia, Xiaomi, QMobile, DIXON,
      Zuum, Vodacom, Mobicel, Oukitel, Motorola, Stylo, Tecno Mobile, Chuwi, OnePlus,
      Vivo, iTel, Doogee, Cat, Homtom, CUBOT, MLS, Blu, Casper, Unonu
    - #6874 Detect new brands: BMAX, Geotex and Detect devices for existing brands:
      Telefunken, Asus, Huawei, Lenovo, Tecno Mobile, Nomi, Coolpad, Blu, Navitel,
      Winnovo, Digiland, DEXP, Sony, Inoi, OPPO, Samsung, Xiaomi, LG, Vivo, UMIDIGI,
      Mobicel, Teclast, Zuum
  * matomo-org/referrer-spam-list
    - #1284 Add rczhan.com
    - #1285 Add hsoutdoor.com
    - #1286 Add czcedu.com
    - #1287 Add amatocanizalez.net
    - #1288 Add gcmx.net

OBS-URL: https://build.opensuse.org/request/show/923668
OBS-URL: https://build.opensuse.org/package/show/network:utilities/matomo?expand=0&rev=98
2021-10-07 09:09:50 +00:00

252 lines
11 KiB
RPMSpec

#
# spec file for package matomo
#
# Copyright (c) 2020 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/
#
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
%{!?_tmpfilesdir:%global _tmpfilesdir %{_prefix}/lib/tmpfiles.d}
Name: matomo
Version: 4.5.0
Release: 0
Summary: Web analytics platform
License: GPL-3.0-or-later
Group: Productivity/Networking/Web/Utilities
URL: http://matomo.org/
Source0: http://builds.matomo.org/%{name}-%{version}.tar.gz
Source2: %{name}.conf
Source3: %{name}.logrotate
Source4: %{name}-README.SUSE
Source10: %{name}-archive.cron
Source11: %{name}-archive.service
Source12: %{name}-archive.timer
Source13: %{name}.my.cnf
Source14: %{name}-tmpfile.conf
Source99: %{name}.rpmlintrc
# PATCH-FIX-OPENSUSE: Don't show wrong message with wrong owner of %%{apache_serverroot}/%%{name} when disable enable_auto_update through package installation.
Patch1: %{name}-package_update.patch
BuildArch: noarch
%if 0%{?suse_version} >= 1500
Requires(pre): user(wwwrun)
Requires(pre): group(www)
%else
Requires(pre): aaa_base
%endif
BuildRequires: apache-rpm-macros
BuildRequires: cron
BuildRequires: fdupes
BuildRequires: logrotate
BuildRequires: mariadb
BuildRequires: unzip
BuildRequires: pkgconfig(systemd)
Requires: nodejs
Requires: python3
Requires: logrotate
Requires: php-ctype
Requires: php-curl
Requires: php-dom
Requires: php-gd
Requires: php-iconv
# for the upgrade process:
Requires(pre): php-json
Requires: php-json
Requires: php-mbstring
Requires: php-mysql
Requires: php-pdo
#Requires: php-sqlite
Requires: php-tokenizer
Requires: php-xmlreader
Requires: php-xmlwriter
Requires: php-zlib
Requires(pre): php
%{?systemd_requires}
Recommends: php-geoip
Recommends: php-openssl
Recommends: mariadb
Recommends: cron
Conflicts: piwik
%description
Matomo, formerly Piwik, is a web analytics platform that gives
insights into a website's visitors and marketing campaigns, so the
strategy and online experience of visitors may be optimized.
%package apache
Summary: Apache configuration for %{name}
Group: Productivity/Networking/Web/Utilities
BuildRequires: apache2
Requires: apache2
Requires: mod_php_any >= 7.2.5
Recommends: apache2-mod_geoip
Supplements: packageand(apache2:%name)
%description apache
This subpackage contains the Apache configuration files
%prep
%setup -q -n %{name}
%patch1 -p1
install -m644 %{SOURCE4} README.SUSE
# remove unwanted files
find . -type f "(" -name .htaccess -o -name .travis.sh -o -name .gitkeep ")" -delete
#find . -name ".git*" -exec rm -Rf "{}" "+"
find . -type f "(" -name "*.c" -o -name "*.h" -o -name "*.js.orig" ")" -delete
# env-script-interpreter
find . -type f -exec sed -i -e 's|\/usr\/bin\/env php|\/usr\/bin\/php|g' {} +
find . -type f -name "*.sh" -exec sed -i -e 's|\/usr\/bin\/env bash|\/bin\/bash|g' {} +
sed -i 's|python$|python3|' misc/log-analytics/import_logs.py
#
# disable the auto updater, it can't work properly with the new, more secure permissions and is a bad idea on a RPM based setup anyways.
#
sed -i '/enable_auto_update/s/1$/0/' config/global.ini.php
#
# Fix integrity check triggered from fix of rpmlint errors.
# Drop moved files
for i in CHANGELOG.md CONTRIBUTING.md PRIVACY.md README.md SECURITY.md LEGALNOTICE LICENSE 'misc\/cron\/.htaccess' 'misc\/How to install Matomo.html' 'vendor\/tecnickcom\/tcpdf\/tools\/.htaccess' 'vendor\/twig\/twig\/ext\/twig\/php_twig.h' 'vendor\/twig\/twig\/ext\/twig\/twig.c' 'js\/piwik.js.orig'
do
sed -i "/\W\"${i}\"\W/d" config/manifest.inc.php
done
# Insert new hashes for chanded files
for file in console 'vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php' 'config/global.ini.php' 'core/CliMulti/Output.php' 'plugins/CoreUpdater/Commands/Update.php' 'vendor/matomo/matomo-php-tracker/run_tests.sh' 'vendor/wikimedia/less.php/bin/lessc' 'misc/log-analytics/import_logs.py'
do
size=$(ls -l $file | awk '{ print $5 }')
checksum=$(md5sum $file | awk '{ print $1 }')
file2=$(echo "$file" | sed 's/\//\\\//g')
sed -i "/\W\"$file2\"\W/c \"$file\" => array(\"$size\", \"$checksum\")," config/manifest.inc.php
done
%build
# nothing to build
%install
# make directories
install -d -m0755 %{buildroot}/%{apache_serverroot}/%{name}
install -d -m0755 %{buildroot}/%{apache_serverroot}/%{name}/tmp
install -d -m0755 %{buildroot}/%{_sysconfdir}/%{name}
install -d -m0755 %{buildroot}/%{_defaultdocdir}/%{name}
# copy src from build to buildroot
mv *SUSE %{buildroot}/%{_defaultdocdir}/%{name}
mv LEGALNOTICE %{buildroot}/%{_defaultdocdir}/%{name}
mv LICENSE %{buildroot}/%{_defaultdocdir}/%{name}
mv "misc/How to install Matomo.html" %{buildroot}/%{_defaultdocdir}/%{name}
mv *md %{buildroot}/%{_defaultdocdir}/%{name}
cp -dR * %{buildroot}/%{apache_serverroot}/%{name}
# install matomo.conf to apache conf.d
mkdir -p %{buildroot}/%{apache_sysconfdir}/conf.d
sed -e 's|__matomo_web__|%{apache_serverroot}/%{name}|g' \
-e 's|__matomo_conf__|%{_sysconfdir}/%{name}|g' \
-e 's|__matomo_log__|/var/log/%{name}|g' \
%{SOURCE2} > %{buildroot}/%{apache_sysconfdir}/conf.d/%{name}.conf
# install logrotate
install -D -m0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}
sed -i -e 's|@APACHE_USER@|%{apache_user}|g' %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}
sed -i -e 's|@APACHE_GROUP@|%{apache_group}|g' %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}
# move config to etc/matomo and make symlink
mv %{buildroot}/%{apache_serverroot}/%{name}/config/* \
%{buildroot}/%{_sysconfdir}/%{name}
rm -d %{buildroot}/%{apache_serverroot}/%{name}/config
ln -s %{_sysconfdir}/%{name} %{buildroot}/%{apache_serverroot}/%{name}/config
# install cronscript and systemd-timer
install -d -m 0755 %{buildroot}/%{_sysconfdir}/cron.d
install -d -m 0755 %{buildroot}/var/log/%{name}
install -D -m 0644 %{SOURCE10} %{buildroot}/%{_sysconfdir}/cron.d/%{name}-archive
install -D -m 0644 %{SOURCE11} %{buildroot}%{_unitdir}/%{name}-archive.service
install -D -m 0644 %{SOURCE12} %{buildroot}%{_unitdir}/%{name}-archive.timer
install -D -m 0644 %{SOURCE14} %{buildroot}%{_tmpfilesdir}/%{name}.conf
sed -i -e 's|@APACHE_USER@|%{apache_user}|g' %{buildroot}%{_sysconfdir}/cron.d/%{name}-archive
sed -i -e 's|@APACHE_SERVERROOT@|%{apache_serverroot}|g' %{buildroot}%{_sysconfdir}/cron.d/%{name}-archive
sed -i -e 's|@APACHE_USER@|%{apache_user}|g' %{buildroot}%{_unitdir}/%{name}-archive.service
sed -i -e 's|@APACHE_GROUP@|%{apache_group}|g' %{buildroot}%{_unitdir}/%{name}-archive.service
sed -i -e 's|@APACHE_SERVERROOT@|%{apache_serverroot}|g' %{buildroot}%{_unitdir}/%{name}-archive.service
# install changes for mariadb
install -D -m0644 %{SOURCE13} %{buildroot}/%{_sysconfdir}/my.cnf.d/%{name}.my.cnf
%fdupes %{buildroot}/%{_prefix}
%fdupes %{buildroot}/srv
%pre
%service_add_pre matomo-archive.timer matomo-archive.service
%post
# BSC#1154324
# # # chown -R %{apache_user}:%{apache_group} %{apache_serverroot}/%{name}
%service_add_post matomo-archive.timer matomo-archive.service apache2.service
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
if [ $1 -gt 1 ]; then
# Update matomo if this is an upgrade $1 == 2
echo "matomo: Update matomo:core..."
su %{apache_user} -s /bin/sh -c "%{_bindir}/php %{apache_serverroot}/%{name}/console config:set 'Tracker.record_statistics="0"'" || :
su %{apache_user} -s /bin/sh -c "%{_bindir}/php %{apache_serverroot}/%{name}/console config:set 'General.maintenance_mode="1"'" || :
su %{apache_user} -s /bin/sh -c "%{_bindir}/php %{apache_serverroot}/%{name}/console core:update --yes" || :
su %{apache_user} -s /bin/sh -c "%{_bindir}/php %{apache_serverroot}/%{name}/console config:set 'General.maintenance_mode="0"'" || :
su %{apache_user} -s /bin/sh -c "%{_bindir}/php %{apache_serverroot}/%{name}/console config:set 'Tracker.record_statistics="1"'" || :
:
fi
%preun
%service_del_preun matomo-archive.timer matomo-archive.service
%postun
%service_del_postun matomo-archive.timer matomo-archive.service apache2.service
%files
%defattr(-,root,root,-)
%dir %{_defaultdocdir}/%{name}
%{_defaultdocdir}/%{name}/*
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/cron.d/%{name}-archive
%config(noreplace) %{_sysconfdir}/my.cnf.d/%{name}.my.cnf
%{_unitdir}/%{name}-archive.service
%{_unitdir}/%{name}-archive.timer
%{_tmpfilesdir}/%{name}.conf
%dir %attr(0750,%{apache_user},%{apache_group}) %{_sysconfdir}/%{name}
%dir %attr(0750,%{apache_user},%{apache_group}) %{_sysconfdir}/%{name}/environment
%attr(0640,%{apache_user},%{apache_group}) %{_sysconfdir}/%{name}/*.php
%attr(0640,%{apache_user},%{apache_group}) %{_sysconfdir}/%{name}/environment/*.php
%ghost %attr(0750,%{apache_user},%{apache_group}) /run/%{name}_sessions
%defattr(644,root,root,755)
%dir %{apache_serverroot}/%{name}
%dir %attr(0750,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/js
%dir %attr(0750,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/misc
%dir %attr(0750,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/plugins
%dir %attr(0750,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/tmp
%dir %attr(0750,%{apache_user},%{apache_group}) /var/log/%{name}
%config(noreplace) %attr(600,%{apache_user},%{apache_group}) %{_sysconfdir}/%{name}/*php
%{_sysconfdir}/%{name}/environment/*php
%attr(0644,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/matomo.js
%attr(0644,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/piwik.js
%attr(0644,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/js/piwik.min.js
%attr(0770,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/console
%attr(0770,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/misc/cron/archive.sh
%attr(0770,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/misc/log-analytics/import_logs.py
%attr(0770,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/misc/composer/clean-xhprof.sh
%attr(0770,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/misc/composer/build-xhprof.sh
%attr(0770,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/vendor/pear/archive_tar/sync-php4
%attr(0770,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/vendor/szymach/c-pchart/coverage.sh
%attr(0770,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php
%attr(0770,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/vendor/twig/twig/drupal_test.sh
%attr(0770,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/vendor/matomo/matomo-php-tracker/run_tests.sh
%attr(0770,%{apache_user},%{apache_group}) %{apache_serverroot}/%{name}/vendor/wikimedia/less.php/bin/lessc
%{apache_serverroot}/%{name}/*
%files apache
%config(noreplace) %{apache_sysconfdir}/conf.d/%{name}.conf
%changelog