758d596
%global snapshot 0
09e6154
Summary: Off-The-Record Messaging library and toolkit
09e6154
Name: libotr
4531573
Version: 4.1.0
4531573
Release: 1%{?dist}
63f00fb
License: GPLv2 and LGPLv2
5b34fb3
Group: System Environment/Libraries
9b205a5
Source0: http://otr.cypherpunks.ca/%{name}-%{version}.tar.gz
9b205a5
Url: http://otr.cypherpunks.ca/
09e6154
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
09e6154
Provides: libotr-toolkit = %{version}
e5336f3
Obsoletes: libotr-toolkit < %{version}
9b205a5
Requires: libgcrypt >= 1.2.0
a31e467
Requires: pkgconfig
758d596
BuildRequires: libgcrypt-devel >= 1.2.0, libgpg-error-devel
758d596
%if %{snapshot}
758d596
Buildrequires: libtool automake autoconf
758d596
%endif
09e6154
09e6154
%description
5b34fb3
Off-the-Record Messaging Library and Toolkit
09e6154
This is a library and toolkit which implements Off-the-Record (OTR) Messaging.
5b34fb3
OTR allows you to have private conversations over IM by providing Encryption,
5b34fb3
Authentication, Deniability and Perfect forward secrecy.
09e6154
09e6154
%package devel
09e6154
Summary: Development library and include files for libotr
5b34fb3
Group: Development/Libraries
a12943f
Requires: %{name} = %{version}-%{release}, libgcrypt-devel >= 1.2.0
b20c969
Conflicts: libotr3-devel
09e6154
09e6154
%description devel
d729e44
The devel package contains the libotr library and include files.
09e6154
09e6154
%prep
09e6154
%setup -q
09e6154
758d596
%if %{snapshot}
758d596
aclocal
758d596
intltoolize --force --copy
758d596
autoreconf -s -i
758d596
%endif
2494132
758d596
%build
d729e44
%configure --with-pic --disable-rpath --disable-static
d729e44
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
d729e44
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
09e6154
make %{?_smp_mflags} all
09e6154
09e6154
%install
09e6154
rm -rf $RPM_BUILD_ROOT
09e6154
make \
09e6154
	DESTDIR=$RPM_BUILD_ROOT \
09e6154
	LIBINSTDIR=%{_libdir} \
09e6154
	install
09e6154
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
09e6154
09e6154
%clean
09e6154
rm -rf $RPM_BUILD_ROOT
09e6154
09e6154
%post -p /sbin/ldconfig
09e6154
09e6154
%postun -p /sbin/ldconfig
09e6154
758d596
%files
09e6154
%defattr(-,root,root)
2494132
%doc AUTHORS README COPYING COPYING.LIB NEWS Protocol*
09e6154
%{_libdir}/libotr.so.*
09e6154
%{_bindir}/*
09e6154
%{_mandir}/man1/*
09e6154
09e6154
%files devel
5b34fb3
%defattr(-,root,root,-)
e5336f3
%doc ChangeLog
09e6154
%{_libdir}/libotr.so
a31e467
%{_libdir}/pkgconfig/libotr.pc
09e6154
%dir %{_includedir}/libotr
09e6154
%{_includedir}/libotr/*
09e6154
%{_datadir}/aclocal/*
09e6154
09e6154
09e6154
%changelog
4531573
* Tue Oct 21 2014 Paul Wouters <pwouters@redhat.com> - 4.1.0-1
4531573
- Updated to 4.1.0 (minor security enhancements, fragmentation bugfixes)
4531573
d6eeb2c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-5
d6eeb2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d6eeb2c
6ebbed0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-4
6ebbed0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6ebbed0
8f021d1
* Wed Mar 12 2014 Paul Wouters <pwouters@redhat.com> - 4.0.0-3
8f021d1
- Added four git fixes, of which two were crashers
8f021d1
b20c969
* Wed Aug 21 2013 Paul Wouters <pwouters@redhat.com> - 4.0.0-2
b20c969
- Conflict libotr-devel with libotr3-devel (rhbz#998382)
b20c969
1e6a9b7
* Sat Jul 27 2013 Paul Wouters <pwouters@redhat.com> - 4.0.0-1
1e6a9b7
- Upgraded to libotr-4.0.0
1e6a9b7
- Since this is API incompatible, there is also a libotr3 package
1e6a9b7
5cb98f1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
5cb98f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5cb98f1
7687ad6
* Wed Aug 15 2012 Paul Wouters <pwouters@redhat.com> - 3.2.1-1
7687ad6
- Updated to 3.2.1, updates patch for rhbz#846377, CVE-2012-3461
7687ad6
458456f
* Wed Aug 08 2012 Paul Wouters <pwouters@redhat.com> - 3.2.0-9
758d596
- Patch for Multiple heap-based buffer overflows in the Base64 decoder
758d596
  (rhbz#846377, upstream will not release 3.2.1 for this)
758d596
d7d8a09
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-8
d7d8a09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d7d8a09
7909247
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-7
7909247
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7909247
f07a665
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-6
f07a665
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f07a665
d729e44
* Mon May 24 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 3.2.0-5
d729e44
- disable static libs
d729e44
- disable rpath
d729e44
9da7da7
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-4
9da7da7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9da7da7
8896637
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-3
8896637
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8896637
63f00fb
* Thu Aug  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.2.0-2
63f00fb
- fix license tag
63f00fb
a31e467
* Sun Jun 15 2008 Paul Wouters <paul@cypherpunks.ca> 3.2.0-1
a31e467
- Upgraded to 3.2.0
a31e467
e03f4d4
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.1.0-2
e03f4d4
- Autorebuild for GCC 4.3
e03f4d4
9b205a5
* Wed Aug  1 2007 Paul Wouters <paul@cypherpunks.ca> 3.1.0-1
9b205a5
- Upgraded to current version
9b205a5
- Updated URLS and configure line
9b205a5
46a2df7
* Mon Sep 11 2006 Paul Wouters <paul@cypherpunks.ca> 3.0.0-2
46a2df7
- Rebuild requested for PT_GNU_HASH support from gcc
46a2df7
46a2df7
* Mon Oct 17 2005 Paul Wouters <paul@cypherpunks.ca> 3.0.0-1
2494132
- Minor change to allow for new documentation files. Fixed Requires:
5ea9ffd
8f021d1
* Sun Jun 19 2005 Paul Wouters <paul@cypherpunks.ca>
5b34fb3
- Fixed defattr, groups, description and duplicate files in devel
5b34fb3
09e6154
* Fri Jun 17 2005 Tom "spot" Callaway <tcallawa@redhat.com>
09e6154
- reworked for Fedora Extras
09e6154
09e6154
* Tue May  3 2005 Ian Goldberg <ian@cypherpunks.ca>
09e6154
- Bumped version number to 2.0.2
09e6154
* Wed Feb 16 2005 Ian Goldberg <ian@cypherpunks.ca>
09e6154
- Bumped version number to 2.0.1
09e6154
* Tue Feb  8 2005 Ian Goldberg <ian@cypherpunks.ca>
09e6154
- Bumped version number to 2.0.0
09e6154
* Wed Feb  2 2005 Ian Goldberg <ian@cypherpunks.ca>
09e6154
- Added libotr.m4 to the devel package
09e6154
- Bumped version number to 1.99.0
09e6154
* Wed Jan 19 2005 Paul Wouters <paul@cypherpunks.ca>
09e6154
- Updated spec file for the gaim-otr libotr split
09e6154
* Tue Dec 21 2004 Ian Goldberg <otr@cypherpunks.ca>
09e6154
- Bumped to version 1.0.2.
09e6154
* Fri Dec 17 2004 Paul Wouters <paul@cypherpunks.ca>
09e6154
- instll fix for x86_64
09e6154
* Sun Dec 12 2004 Ian Goldberg <otr@cypherpunks.ca>
09e6154
- Bumped to version 1.0.0.
09e6154
* Fri Dec 10 2004 Ian Goldberg <otr@cypherpunks.ca>
09e6154
- Bumped to version 0.9.9rc2. 
09e6154
* Thu Dec  9 2004 Ian Goldberg <otr@cypherpunks.ca>
09e6154
- Added CFLAGS to "make all", removed DESTDIR
09e6154
* Wed Dec  8 2004 Ian Goldberg <otr@cypherpunks.ca>
09e6154
- Bumped to version 0.9.9rc1. 
09e6154
* Fri Dec  3 2004 Ian Goldberg <otr@cypherpunks.ca>
09e6154
- Bumped to version 0.9.1. 
09e6154
* Wed Dec  1 2004 Paul Wouters <paul@cypherpunks.ca>
09e6154
- Bumped to version 0.9.0. 
09e6154
- Fixed install for tools and cos
09e6154
- Added Obsoletes: target for otr-plugin so rpm-Uhv gaim-otr removes it.
09e6154
* Mon Nov 22 2004 Ian Goldberg <otr@cypherpunks.ca>
09e6154
- Bumped version to 0.8.1
09e6154
* Sun Nov 21 2004 Paul Wouters <paul@cypherpunks.ca>
09e6154
- Initial version
09e6154