2007-01-15 23:22:53 +00:00
|
|
|
#
|
2011-11-21 14:47:20 +00:00
|
|
|
# spec file for package libotr
|
2007-01-15 23:22:53 +00:00
|
|
|
#
|
2022-11-26 07:26:52 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2007-01-15 23:22:53 +00:00
|
|
|
#
|
2008-09-23 22:29:59 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2022-11-26 07:26:52 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:22:53 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libotr
|
2016-03-09 18:30:16 +00:00
|
|
|
Version: 4.1.1
|
2012-02-14 11:42:03 +00:00
|
|
|
Release: 0
|
2007-01-15 23:22:53 +00:00
|
|
|
Summary: "Off The Record" messaging library toolkit
|
2022-11-26 07:26:52 +00:00
|
|
|
License: GPL-2.0-only AND LGPL-2.1-only
|
2012-02-14 11:42:03 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2022-11-26 07:26:52 +00:00
|
|
|
URL: https://www.cypherpunks.ca/otr/
|
2014-10-21 20:30:39 +00:00
|
|
|
Source: https://www.cypherpunks.ca/otr/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://www.cypherpunks.ca/otr/%{name}-%{version}.tar.gz.asc
|
2016-03-09 18:30:16 +00:00
|
|
|
Source2: http://www.cypherpunks.ca/otr/gpgkey.asc#/libotr.keyring
|
|
|
|
Patch0: libotr-4.1.1-fix-base64-tests.patch
|
2018-05-16 06:20:25 +00:00
|
|
|
Patch1: libotr-test-underrun.patch
|
2018-09-27 15:05:10 +00:00
|
|
|
Patch2: libotr-test-uninitialized.patch
|
2022-11-26 07:26:52 +00:00
|
|
|
Patch3: libotr-4.1.1-include-socket.h.patch
|
2016-03-09 18:30:16 +00:00
|
|
|
BuildRequires: libgcrypt-devel >= 1.2.0
|
2013-06-20 08:40:39 +00:00
|
|
|
BuildRequires: pkgconfig
|
2007-01-15 23:22:53 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Off-the-Record (OTR) Messaging allows you to have private conversations
|
|
|
|
over instant messaging by providing: Encryption No one else can read
|
|
|
|
your instant messages. Authentication You are assured the correspondent
|
|
|
|
is who you think it is. Deniability The messages you send do not have
|
|
|
|
digital signatures that are checkable by a third party. Anyone can
|
|
|
|
forge messages after a conversation to make them look like they came
|
|
|
|
from you. However, during a conversation, your correspondent is assured
|
|
|
|
the messages he sees are authentic and unmodified. Perfect forward
|
|
|
|
secrecy If you lose control of your private keys, no previous
|
|
|
|
conversation is compromised.
|
|
|
|
|
2012-09-25 15:50:20 +00:00
|
|
|
%package -n libotr5
|
2007-11-12 20:54:47 +00:00
|
|
|
Summary: "Off The Record" messaging library toolkit
|
2018-05-16 06:20:25 +00:00
|
|
|
License: LGPL-2.1-only
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-09-27 15:05:10 +00:00
|
|
|
#openSUSE 10.3
|
2007-11-12 20:54:47 +00:00
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} <= 3.0.0
|
|
|
|
|
2012-09-25 15:50:20 +00:00
|
|
|
%description -n libotr5
|
2007-11-12 20:54:47 +00:00
|
|
|
Off-the-Record (OTR) Messaging allows you to have private conversations
|
|
|
|
over instant messaging by providing: Encryption No one else can read
|
|
|
|
your instant messages. Authentication You are assured the correspondent
|
|
|
|
is who you think it is. Deniability The messages you send do not have
|
|
|
|
digital signatures that are checkable by a third party. Anyone can
|
|
|
|
forge messages after a conversation to make them look like they came
|
|
|
|
from you. However, during a conversation, your correspondent is assured
|
|
|
|
the messages he sees are authentic and unmodified. Perfect forward
|
|
|
|
secrecy If you lose control of your private keys, no previous
|
|
|
|
conversation is compromised.
|
|
|
|
|
2007-01-15 23:22:53 +00:00
|
|
|
%package devel
|
2007-11-12 20:54:47 +00:00
|
|
|
Summary: Include files and development libraries
|
2022-11-26 07:26:52 +00:00
|
|
|
License: GPL-2.0-only AND LGPL-2.1-only
|
2007-01-15 23:22:53 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-09-25 15:50:20 +00:00
|
|
|
Requires: libgcrypt-devel
|
|
|
|
Requires: libotr5 = %{version}
|
2007-01-15 23:22:53 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Headers and development libraries for libotr
|
|
|
|
|
2007-11-12 20:54:47 +00:00
|
|
|
%package tools
|
|
|
|
Summary: "Off The Record" messaging library toolkit
|
2018-05-16 06:20:25 +00:00
|
|
|
License: GPL-2.0-only
|
2007-11-12 20:54:47 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Off-the-Record (OTR) Messaging allows you to have private conversations
|
|
|
|
over instant messaging by providing: Encryption No one else can read
|
|
|
|
your instant messages. Authentication You are assured the correspondent
|
|
|
|
is who you think it is. Deniability The messages you send do not have
|
|
|
|
digital signatures that are checkable by a third party. Anyone can
|
|
|
|
forge messages after a conversation to make them look like they came
|
|
|
|
from you. However, during a conversation, your correspondent is assured
|
|
|
|
the messages he sees are authentic and unmodified. Perfect forward
|
|
|
|
secrecy If you lose control of your private keys, no previous
|
|
|
|
conversation is compromised.
|
|
|
|
|
2007-01-15 23:22:53 +00:00
|
|
|
%prep
|
2022-11-26 07:26:52 +00:00
|
|
|
%autosetup -p1
|
2007-01-15 23:22:53 +00:00
|
|
|
|
|
|
|
%build
|
2016-03-09 18:30:16 +00:00
|
|
|
%ifarch %arm
|
2014-10-21 20:30:39 +00:00
|
|
|
export CFLAGS="%{optflags} -O1"
|
2007-01-15 23:22:53 +00:00
|
|
|
%else
|
2014-10-21 20:30:39 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2007-01-15 23:22:53 +00:00
|
|
|
%endif
|
2007-11-12 20:54:47 +00:00
|
|
|
%configure --disable-static --with-pic
|
2011-11-21 15:26:37 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-11-12 20:54:47 +00:00
|
|
|
|
2014-01-07 09:03:46 +00:00
|
|
|
%check
|
2014-10-21 20:30:39 +00:00
|
|
|
make %{?_smp_mflags} check
|
2007-01-15 23:22:53 +00:00
|
|
|
|
|
|
|
%install
|
2016-03-09 18:30:16 +00:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
2014-10-21 20:30:39 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/libotr.la
|
2007-01-15 23:22:53 +00:00
|
|
|
|
2007-11-12 20:54:47 +00:00
|
|
|
%files tools
|
2007-01-15 23:22:53 +00:00
|
|
|
%defattr (-, root, root)
|
2018-05-16 06:26:48 +00:00
|
|
|
%license COPYING
|
2007-11-12 20:54:47 +00:00
|
|
|
%{_bindir}/otr*
|
2007-01-15 23:22:53 +00:00
|
|
|
%{_mandir}/man1/otr*
|
|
|
|
|
2012-09-25 15:50:20 +00:00
|
|
|
%files -n libotr5
|
2007-01-15 23:22:53 +00:00
|
|
|
%defattr (-, root, root)
|
2018-05-16 06:26:48 +00:00
|
|
|
%license COPYING.LIB
|
2012-09-25 15:50:20 +00:00
|
|
|
%{_libdir}/libotr.so.5*
|
2007-01-15 23:22:53 +00:00
|
|
|
|
2007-11-12 20:54:47 +00:00
|
|
|
%files devel
|
|
|
|
%defattr (-, root, root)
|
2018-05-16 06:26:48 +00:00
|
|
|
%doc README AUTHORS NEWS ChangeLog
|
|
|
|
%license COPYING
|
2007-11-12 20:54:47 +00:00
|
|
|
%dir %{_includedir}/libotr
|
|
|
|
%{_includedir}/libotr/*.h
|
|
|
|
%{_libdir}/libotr.so
|
|
|
|
%{_datadir}/aclocal/libotr.m4
|
2008-09-23 22:29:59 +00:00
|
|
|
%{_libdir}/pkgconfig/libotr.pc
|
2007-11-12 20:54:47 +00:00
|
|
|
|
2012-09-25 15:50:20 +00:00
|
|
|
%post -n libotr5 -p /sbin/ldconfig
|
|
|
|
%postun -n libotr5 -p /sbin/ldconfig
|
2008-09-23 22:29:59 +00:00
|
|
|
|
2007-11-12 20:54:47 +00:00
|
|
|
%changelog
|