mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2025-01-03 14:32:40 +00:00
Don't require/recommend Web server configuration
Per OpenSUSE packaging guidelines
This commit is contained in:
parent
160777b27b
commit
c49806b5b8
1 changed files with 23 additions and 17 deletions
40
dist/rpm/arsse.spec
vendored
40
dist/rpm/arsse.spec
vendored
|
@ -8,9 +8,9 @@ URL: https://thearsse.com/
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%define phpver 7.1
|
%define minver 7.1
|
||||||
|
|
||||||
Requires: php >= %{phpver}
|
Requires: php >= %{minver}
|
||||||
Requires: php-intl
|
Requires: php-intl
|
||||||
Requires: php-dom
|
Requires: php-dom
|
||||||
Requires: php-simplexml
|
Requires: php-simplexml
|
||||||
|
@ -22,17 +22,17 @@ Requires: php-filter
|
||||||
# The below extensions are part of the PHP core in recent versions
|
# The below extensions are part of the PHP core in recent versions
|
||||||
Requires: php-hash
|
Requires: php-hash
|
||||||
Requires: php-json
|
Requires: php-json
|
||||||
# A Web server option and database option are required
|
# A database option is required; a Web server option is required as well, but what we package is not exhaustive
|
||||||
Requires: arsse-conf-www
|
|
||||||
Requires: arsse-conf-db
|
Requires: arsse-conf-db
|
||||||
|
|
||||||
Recommends: arsse-sqlite
|
Recommends: arsse-sqlite
|
||||||
Recommends: arsse-nginx-fpm
|
|
||||||
Suggests: php-curl
|
Suggests: php-curl
|
||||||
|
|
||||||
Provides: arsse = %{version}
|
Provides: arsse = %{version}
|
||||||
Obsoletes: arsse < %{version}
|
Obsoletes: arsse < %{version}
|
||||||
|
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Arsse bridges the gap between multiple existing newsfeed aggregator
|
The Arsse bridges the gap between multiple existing newsfeed aggregator
|
||||||
client protocols such as Tiny Tiny RSS, Nextcloud News and Miniflux,
|
client protocols such as Tiny Tiny RSS, Nextcloud News and Miniflux,
|
||||||
|
@ -41,54 +41,59 @@ server.
|
||||||
|
|
||||||
%package sqlite
|
%package sqlite
|
||||||
Summary: SQLite database configuration for The Arsse
|
Summary: SQLite database configuration for The Arsse
|
||||||
|
Group: Productivity/Networking/Web/Utilities
|
||||||
Requires: (php-sqlite or php-pdo_sqlite)
|
Requires: (php-sqlite or php-pdo_sqlite)
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Conflicts: arsse-postgresql
|
Conflicts: arsse-pgsql
|
||||||
Conflicts: arsse-mysql
|
Conflicts: arsse-mysql
|
||||||
Provides: arsse-conf-db
|
Provides: arsse-config-db
|
||||||
Provides: arsse-sqlite = %{version}
|
Provides: arsse-sqlite = %{version}
|
||||||
Obsoletes: arsse-sqlite < %{version}
|
Obsoletes: arsse-sqlite < %{version}
|
||||||
|
|
||||||
%package pgsql
|
%package pgsql
|
||||||
Summary: PostgreSQL database configuration for The Arsse
|
Summary: PostgreSQL database configuration for The Arsse
|
||||||
|
Group: Productivity/Networking/Web/Utilities
|
||||||
Requires: (php-pgsql or php-pdo_pgsql)
|
Requires: (php-pgsql or php-pdo_pgsql)
|
||||||
Requires: postgresql-server >= 10
|
Requires: postgresql-server >= 10
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Conflicts: arsse-sqlite
|
Conflicts: arsse-sqlite
|
||||||
Conflicts: arsse-mysql
|
Conflicts: arsse-mysql
|
||||||
Provides: arsse-conf-db
|
Provides: arsse-config-db
|
||||||
Provides: arsse-pgsql = %{version}
|
Provides: arsse-pgsql = %{version}
|
||||||
Obsoletes: arsse-pgsql < %{version}
|
Obsoletes: arsse-pgsql < %{version}
|
||||||
|
|
||||||
%package mysql
|
%package mysql
|
||||||
Summary: MySQL database configuration for The Arsse
|
Summary: MySQL database configuration for The Arsse
|
||||||
|
Group: Productivity/Networking/Web/Utilities
|
||||||
Requires: (php-mysql or php-pdo_mysql)
|
Requires: (php-mysql or php-pdo_mysql)
|
||||||
Requires: mysql-server >= 8.0
|
Requires: mysql-server >= 8.0
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Conflicts: arsse-sqlite
|
Conflicts: arsse-sqlite
|
||||||
Conflicts: arsse-postgresql
|
Conflicts: arsse-pgsql
|
||||||
# OpenSUSE only packages MariaDb, which does not worth with The Arsse
|
# OpenSUSE only packages MariaDb, which does not worth with The Arsse
|
||||||
#Provides: arsse-conf-db
|
#Provides: arsse-config-db
|
||||||
Provides: arsse-mysql = %{version}
|
Provides: arsse-mysql = %{version}
|
||||||
Obsoletes: arsse-mysql < %{version}
|
Obsoletes: arsse-mysql < %{version}
|
||||||
|
|
||||||
%package nginx-fpm
|
%package config-nginx-fpm
|
||||||
Summary: Nginx Web server configuration for The Arsse using PHP-FPM
|
Summary: Nginx Web server configuration for The Arsse using PHP-FPM
|
||||||
Requires: php-fpm >= %{phpver}
|
Group: Productivity/Networking/Web/Utilities
|
||||||
|
Requires: php-fpm >= %{minver}
|
||||||
Requires: nginx
|
Requires: nginx
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Provides: arsse-conf-www
|
|
||||||
Provides: arsse-nginx-fpm = %{version}
|
Provides: arsse-nginx-fpm = %{version}
|
||||||
Obsoletes: arsse-nginx-fpm < %{version}
|
Obsoletes: arsse-nginx-fpm < %{version}
|
||||||
|
Supplements: packageand(apache2:arsse)
|
||||||
|
|
||||||
%package apache-fpm
|
%package config-apache-fpm
|
||||||
Summary: Apache Web server configuration for The Arsse using PHP-FPM
|
Summary: Apache Web server configuration for The Arsse using PHP-FPM
|
||||||
Requires: php-fpm >= %{phpver}
|
Group: Productivity/Networking/Web/Utilities
|
||||||
|
Requires: php-fpm >= %{minver}
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: apache >= 2.4
|
Requires: apache >= 2.4
|
||||||
Provides: arsse-conf-www
|
|
||||||
Provides: arsse-apache-fpm = %{version}
|
Provides: arsse-apache-fpm = %{version}
|
||||||
Obsoletes: arsse-apache-fpm < %{version}
|
Obsoletes: arsse-apache-fpm < %{version}
|
||||||
|
Supplements: packageand(apache2:arsse)
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}
|
%setup -q -n %{name}
|
||||||
|
@ -98,4 +103,5 @@ Obsoletes: arsse-apache-fpm < %{version}
|
||||||
# Nothing to do
|
# Nothing to do
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
cp -r lib locale sql vendor www CHANGELOG UPGRADING README.md arsse.php "%{buildroot}/usr/share/php/arsse"
|
||||||
|
cp -r manual/* "%{buildroot}/usr/share/doc/arsse"
|
||||||
|
|
Loading…
Reference in a new issue