diff --git a/gitlab.spec b/gitlab.spec index 5c88fb1..53e9007 100644 --- a/gitlab.spec +++ b/gitlab.spec @@ -6,9 +6,9 @@ Group: Development/Tools License: Expat URL: https://beta.softwarepublico.gov.br/gitlab/softwarepublico/gitlab Source0: %{name}-%{version}.tar.gz - -BuildRequires: gitlab-deps,postgresql-server, postgresql-devel -Requires: gitlab-deps, postgresql-server, git +BuildArch: noarch +BuildRequires: gitlab-deps +Requires: gitlab-deps, git %description GitLab @@ -16,37 +16,106 @@ GitLab %prep %autosetup -%pre -adduser git -service postgresql initdb -service postgresql start -sudo -u postgres psql -d template1 << EOF -CREATE USER git CREATEDB; -CREATE DATABASE gitlabhq_production OWNER git; -\q -EOF - %build -# make %{?_smp_mflags} +cat > config/gitlab.yml <