Commit 2bb99d3fb191970f09591baea0dde31280e1a940

Authored by Sergio Oliveira
1 parent 8473d256

Removed RPM build scripts

SPB rpm will be build out of colab repo
.travis.yml
... ... @@ -24,4 +24,3 @@ script:
24 24  
25 25 after_success:
26 26 - coveralls
27   - - ci/build_rpm.sh
... ...
ci/build_rpm.sh
... ... @@ -1,55 +0,0 @@
1   -#!/bin/bash
2   -
3   -if [ "$TRAVIS_BRANCH" == "master" ]; then
4   - repo="colab-unstable"
5   -elif [ "$TRAVIS_BRANCH" == "stable" ]; then
6   - repo="colab-stable"
7   -elif [ "$TRAVIS_BRANCH" == "test" ]; then
8   - repo="colab-testing"
9   -else
10   - exit 0;
11   -fi
12   -
13   -repo_url="https://packagecloud.io/seocam/$repo/el/7/x86_64"
14   -
15   -version=`python setup.py --version`
16   -python setup.py sdist
17   -
18   -sudo apt-get install rinse > /dev/null
19   -
20   -sudo rinse --arch="amd64" --distribution="centos-7" --directory="/tmp/centos-7" --config="ci/rinse.conf" --pkgs-dir="ci/"
21   -
22   -sudo mkdir -p /tmp/centos-7/root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
23   -sudo cp dist/colab-*.tar.gz /tmp/centos-7/root/rpmbuild/SOURCES/
24   -sudo cp colab.spec /tmp/centos-7/root/rpmbuild/SPECS/
25   -sudo cp ci/colab.repo /tmp/centos-7/etc/yum.repos.d/
26   -sudo cp ci/softwarepublico.key /tmp/centos-7/etc/yum.repos.d/
27   -
28   -# Commands on chroot
29   -
30   -sudo chroot /tmp/centos-7/ yum install rpm-build -y --quiet
31   -sudo chroot /tmp/centos-7/ yum install python-virtualenv colab-deps -y --quiet
32   -
33   -sudo chroot /tmp/centos-7/ repoquery --repofrompath="$repo,$repo_url" --repoid=$repo colab --info > /tmp/colab-latest-info
34   -
35   -latest_version=`grep -i version /tmp/colab-latest-info | awk '{ print $3 }'`
36   -latest_release=`grep -i release /tmp/colab-latest-info | awk '{ print $3 }'`
37   -
38   -if [ "$version" == "$latest_version" ]; then
39   - # Using awk because it can deal with floating points
40   - release=`echo $latest_release | awk '{ $1++; print $1 }'`
41   -else
42   - release=1
43   -fi
44   -
45   -echo "Building package: $version-$release"
46   -
47   -sudo HOME=/root chroot /tmp/centos-7/ rpmbuild --define "release $release" -ba /root/rpmbuild/SPECS/colab.spec --quiet
48   -sudo cp /tmp/centos-7/root/rpmbuild/RPMS/noarch/colab-$version-$release.noarch.rpm .
49   -
50   -
51   -## Send to packagecloud
52   -
53   -gem install package_cloud
54   -package_cloud push seocam/$repo/el/7 colab-$version-$release.noarch.rpm && \
55   -package_cloud yank seocam/$repo/el/7 colab-$latest_version-$latest_release.noarch.rpm
ci/centos-7.packages
... ... @@ -1,116 +0,0 @@
1   -#
2   -# packages which we will need to download for a minimal installation for
3   -# CentOS 7.x
4   -#
5   -
6   -audit-libs
7   -basesystem
8   -bash
9   -binutils
10   -bzip2-libs
11   -chkconfig
12   -cracklib
13   -cracklib-dicts
14   -crontabs
15   -coreutils
16   -libdb
17   -device-mapper
18   -e2fsprogs
19   -e2fsprogs-libs
20   -elfutils-libelf
21   -ethtool
22   -expat
23   -file-libs
24   -filesystem
25   -findutils
26   -gawk
27   -gdbm
28   -glib2
29   -glibc
30   -glibc-common
31   -grep
32   -info
33   -initscripts
34   -iputils
35   -keyutils-libs
36   -krb5-libs
37   -libacl
38   -libattr
39   -libcap
40   -libcom_err
41   -libgcc
42   -libidn
43   -libselinux
44   -libsepol
45   -libstdc++
46   -libsysfs
47   -libgcrypt
48   -dbus-libs
49   -libcurl
50   -lua
51   -libutempter
52   -libxml2
53   -libxml2-python
54   -logrotate
55   -m2crypto
56   -mcstrans
57   -mlocate
58   -ncurses
59   -ncurses-libs
60   -neon
61   -net-tools
62   -nss
63   -nss-sysinit
64   -nss-softokn
65   -nss-softokn-freebl
66   -openldap
67   -libssh2
68   -cyrus-sasl-lib
69   -nss-util
70   -nspr
71   -openssl-libs
72   -pam
73   -passwd
74   -libuser
75   -ustr
76   -pcre
77   -popt
78   -procps-ng
79   -psmisc
80   -pygpgme
81   -python
82   -python-libs
83   -python-pycurl
84   -python-iniparse
85   -python-urlgrabber
86   -readline
87   -rpm
88   -rpm-libs
89   -rpm-python
90   -sed
91   -setup
92   -shadow-utils
93   -centos-release
94   -sqlite
95   -rsyslog
96   -tzdata
97   -util-linux
98   -xz
99   -xz-libs
100   -yum
101   -yum-plugin-fastestmirror
102   -yum-plugin-keys
103   -yum-plugin-protectbase
104   -yum-metadata-parser
105   -yum-utils
106   -zlib
107   -libffi
108   -libsemanage
109   -libblkid
110   -libmount
111   -device-mapper-libs
112   -libestr
113   -gmp
114   -json-c
115   -libss
116   -libuuid
ci/colab.repo
... ... @@ -1,8 +0,0 @@
1   -[isv_spb_colab]
2   -name=Colab (CentOS_7)
3   -type=rpm-md
4   -baseurl=http://rpm.tracy.com.br/isv_spb_colab/
5   -#mirrorlist=https://gitlab.com/softwarepublico/softwarepublico/raw/master/rpm_mirrors/colab
6   -gpgcheck=1
7   -gpgkey=file:///etc/yum.repos.d/softwarepublico.key
8   -enabled=1
ci/install_solr.sh
... ... @@ -1,218 +0,0 @@
1   -#!/usr/bin/env bash
2   -
3   -## Based on https://github.com/moliware/travis-solr/ (revision: 7975953)
4   -
5   -SOLR_PORT=${SOLR_PORT:-8983}
6   -
7   -download() {
8   - FILE="$2.tgz"
9   - if [ -f $FILE ];
10   - then
11   - echo "File $FILE exists."
12   - tar -zxf $FILE
13   - else
14   - echo "File $FILE does not exist. Downloading solr from $1..."
15   - curl -O $1
16   - tar -zxf $FILE
17   - fi
18   - echo "Downloaded!"
19   -}
20   -
21   -is_solr_up(){
22   - http_code=`echo $(curl -s -o /dev/null -w "%{http_code}" "http://localhost:$SOLR_PORT/solr/admin/ping")`
23   - return `test $http_code = "200"`
24   -}
25   -
26   -wait_for_solr(){
27   - while ! is_solr_up; do
28   - sleep 3
29   - done
30   -}
31   -
32   -run() {
33   - echo "Starting solr on port ${SOLR_PORT}..."
34   -
35   - cd $1/example
36   - if [ $DEBUG ]
37   - then
38   - java -Djetty.port=$SOLR_PORT -jar start.jar &
39   - else
40   - java -Djetty.port=$SOLR_PORT -jar start.jar > /dev/null 2>&1 &
41   - fi
42   - wait_for_solr
43   - cd ../../
44   - echo "Started"
45   -}
46   -
47   -post_some_documents() {
48   - java -Dtype=application/json -Durl=http://localhost:$SOLR_PORT/solr/update/json -jar $1/example/exampledocs/post.jar $2
49   -}
50   -
51   -
52   -download_and_run() {
53   - case $1 in
54   - 3.5.0)
55   - url="http://archive.apache.org/dist/lucene/solr/3.5.0/apache-solr-3.5.0.tgz"
56   - dir_name="apache-solr-3.5.0"
57   - dir_conf="conf/"
58   - ;;
59   - 3.6.0)
60   - url="http://archive.apache.org/dist/lucene/solr/3.6.0/apache-solr-3.6.0.tgz"
61   - dir_name="apache-solr-3.6.0"
62   - dir_conf="conf/"
63   - ;;
64   - 3.6.1)
65   - url="http://archive.apache.org/dist/lucene/solr/3.6.1/apache-solr-3.6.1.tgz"
66   - dir_name="apache-solr-3.6.1"
67   - dir_conf="conf/"
68   - ;;
69   - 3.6.2)
70   - url="http://archive.apache.org/dist/lucene/solr/3.6.2/apache-solr-3.6.2.tgz"
71   - dir_name="apache-solr-3.6.2"
72   - dir_conf="conf/"
73   - ;;
74   - 4.0.0)
75   - url="http://archive.apache.org/dist/lucene/solr/4.0.0/apache-solr-4.0.0.tgz"
76   - dir_name="apache-solr-4.0.0"
77   - dir_conf="collection1/conf/"
78   - ;;
79   - 4.1.0)
80   - url="http://archive.apache.org/dist/lucene/solr/4.1.0/solr-4.1.0.tgz"
81   - dir_name="solr-4.1.0"
82   - dir_conf="collection1/conf/"
83   - ;;
84   - 4.2.0)
85   - url="http://archive.apache.org/dist/lucene/solr/4.2.0/solr-4.2.0.tgz"
86   - dir_name="solr-4.2.0"
87   - dir_conf="collection1/conf/"
88   - ;;
89   - 4.2.1)
90   - url="http://archive.apache.org/dist/lucene/solr/4.2.1/solr-4.2.1.tgz"
91   - dir_name="solr-4.2.1"
92   - dir_conf="collection1/conf/"
93   - ;;
94   - 4.3.1)
95   - url="http://archive.apache.org/dist/lucene/solr/4.3.1/solr-4.3.1.tgz"
96   - dir_name="solr-4.3.1"
97   - dir_conf="collection1/conf/"
98   - ;;
99   - 4.4.0)
100   - url="http://archive.apache.org/dist/lucene/solr/4.4.0/solr-4.4.0.tgz"
101   - dir_name="solr-4.4.0"
102   - dir_conf="collection1/conf/"
103   - ;;
104   - 4.5.0)
105   - url="http://archive.apache.org/dist/lucene/solr/4.5.0/solr-4.5.0.tgz"
106   - dir_name="solr-4.5.0"
107   - dir_conf="collection1/conf/"
108   - ;;
109   - 4.5.1)
110   - url="http://archive.apache.org/dist/lucene/solr/4.5.1/solr-4.5.1.tgz"
111   - dir_name="solr-4.5.1"
112   - dir_conf="collection1/conf/"
113   - ;;
114   - 4.6.0)
115   - url="http://archive.apache.org/dist/lucene/solr/4.6.0/solr-4.6.0.tgz"
116   - dir_name="solr-4.6.0"
117   - dir_conf="collection1/conf/"
118   - ;;
119   - 4.6.1)
120   - url="http://archive.apache.org/dist/lucene/solr/4.6.1/solr-4.6.1.tgz"
121   - dir_name="solr-4.6.1"
122   - dir_conf="collection1/conf/"
123   - ;;
124   - 4.7.0)
125   - url="http://archive.apache.org/dist/lucene/solr/4.7.0/solr-4.7.0.tgz"
126   - dir_name="solr-4.7.0"
127   - dir_conf="collection1/conf/"
128   - ;;
129   - 4.7.1)
130   - url="http://archive.apache.org/dist/lucene/solr/4.7.1/solr-4.7.1.tgz"
131   - dir_name="solr-4.7.1"
132   - dir_conf="collection1/conf/"
133   - ;;
134   - 4.7.2)
135   - url="http://archive.apache.org/dist/lucene/solr/4.7.2/solr-4.7.2.tgz"
136   - dir_name="solr-4.7.2"
137   - dir_conf="collection1/conf/"
138   - ;;
139   - 4.8.0)
140   - url="http://archive.apache.org/dist/lucene/solr/4.8.0/solr-4.8.0.tgz"
141   - dir_name="solr-4.8.0"
142   - dir_conf="collection1/conf/"
143   - ;;
144   - 4.8.1)
145   - url="http://archive.apache.org/dist/lucene/solr/4.8.1/solr-4.8.1.tgz"
146   - dir_name="solr-4.8.1"
147   - dir_conf="collection1/conf/"
148   - ;;
149   - 4.9.0)
150   - url="http://archive.apache.org/dist/lucene/solr/4.9.0/solr-4.9.0.tgz"
151   - dir_name="solr-4.9.0"
152   - dir_conf="collection1/conf/"
153   - ;;
154   - 4.9.1)
155   - url="http://archive.apache.org/dist/lucene/solr/4.9.1/solr-4.9.1.tgz"
156   - dir_name="solr-4.9.1"
157   - dir_conf="collection1/conf/"
158   - ;;
159   - 4.10.0)
160   - url="http://archive.apache.org/dist/lucene/solr/4.10.0/solr-4.10.0.tgz"
161   - dir_name="solr-4.10.0"
162   - dir_conf="collection1/conf/"
163   - ;;
164   - 4.10.1)
165   - url="http://archive.apache.org/dist/lucene/solr/4.10.1/solr-4.10.1.tgz"
166   - dir_name="solr-4.10.1"
167   - dir_conf="collection1/conf/"
168   - ;;
169   - 4.10.2)
170   - url="http://archive.apache.org/dist/lucene/solr/4.10.2/solr-4.10.2.tgz"
171   - dir_name="solr-4.10.2"
172   - dir_conf="collection1/conf/"
173   - ;;
174   - 4.10.3)
175   - url="http://archive.apache.org/dist/lucene/solr/4.10.3/solr-4.10.3.tgz"
176   - dir_name="solr-4.10.3"
177   - dir_conf="collection1/conf/"
178   - ;;
179   - esac
180   -
181   - download $url $dir_name
182   -
183   - # copies custom configurations
184   - for file in $SOLR_CONFS
185   - do
186   - if [ -f $file ]
187   - then
188   - cp $file $dir_name/example/solr/$dir_conf
189   - echo "Copied $file into solr conf directory."
190   - fi
191   - done
192   -
193   - # Run solr
194   - run $dir_name $SOLR_PORT
195   -
196   - # Post documents
197   - if [ -z "$SOLR_DOCS" ]
198   - then
199   - echo "$SOLR_DOCS not defined, skipping initial indexing"
200   - else
201   - echo "Indexing $SOLR_DOCS"
202   - post_some_documents $dir_name $SOLR_DOCS
203   - fi
204   -}
205   -
206   -check_version() {
207   - case $1 in
208   - 3.5.0|3.6.0|3.6.1|3.6.2|4.0.0|4.1.0|4.2.0|4.2.1|4.3.1|4.4.0|4.5.0|4.5.1|4.6.0|4.6.1|4.7.0|4.7.1|4.7.2|4.8.0|4.8.1|4.9.0|4.9.1|4.10.0|4.10.1|4.10.2|4.10.3);;
209   - *)
210   - echo "Sorry, $1 is not supported or not valid version."
211   - exit 1
212   - ;;
213   - esac
214   -}
215   -
216   -
217   -check_version $SOLR_VERSION
218   -download_and_run $SOLR_VERSION
ci/rinse.conf
... ... @@ -1,146 +0,0 @@
1   -#
2   -# /etc/rinse/rinse.conf
3   -#
4   -# Contains the list of servers to download our initial collection of
5   -# packages from.
6   -#
7   -# Steve
8   -# --
9   -#
10   -
11   -
12   -# RedHat Enterprise Linux 5 (RHEL-5)
13   -[rhel-5]
14   -mirror = http://your.mirror.to.rhel5.repository.here/rhel/5/i386/Server/
15   -mirror.amd64 = http://your.mirror.to.rhel5.repository.here/rhel/5/x86_64/Server/
16   -
17   -
18   -[centos-4]
19   -mirror = http://vault.centos.org/4.9/os/i386/CentOS/RPMS/
20   -mirror.amd64 = http://vault.centos.org/4.9/os/x86_64/CentOS/RPMS/
21   -
22   -[centos-5]
23   -mirror = http://mirror.centos.org/centos/5/os/i386/CentOS/
24   -mirror.amd64 = http://mirror.centos.org/centos/5/os/x86_64/CentOS/
25   -
26   -[centos-6]
27   -mirror = http://mirror.centos.org/centos/6/os/i386/Packages/
28   -mirror.amd64 = http://mirror.centos.org/centos/6/os/x86_64/Packages/
29   -
30   -[centos-7]
31   -mirror = http://mirror.centos.org/centos/7/os/i386/Packages/
32   -mirror.amd64 = http://mirror.centos.org/centos/7/os/x86_64/Packages/
33   -
34   -# Scientific Linux CERN 5 (SLC-5)
35   -[slc-5]
36   -mirror = http://linuxsoft.cern.ch/cern/slc5X/i386/SL/
37   -mirror.amd64 = http://linuxsoft.cern.ch/cern/slc5X/x86_64/SL/
38   -
39   -# Scientific Linux CERN 6 (SLC-6)
40   -[slc-6]
41   -mirror = http://linuxsoft.cern.ch/cern/slc6X/i386/SLC/Packages/
42   -mirror.amd64 = http://linuxsoft.cern.ch/cern/slc6X/x86_64/SLC/Packages/
43   -
44   -[fedora-core-4]
45   -mirror = http://dl.fedoraproject.org/pub/archive/fedora/linux/core/4/i386/os/Fedora/RPMS/
46   -mirror.amd64 = http://dl.fedoraproject.org/pub/archive/fedora/linux/core/4/x86_64/os/Fedora/RPMS/
47   -
48   -[fedora-core-5]
49   -mirror = http://dl.fedoraproject.org/pub/archive/fedora/linux/core/5/i386/os/Fedora/RPMS/
50   -mirror.amd64 = http://dl.fedoraproject.org/pub/archive/fedora/linux/core/5/x86_64/os/Fedora/RPMS/
51   -
52   -[fedora-core-6]
53   -mirror = http://dl.fedoraproject.org/pub/archive/fedora/linux/core/6/i386/os/Fedora/RPMS/
54   -mirror.amd64 = http://dl.fedoraproject.org/pub/archive/fedora/linux/core/6/x86_64/os/Fedora/RPMS/
55   -
56   -[fedora-7]
57   -mirror = http://ftp.heanet.ie/pub/fedora-archive/fedora/linux/releases/7/Fedora/i386/os/Fedora/
58   -mirror.amd64 = http://ftp.heanet.ie/pub/fedora-archive/fedora/linux/releases/7/Fedora/x86_64/os/Fedora/
59   -
60   -[fedora-8]
61   -mirror = http://ftp.heanet.ie/pub/fedora-archive/fedora/linux/releases/8/Fedora/i386/os/Packages/
62   -mirror.amd64 = http://ftp.heanet.ie/pub/fedora-archive/fedora/linux/releases/8/Fedora/x86_64/os/Packages/
63   -
64   -[fedora-9]
65   -mirror = http://ftp.heanet.ie/pub/fedora-archive/fedora/linux/releases/9/Fedora/i386/os/Packages/
66   -mirror.amd64 = http://ftp.heanet.ie/pub/fedora-archive/fedora/linux/releases/9/Fedora/x86_64/os/Packages/
67   -
68   -[fedora-10]
69   -mirror = http://ftp.heanet.ie/pub/fedora-archive/fedora/linux/releases/10/Fedora/i386/os/Packages/
70   -mirror.amd64 = http://ftp.heanet.ie/pub/fedora-archive/fedora/linux/releases/10/Fedora/x86_64/os/Packages/
71   -
72   -[fedora-11]
73   -mirror = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/11/Fedora/i386/os/Packages/
74   -mirror.amd64 = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/11/Fedora/x86_64/os/Packages/
75   -
76   -[fedora-12]
77   -mirror = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/12/Fedora/i386/os/Packages/
78   -mirror.amd64 = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/12/Fedora/x86_64/os/Packages/
79   -
80   -[fedora-13]
81   -mirror = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/13/Fedora/i386/os/Packages/
82   -mirror.amd64 = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/13/Fedora/x86_64/os/Packages/
83   -
84   -[fedora-14]
85   -mirror = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/14/Fedora/i386/os/Packages/
86   -mirror.amd64 = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/14/Fedora/x86_64/os/Packages/
87   -
88   -[fedora-15]
89   -mirror = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/15/Fedora/i386/os/Packages/
90   -mirror.amd64 = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/15/Fedora/x86_64/os/Packages/
91   -
92   -[fedora-16]
93   -mirror = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/16/Fedora/i386/os/Packages/
94   -mirror.amd64 = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/16/Fedora/x86_64/os/Packages/
95   -
96   -[fedora-17]
97   -mirror = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/17/Fedora/i386/os/Packages/
98   -mirror.amd64 = http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/17/Fedora/x86_64/os/Packages/
99   -
100   -[fedora-18]
101   -mirror = http://mirrors.kernel.org/fedora/releases/18/Everything/i386/os/Packages/
102   -mirror.amd64 = http://mirrors.kernel.org/fedora/releases/18/Everything/x86_64/os/Packages/
103   -
104   -[fedora-19]
105   -mirror = http://mirrors.kernel.org/fedora/releases/19/Everything/i386/os/Packages/
106   -mirror.amd64 = http://mirrors.kernel.org/fedora/releases/19/Everything/x86_64/os/Packages/
107   -
108   -[opensuse-10.1]
109   -mirror = http://ftp.hosteurope.de/mirror/ftp.opensuse.org/discontinued/SL-10.1/inst-source/suse/i586/
110   -mirror.amd64 = http://ftp.hosteurope.de/mirror/ftp.opensuse.org/discontinued/SL-10.1/inst-source/suse/x86_64/
111   -
112   -
113   -[opensuse-10.2]
114   -mirror = http://ftp.hosteurope.de/mirror/ftp.opensuse.org/discontinued/10.2/repo/oss/suse/i586/
115   -mirror.amd64 = http://ftp.hosteurope.de/mirror/ftp.opensuse.org/discontinued/10.2/repo/oss/suse/x86_64/
116   -
117   -
118   -[opensuse-10.3]
119   -mirror = http://ftp.hosteurope.de/mirror/ftp.opensuse.org/discontinued/10.3/repo/oss/suse/i586/
120   -mirror.amd64 = http://ftp.hosteurope.de/mirror/ftp.opensuse.org/discontinued/10.3/repo/oss/suse/x86_64/
121   -
122   -
123   -[opensuse-11.0]
124   -mirror = http://download.opensuse.org/distribution/11.0/repo/oss/suse/i586/
125   -mirror.amd64 = http://download.opensuse.org/distribution/11.0/repo/oss/suse/x86_64/
126   -
127   -
128   -[opensuse-11.1]
129   -mirror = http://download.opensuse.org/distribution/11.1/repo/oss/suse/i586/
130   -mirror.amd64 = http://download.opensuse.org/distribution/11.1/repo/oss/suse/x86_64/
131   -
132   -[opensuse-11.3]
133   -mirror = http://download.opensuse.org/distribution/11.3/repo/oss/suse/i586/
134   -mirror.amd64 = http://download.opensuse.org/distribution/11.3/repo/oss/suse/x86_64/
135   -
136   -[opensuse-12.1]
137   -mirror = http://download.opensuse.org/distribution/12.1/repo/oss/suse/i586/
138   -mirror.amd64 = http://download.opensuse.org/distribution/12.1/repo/oss/suse/x86_64/
139   -
140   -[opensuse-12.3]
141   -mirror = http://download.opensuse.org/distribution/12.3/repo/oss/suse/i586/
142   -mirror.amd64 = http://download.opensuse.org/distribution/12.3/repo/oss/suse/x86_64/
143   -
144   -[opensuse-13.1]
145   -mirror = http://download.opensuse.org/distribution/13.1/repo/oss/suse/i586/
146   -mirror.amd64 = http://download.opensuse.org/distribution/13.1/repo/oss/suse/x86_64/
ci/softwarepublico.key
... ... @@ -1,20 +0,0 @@
1   ------BEGIN PGP PUBLIC KEY BLOCK-----
2   -Version: GnuPG v2.0.15 (GNU/Linux)
3   -
4   -mQENBFRE9cMBCADl9VaZi3A4u5Fy2X9FP/18xkz2U1hsklLTgvwSuFT4gDCgtvD4
5   -r3xAxnZ/52yLdAnrBratM1uC03WWifrCE+J5rImhiwP3itUzAGi/chmfVAuMBAVN
6   -7rjBpurQoEuMDwec60XmS9XJ+BrcO+MyKaLTxKwy1KN+vaIM8Z7evpFdZghXwbL6
7   -17ENLRbvqVs7gNtiyLQb26mNMRxTzp7vGFn4Vm2b73GrKvPC4nnUBA5FYZkSclk2
8   -gpYt/QSZ7qj/YQZmzx31YSSRB8BOPGlsXV2ShWTzvVXfQoZ//ViDgYUlwh5hmaJo
9   -f1gG6MumwJOdcfGlS2BOkddcYpNTveQ4HNQdABEBAAG0MGlzdjpzcGIgT0JTIFBy
10   -b2plY3QgPGlzdjpzcGJAYnVpbGQub3BlbnN1c2Uub3JnPokBPgQTAQIAKAUCVET1
11   -wwIbAwUJBB6wAAYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQE7yUxPVcdQmz
12   -yAf/VIWhDdhOnF6XsR/USY57T1gYxFP3H+KchlCfvyFRc3lczZaDVQ57WkYlw7/2
13   -TN2TpN6JMHPbmltD0QuQg9GSulgp1A5A6R9yWolcZ0QLkSndHcjQciZ4hHcrqO+C
14   -Yb8fCMFJfejJ5FcTEVCBQgnazgI9qRyPAhEFZF3OCgQ1XOoaufojPGoKYoNXBOGI
15   -g2phdVE1glq6ZesKMagoFURGf4pm/Muq5pjK0DbF/iVOM9uVGDWLLpfVMicYiHSF
16   -YbqundUK6MzFlwuLSM0lXYuaaOF6rN3Gq03FVjNE5jbCUxJZAHSYF8KLZ57Opr8R
17   -KVogKh7j5fixFpDoydcPkS0Md4hGBBMRAgAGBQJURPXDAAoJEDswEbdrnWUjeLkA
18   -oKdP1tDhp1FzMFX+MTvEM/HyupveAKCHai4jMDBsjsoVJDobCws7IBLa3g==
19   -=v9lx
20   ------END PGP PUBLIC KEY BLOCK-----
colab.spec
... ... @@ -1,186 +0,0 @@
1   -%define name colab
2   -%define version 1.9
3   -%define unmangled_version 1.9
4   -%define default_release 1
5   -%{!?release: %define release %{default_release}}
6   -%define buildvenv /var/tmp/%{name}-%{version}
7   -
8   -Summary: Collaboration platform for communities
9   -Name: %{name}
10   -Version: %{version}
11   -Release: %{release}
12   -Source0: %{name}-%{unmangled_version}.tar.gz
13   -License: GPLv2
14   -Group: Development/Tools
15   -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
16   -Prefix: %{_prefix}
17   -Vendor: Sergio Oliveira <sergio@tracy.com.br>
18   -Url: https://github.com/colab-community/colab
19   -BuildArch: noarch
20   -BuildRequires: colab-deps, python-virtualenv
21   -Requires: colab-deps, solr, mailman-api
22   -
23   -%description
24   -Integrated software development platform.
25   -
26   -%prep
27   -%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}
28   -
29   -%build
30   -# install colab into virtualenv to make sure dependencies are OK
31   -rm -rf %{buildvenv}
32   -cp -r /usr/lib/colab %{buildvenv}
33   -PATH=%{buildvenv}/bin:$PATH pip install --no-index .
34   -virtualenv --relocatable %{buildvenv}
35   -
36   -# cleanup virtualenv
37   -rpm -ql colab-deps | sed '/^\/usr\/lib\/colab\// !d; s#/usr/lib/colab/##' > cleanup.list
38   -while read f; do
39   - if [ -f "%{buildvenv}/$f" ]; then
40   - rm -f "%{buildvenv}/$f"
41   - fi
42   -done < cleanup.list
43   -rm -f cleanup.list
44   -find %{buildvenv} -type d -empty -delete
45   -
46   -%install
47   -mkdir -p %{buildroot}/etc/colab
48   -mkdir -p %{buildroot}/usr/lib
49   -
50   -# install virtualenv
51   -rm -rf %{buildroot}/usr/lib/colab
52   -cp -r %{buildvenv} %{buildroot}/usr/lib/colab
53   -mkdir -p %{buildroot}/%{_bindir}
54   -cat > %{buildroot}/%{_bindir}/colab-admin <<EOF
55   -#!/bin/sh
56   -set -e
57   -
58   -if [ "\$USER" = colab ]; then
59   - exec /usr/lib/colab/bin/colab-admin "\$@"
60   -else
61   - exec sudo -u colab /usr/lib/colab/bin/colab-admin "\$@"
62   -fi
63   -EOF
64   -chmod +x %{buildroot}/%{_bindir}/colab-admin
65   -
66   -# install initscript
67   -install -d -m 0755 %{buildroot}/lib/systemd/system
68   -install -m 0644 misc/lib/systemd/system/colab.service %{buildroot}/lib/systemd/system
69   -# install crontab
70   -install -d -m 0755 %{buildroot}/etc/cron.d
71   -install -m 0644 misc/etc/cron.d/colab %{buildroot}/etc/cron.d
72   -
73   -%clean
74   -rm -rf $RPM_BUILD_ROOT
75   -rm -rf %{buildvenv}
76   -
77   -%files
78   -/usr/lib/colab
79   -%{_bindir}/*
80   -/etc/cron.d/colab
81   -/lib/systemd/system/colab.service
82   -
83   -%post
84   -groupadd colab || true
85   -if ! id colab; then
86   - useradd --system --gid colab --home-dir /usr/lib/colab --no-create-home colab
87   -fi
88   -
89   -mkdir -p /etc/colab
90   -
91   -if [ ! -f /etc/colab/settings.yaml ]; then
92   - SECRET_KEY=$(openssl rand -hex 32)
93   - cat > /etc/colab/settings.yaml <<EOF
94   -## Set to false in production
95   -DEBUG: true
96   -TEMPLATE_DEBUG: true
97   -
98   -## System admins
99   -ADMINS: &admin
100   - -
101   - - John Foo
102   - - john@example.com
103   - -
104   - - Mary Bar
105   - - mary@example.com
106   -
107   -MANAGERS: *admin
108   -
109   -COLAB_FROM_ADDRESS: '"Colab" <noreply@example.com>'
110   -SERVER_EMAIL: '"Colab" <noreply@example.com>'
111   -
112   -EMAIL_HOST: localhost
113   -EMAIL_PORT: 25
114   -EMAIL_SUBJECT_PREFIX: '[colab]'
115   -
116   -SECRET_KEY: '$SECRET_KEY'
117   -
118   -SITE_URL: 'http://localhost:8001/'
119   -BROWSERID_AUDIENCES:
120   - - http://localhost:8001
121   -# - http://example.com
122   -# - https://example.org
123   -# - http://example.net
124   -
125   -ALLOWED_HOSTS:
126   - - localhost
127   -# - example.com
128   -# - example.org
129   -# - example.net
130   -
131   -## Disable indexing
132   -ROBOTS_NOINDEX: false
133   -
134   -## Disable browser id authentication
135   -# BROWSERID_ENABLED: true
136   -EOF
137   - chown root:colab /etc/colab/settings.yaml
138   - chmod 0640 /etc/colab/settings.yaml
139   -fi
140   -
141   -mkdir -p /etc/colab/settings.d
142   -
143   -if [ ! -f /etc/colab/settings.d/00-database.yaml ]; then
144   - cat > /etc/colab/settings.d/00-database.yaml <<EOF
145   -DATABASES:
146   - default:
147   - ENGINE: django.db.backends.postgresql_psycopg2
148   - NAME: colab
149   - USER: colab
150   - HOST: localhost
151   - PORT: 5432
152   -EOF
153   - chown root:colab /etc/colab/settings.d/00-database.yaml
154   - chmod 0640 /etc/colab/settings.d/00-database.yaml
155   -fi
156   -
157   -# only applies if there is a local PostgreSQL server
158   -if [ -x /usr/bin/postgres ]; then
159   -
160   - # start/enable the service
161   - postgresql-setup initdb || true
162   - systemctl start postgresql
163   - systemctl enable postgresql
164   -
165   - if [ "$(sudo -u postgres -i psql --quiet --tuples-only -c "select count(*) from pg_user where usename = 'colab';")" -eq 0 ]; then
166   - # create user
167   - sudo -u postgres -i createuser colab
168   - fi
169   -
170   - if [ "$(sudo -u postgres -i psql --quiet --tuples-only -c "select count(1) from pg_database where datname = 'colab';")" -eq 0 ]; then
171   - # create database
172   - sudo -u postgres -i createdb --owner=colab colab
173   - fi
174   -
175   - colab-admin migrate
176   -fi
177   -
178   -mkdir -p /var/lib/colab-assets
179   -chown colab:colab /var/lib/colab-assets
180   -
181   -mkdir -p /usr/share/nginx/
182   -
183   -ln -s /var/lib/colab-assets /usr/share/nginx/colab
184   -
185   -yes yes | colab-admin collectstatic
186   -
update_obs.sh
... ... @@ -1,53 +0,0 @@
1   -#!/bin/bash
2   -
3   -which osc || { echo "osc must be installed"; exit 1; }
4   -
5   -VERSION=`python setup.py --version`
6   -PLATFORM=`uname`
7   -
8   -pull_obs () {
9   - if [ -d .obs ]
10   - then
11   - osc update .obs/
12   - else
13   - osc checkout isv:spb:colab/colab --output-dir=".obs/"
14   - fi
15   -}
16   -
17   -update_sdist () {
18   - rm -fR dist/
19   - python setup.py sdist
20   -}
21   -
22   -
23   -add_to_obs () {
24   - osc revert .obs/
25   - osc rm -f .obs/colab-*.tar.gz
26   -
27   - cp dist/colab-*.tar.gz .obs/
28   - cp colab.spec .obs/
29   -
30   - osc add .obs/colab-$VERSION.tar.gz
31   -}
32   -
33   -
34   -update_spec_versions () {
35   - regex="s/(\%define (unmangled_)?version).*/\1 $VERSION/;"
36   - if [[ "$PLATFORM" == 'Darwin' ]]; then
37   - sed -i '' -E "$regex" colab.spec
38   - else
39   - sed -i -E "$regex" colab.spec
40   - fi
41   -}
42   -
43   -
44   -push_to_obs () {
45   - osc checkin .obs/ -m "Updated version $VERSION"
46   -}
47   -
48   -update_sdist
49   -update_spec_versions
50   -
51   -pull_obs
52   -add_to_obs
53   -push_to_obs