mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-30 08:40:26 -05:00
31 lines
471 B
RPMSpec
31 lines
471 B
RPMSpec
Name: kyoo
|
|
Version: 0.0.1
|
|
Release: 1
|
|
Summary: A media browser
|
|
URL: https://github.com/AnonymusRaccoon/Kyoo
|
|
License: GPL-3.0
|
|
BuildArch: x86_64
|
|
Requires: postgresql-server
|
|
|
|
|
|
%install
|
|
cp -a * %{buildroot}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
*
|
|
|
|
%post:
|
|
sudo -u postgres psql << "EOF"
|
|
DO $$
|
|
BEGIN
|
|
CREATE ROLE kyoo WITH CREATEDB LOGIN PASSWORD 'kyooPassword';
|
|
EXCEPTION WHEN DUPLICATE_OBJECT THEN
|
|
RAISE NOTICE 'not creating role kyoo -- it already exists';
|
|
END
|
|
$$;
|
|
EOF
|
|
|