Merge branch 'gh-pages' of github.com:hanzz/spectrum2 into gh-pages

This commit is contained in:
Vitaly Takmazov 2016-01-29 10:50:48 +03:00
commit 4047cebf9c
2 changed files with 4 additions and 34 deletions

View file

@ -2,35 +2,5 @@
layout: page
title: Spectrum 2
---
### Using spectrum repository
We have APT repositories for Debian and Ubuntu that make it very easy to install Spectrum 2.
To use the repositories, just add the following lines to `/etc/apt/sources.list`:
deb http://repo.spectrum.im $dist main
where $dist is either lucid, oneiric, precise, quantal, sid, squeeze, wheezy. If you are unsure, you can usually find your distribution in the file /etc/lsb-release. We also have a source repository at the same location if you want to build the package yourself.
apt-get update
### Building packages for different distributions/architectures
At now we do not have resources to support all different debian-based distributions and/or architectures, but you always can create packages for desired distribution yourself.
All required files for building Spectrum debian packages are present in the `packaging/debian` directory of spectrum Git repository. Most of required dependencies should be in the main Debian/Ubuntu repositories, except:
1. Swiften - the old Swiften library used by Spectrum is present in stable [Debian](https://packages.debian.org/jessie/libswiften-dev) and [Ubuntu LTS](http://packages.ubuntu.com/trusty/libswiften-dev) but may be missing in unstable/rolling Debian/Ubuntu trees. However, you can use their own [Debian/Ubuntu repository](https://github.com/hanzz/spectrum2/blob/master/.travis.yml#L10) or create packages yourself using the same method described here for Spectrum :)
2. Communi - this library is unavailable in Debian/Ubuntu, but we provide a special [repository](https://github.com/vitalyster/libcommuni-gbp) from which you can build libcommuni
#### Packaging for your current distribution
[TBD]
#### Creating package for different debian-based distro
We will show how to build Spectrum for the popular [Raspberry Pi](https://www.raspberrypi.org/) (or any similar) ARM-based machine with Debian-based distribution installed on it
[TBD]
### Install spectrum2
After you have done that, simply do:
apt-get install spectrum2 spectrum2-backend-libpurple
Note that these repositories pull in quite a few dependencies, depending on the distribution you use.
This is old page, please read [this page](packages_debian_ubuntu.html) intead.

View file

@ -23,8 +23,8 @@ You need to rebuild source libcommuni and spectrum packages from our source pack
# apt-get install devscripts fakeroot libssl-dev libqt4-dev
# dget -x http://packages.spectrum.im/spectrum2/pool/main/c/communi/communi_3.4.0-1.dsc
# cd communi_3.4.0-1 && dpkg-buildpackage -rfakeroot -us -uc && cd ..
# apt-get install libpurple-dev libswiften-dev libprotobuf-dev libmysqlclient-dev liblog4cxx10-dev protobuf-compiler libpopt-dev libdbus-glib-1-dev libpqxx3-dev cmake libevent-dev libboost-all-dev libidn11-dev libxml2-dev libavahi-client-dev libavahi-common-dev libcurl4-openssl-dev libsqlite3-dev
# dget -x http://packages.spectrum.im/spectrum2/pool/main/s/spectrum2/spectrum2_2.0.0-1.dsc
# cd spectrum2_2.0.0-1 && dpkg-buildpackage -rfakeroot -us -uc && cd ..
# apt-get install libpurple-dev libswiften-dev libprotobuf-dev libmysqlclient-dev liblog4cxx10-dev protobuf-compiler libpopt-dev libdbus-glib-1-dev libpqxx3-dev cmake libevent-dev libboost-all-dev libidn11-dev libxml2-dev libavahi-client-dev libavahi-common-dev libcurl4-openssl-dev libsqlite3-dev libcommuni-dev
# dget -x http://packages.spectrum.im/spectrum2/pool/main/s/spectrum2/spectrum2_2.0.1-1.dsc
# cd spectrum2_2.0.1-1 && DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -rfakeroot -us -uc && cd ..
When the compilation process has ended the .deb packages for libcommuni and spectrum will be generated in the current directory and can be installed with `dpkg -i < filename.deb >`.