2012-09-19 11:02:07 -04:00
|
|
|
%global groupname spectrum
|
|
|
|
%global username spectrum
|
|
|
|
|
|
|
|
Summary: XMPP transport
|
|
|
|
Name: spectrum2
|
2012-09-21 14:12:51 -04:00
|
|
|
Version: 2.0
|
2012-12-03 14:14:23 +01:00
|
|
|
Release: 1%{?dist}
|
2012-09-19 11:02:07 -04:00
|
|
|
Group: Applications/Internet
|
|
|
|
License: GPLv3
|
|
|
|
Source0: spectrum2.tar.gz
|
|
|
|
URL: http://swift.im/
|
2012-12-03 14:14:23 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: mysql-devel
|
|
|
|
BuildRequires: cppunit-devel
|
|
|
|
%if 0%{?rhel} > 0 && 0%{?rhel} <= 6
|
|
|
|
BuildRequires: sqlite-devel
|
2012-09-19 11:02:07 -04:00
|
|
|
%else
|
2012-12-03 14:14:23 +01:00
|
|
|
BuildRequires: libsqlite3x-devel
|
2012-09-19 11:02:07 -04:00
|
|
|
%endif
|
2012-12-03 14:14:23 +01:00
|
|
|
BuildRequires: protobuf-devel
|
|
|
|
BuildRequires: protobuf-compiler
|
|
|
|
BuildRequires: popt-devel
|
|
|
|
BuildRequires: libidn-devel
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
BuildRequires: avahi-devel
|
|
|
|
BuildRequires: log4cxx-devel
|
2015-11-11 08:01:19 +01:00
|
|
|
BuildRequires: swiften-devel
|
2012-12-05 14:34:25 +01:00
|
|
|
BuildRequires: libcommuni-devel
|
2012-09-19 11:02:07 -04:00
|
|
|
Requires: libtransport%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
2012-12-03 14:14:23 +01:00
|
|
|
Spectrum 2 is an XMPP transport/gateway and also simple XMPP server.
|
2012-09-19 11:02:07 -04:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n spectrum2
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake . -DCMAKE_BUILD_TYPE=Debug
|
|
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2012-09-21 13:53:46 -04:00
|
|
|
rm -rf %{buildroot}
|
2012-09-19 11:02:07 -04:00
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
install -d %{buildroot}%{_localstatedir}/{lib,run,log}/spectrum2
|
2012-11-30 11:01:00 -05:00
|
|
|
install -p -D -m 755 packaging/fedora/spectrum2.init \
|
2012-09-19 11:02:07 -04:00
|
|
|
%{buildroot}%{_initddir}/spectrum2
|
|
|
|
|
|
|
|
ln -s /usr/bin/spectrum2_libpurple_backend %{buildroot}/usr/bin/spectrum_libpurple_backend
|
|
|
|
|
|
|
|
%pre
|
|
|
|
getent group %{groupname} >/dev/null || groupadd -r %{groupname}
|
|
|
|
getent passwd %{username} >/dev/null || \
|
|
|
|
useradd -r -g %{groupname} -d %{_localstatedir}/lib/spectrum \
|
|
|
|
-s /sbin/nologin \
|
|
|
|
-c "spectrum XMPP transport" %{username}
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root,-)
|
2015-11-11 08:01:19 +01:00
|
|
|
%doc README.md
|
2012-09-19 11:02:07 -04:00
|
|
|
%{_bindir}/spectrum2
|
|
|
|
%{_bindir}/spectrum2_manager
|
|
|
|
/etc/spectrum2/*
|
|
|
|
%{_initddir}/spectrum2
|
|
|
|
%attr(700, %{username}, %{groupname}) %{_localstatedir}/lib/spectrum2/
|
|
|
|
%attr(700, %{username}, %{groupname}) %{_localstatedir}/run/spectrum2/
|
|
|
|
%attr(700, %{username}, %{groupname}) %{_localstatedir}/log/spectrum2/
|
2016-01-12 09:43:21 +00:00
|
|
|
%attr(700, %{username}, %{groupname}) %{_localstatedir}/lib/spectrum2_manager/
|
2012-09-19 11:02:07 -04:00
|
|
|
|
2015-12-01 10:58:17 +01:00
|
|
|
# LIBPURPLE
|
|
|
|
|
2012-09-19 11:02:07 -04:00
|
|
|
%package libpurple-backend
|
|
|
|
Summary: Libtransport
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: boost
|
|
|
|
Requires: libtransport%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description libpurple-backend
|
|
|
|
Spectrum2 libpurple backend
|
|
|
|
|
|
|
|
%files libpurple-backend
|
|
|
|
%defattr(-, root, root,-)
|
|
|
|
/usr/bin/spectrum2_libpurple_backend
|
|
|
|
/usr/bin/spectrum_libpurple_backend
|
|
|
|
/usr/bin/spectrum2_frotz_backend
|
|
|
|
/usr/bin/dfrotz
|
|
|
|
|
2015-12-01 10:58:17 +01:00
|
|
|
# FROTZ
|
|
|
|
|
|
|
|
%package frotz-backend
|
|
|
|
Summary: Libtransport
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: boost
|
|
|
|
Requires: libtransport%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description frotz-backend
|
|
|
|
Spectrum2 frotz backend
|
|
|
|
|
|
|
|
%files frotz-backend
|
|
|
|
%defattr(-, root, root,-)
|
|
|
|
/usr/bin/spectrum2_frotz_backend
|
|
|
|
/usr/bin/dfrotz
|
|
|
|
|
|
|
|
# COMMUNI
|
|
|
|
|
|
|
|
%package libcommuni-backend
|
|
|
|
Summary: Libtransport
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libtransport%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description libcommuni-backend
|
|
|
|
Spectrum2 libpurple backend
|
|
|
|
|
|
|
|
%files libcommuni-backend
|
|
|
|
%defattr(-, root, root,-)
|
|
|
|
/usr/bin/spectrum2_libcommuni_backend
|
|
|
|
|
|
|
|
# SMSTOOLS3
|
2012-09-19 11:02:07 -04:00
|
|
|
|
|
|
|
%package smstools3-backend
|
|
|
|
Summary: Libtransport
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: boost
|
|
|
|
Requires: libtransport%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description smstools3-backend
|
|
|
|
Spectrum2 SMSTools3 backend
|
|
|
|
|
|
|
|
%files smstools3-backend
|
|
|
|
%defattr(-, root, root,-)
|
|
|
|
/usr/bin/spectrum2_smstools3_backend
|
|
|
|
|
2015-12-01 10:58:17 +01:00
|
|
|
# SWIFTEN
|
|
|
|
|
2012-09-19 11:02:07 -04:00
|
|
|
%package swiften-backend
|
|
|
|
Summary: Libtransport
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: boost
|
|
|
|
Requires: libtransport%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description swiften-backend
|
|
|
|
Spectrum2 Swiften backend
|
|
|
|
|
|
|
|
%files swiften-backend
|
|
|
|
%defattr(-, root, root,-)
|
|
|
|
/usr/bin/spectrum2_swiften_backend
|
|
|
|
|
2015-12-01 10:58:17 +01:00
|
|
|
# TWITTER
|
|
|
|
|
2012-09-19 11:02:07 -04:00
|
|
|
%package twitter-backend
|
|
|
|
Summary: Libtransport
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: boost
|
|
|
|
Requires: libtransport%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description twitter-backend
|
|
|
|
Spectrum2 libyahoo2 backend
|
|
|
|
|
|
|
|
%files twitter-backend
|
|
|
|
%defattr(-, root, root,-)
|
|
|
|
/usr/bin/spectrum2_twitter_backend
|
|
|
|
|
2015-12-01 10:58:17 +01:00
|
|
|
# LIBTRANSPORT
|
2012-09-19 11:02:07 -04:00
|
|
|
|
|
|
|
%package -n libtransport
|
|
|
|
Summary: Libtransport
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: boost
|
|
|
|
|
|
|
|
%description -n libtransport
|
|
|
|
Libtransport library
|
|
|
|
|
|
|
|
%files -n libtransport
|
|
|
|
%defattr(-, root, root,-)
|
|
|
|
%{_libdir}/libtransport*.so*
|
|
|
|
/usr/include/transport
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2012-12-03 14:14:23 +01:00
|
|
|
* Mon Dec 03 2012 Jan Kaluza <jkaluza@redhat.com> - 2.0-1
|
2012-11-30 11:00:15 -05:00
|
|
|
- Work in progress
|
2012-09-19 11:02:07 -04:00
|
|
|
|
|
|
|
* Mon Jul 25 2011 Jan Kaluza <jkaluza@redhat.com> - 1.0-4
|
|
|
|
- rebuild for new boost
|
|
|
|
|
|
|
|
* Wed May 25 2011 Jan Kaluza <jkaluza@redhat.com> - 1.0-3
|
|
|
|
- fix #706719 - fixed another crash during login
|
|
|
|
|
|
|
|
* Tue Apr 26 2011 Jan Kaluza <jkaluza@redhat.com> - 1.0-2
|
|
|
|
- fix #697832 - fixed crash during login
|
|
|
|
|
|
|
|
* Tue Apr 19 2011 Jan Kaluza <jkaluza@redhat.com> - 1.0-1
|
|
|
|
- update to new upstream version 1.0
|
|
|
|
|
|
|
|
* Wed Apr 06 2011 Jan Kaluza <jkaluza@redhat.com> - 1.0-0.11.beta9
|
|
|
|
- rebuild for new boost
|
|
|
|
|
|
|
|
* Tue Mar 15 2011 Jan Kaluza <jkaluza@redhat.com> - 1.0-0.10.beta9
|
|
|
|
- update to new upstream version 1.0-beta9
|
|
|
|
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.9.beta8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Feb 06 2011 Thomas Spura <tomspur@fedoraproject.org> - 1.0-0.8.beta8
|
|
|
|
- rebuild for new boost
|
|
|
|
|
|
|
|
* Wed Nov 10 2010 Jan Kaluza <jkaluza@redhat.com> - 1.0-0.7.beta8
|
|
|
|
- update to new upstream version 1.0-beta8
|
|
|
|
|
|
|
|
* Tue Oct 19 2010 Jan Kaluza <jkaluza@redhat.com> - 1.0-0.6.beta7
|
|
|
|
- update to new upstream version 1.0-beta7
|
|
|
|
|
|
|
|
* Mon Aug 30 2010 Jan Kaluza <jkaluza@redhat.com> - 1.0-0.5.beta6
|
|
|
|
- update to new upstream version 1.0-beta6
|
|
|
|
|
|
|
|
* Tue Aug 10 2010 Jan Kaluza <jkaluza@redhat.com> - 1.0-0.4.beta5
|
|
|
|
- build with avahi-devel to get DNSSD Support
|
|
|
|
|
|
|
|
* Wed Aug 04 2010 Jan Kaluza <jkaluza@redhat.com> - 1.0-0.3.beta5
|
|
|
|
- build with optflags
|
|
|
|
- preserve swift.xpm timestamp
|
|
|
|
- fixed license and install COPYING file
|
|
|
|
- fixed Changelog entries
|
|
|
|
|
|
|
|
* Wed Jul 28 2010 Jan Kaluza <jkaluza@redhat.com> - 1.0-0.2.beta5
|
|
|
|
- delete all unused bundled libraries
|
|
|
|
- don't use deprecated BuildRoot tag
|
|
|
|
- swift.xpm replaced by icon from swift tarball
|
|
|
|
|
|
|
|
* Wed Jul 28 2010 Jan Kaluza <jkaluza@redhat.com> - 1.0-0.1.beta5
|
|
|
|
- created this SPEC file
|