diff options
author | jgeboski <jgeboski@gmail.com> | 2016-02-15 23:42:08 +0300 |
---|---|---|
committer | jgeboski <jgeboski@gmail.com> | 2016-02-15 23:42:08 +0300 |
commit | 1af1f6f709910a02a0a3093c75bae839a1d4fcd8 (patch) | |
tree | 3de6b8a3f36315771db9c9ea55bfd97894623205 | |
parent | 04f1eddbe2a18a66e399f8c7a6031bf5cb66a163 (diff) |
Added RPM autobuilds
-rwxr-xr-x | .travis/obs.sh | 6 | ||||
-rw-r--r-- | dist/_service | 6 | ||||
-rw-r--r-- | dist/purple-facebook.spec | 49 |
3 files changed, 61 insertions, 0 deletions
diff --git a/.travis/obs.sh b/.travis/obs.sh index 3be396c..f09d8dc 100755 --- a/.travis/obs.sh +++ b/.travis/obs.sh @@ -20,6 +20,11 @@ sed -ri \ sed -ri \ -e "s/(^Build-Depends:.*)/\1, libzephyr4/" \ debian/control +sed -ri \ + -e "s/(^%setup -q.*)/\1 -n %\{name\}/" \ + -e "s/(^Source0:.*)\-(.*)/\1_\2/" \ + -e "s/(^Version:).*/\1 ${FULLVERS}/" \ + dist/*.spec cat <<EOF > debian/changelog ${REPONAME} (${FULLVERS}) UNRELEASED; urgency=medium @@ -44,6 +49,7 @@ osc checkout "home:${OBSUSER}" "${REPONAME}" -o /tmp/obs cd /tmp/obs rm -f *.{dsc,tar.gz} dpkg-source -I -b "${TRAVIS_BUILD_DIR}" + cp "${TRAVIS_BUILD_DIR}/dist/_service" . osc addremove -r osc commit -m "Updated to ${FULLVERS}" diff --git a/dist/_service b/dist/_service new file mode 100644 index 0000000..705265c --- /dev/null +++ b/dist/_service @@ -0,0 +1,6 @@ +<services> + <service name="extract_file"> + <param name="archive">*.tar.gz</param> + <param name="files">*/dist/*.spec</param> + </service> +</services> diff --git a/dist/purple-facebook.spec b/dist/purple-facebook.spec new file mode 100644 index 0000000..5c18d23 --- /dev/null +++ b/dist/purple-facebook.spec @@ -0,0 +1,49 @@ +%if 0%{?suse_version} +%define _group Productivity/Networking/Instant Messenger +%else +%define _group Applications/Internet +%endif + +Name: purple-facebook +Version: 0.0.0 +Release: 0 +Summary: Facebook protocol plugin for libpurple +Group: %{_group} +License: GPL-2.0+ +URL: https://github.com/jgeboski/purple-facebook +Source0: %{name}-%{version}.tar.gz + +BuildRequires: autoconf >= 2.64 +BuildRequires: automake +BuildRequires: glib2-devel >= 2.28.0 +BuildRequires: json-glib-devel >= 0.14 +BuildRequires: libpurple-devel < 3 +BuildRequires: libtool +BuildRequires: pkg-config + +Requires: glib2 >= 2.28.0 +Requires: json-glib >= 0.14 +Requires: libpurple < 3 + +%description +Purple Facebook implements the Facebook Messenger protocol into pidgin, +finch, and libpurple. While the primary implementation is for purple3, +this plugin is back-ported for purple2. + +%prep +%setup -q + +%build +autoreconf -fi +%configure +make %{?_smp_mflags} + +%install +%make_install +find %{buildroot} -name '*.la' -print -delete + +%files +%doc AUTHORS COPYING ChangeLog NEWS README +%{_libdir}/purple-2/libfacebook.so + +%changelog |