SHA256
1
0
forked from pool/libassuan
libassuan/libassuan.spec

131 lines
3.3 KiB
RPMSpec

#
# spec file for package libassuan (Version 2.0.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libassuan
Summary: IPC library used by GnuPG version 2
Version: 2.0.1
Release: 1
License: GPLv2+ ; LGPLv2.1+
Group: Development/Libraries/C and C++
Url: http://www.gnupg.org/aegypten2/index.html
Source: libassuan-%{version}.tar.bz2
Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} < 1120
BuildRequires: pth
%else
BuildRequires: libpth-devel
%endif
BuildRequires: libgpg-error-devel >= 1.4
Requires: %install_info_prereq
%description
Libassuan is the IPC library used by gpg2 (GnuPG version 2)
Authors:
--------
Werner Koch <wk@gnupg.org>
Neal H. Walfield <neal@g10code.de>
Marcus Brinkmann <marcus@g10code.de>
%package -n libassuan0
Summary: IPC library used by GnuPG version 2
License: GPLv2+ ; LGPLv2.1+
Group: Development/Libraries/C and C++
%description -n libassuan0
Libassuan is the IPC library used by gpg2 (GnuPG version 2)
Authors:
--------
Werner Koch <wk@gnupg.org>
Neal H. Walfield <neal@g10code.de>
Marcus Brinkmann <marcus@g10code.de>
%package devel
License: GPLv2+ ; LGPLv2.1+
Summary: IPC library used by GnuPG version 2
Group: Development/Libraries/C and C++
Requires: libgpg-error-devel
%if 0%{?suse_version} < 1120
Requires: pth
%else
Requires: libpth-devel
%endif
Requires: libassuan0 = %{version}
%description devel
Libassuan is the IPC library used by gpg2 (GnuPG version 2)
gpgme also uses libassuan to communicate with a libassuan-enabled GnuPG
v2 server, but it uses it's own copy of libassuan.
Authors:
--------
Werner Koch <wk@g10code.com>
Neal H. Walfield <neal@g10code.de>
Marcus Brinkmann <marcus@g10code.de>
%prep
%setup -q
%build
# Compile with PIC, library is linked into shared libraries:
export CFLAGS="$RPM_OPT_FLAGS"
export LDFLAGS="-fPIC"
%configure
make %{?jobs:-j%jobs}
%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.la
%post -n libassuan0
/sbin/ldconfig
%postun -n libassuan0
/sbin/ldconfig
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/assuan.info.gz
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/assuan.info.gz
%clean
rm -rf %{buildroot}
%files -n libassuan0
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README THANKS
%{_libdir}/libassuan.so.*
%files devel
%defattr(-,root,root)
%doc %{_infodir}/assuan*
%{_includedir}/*.h
%{_bindir}/*-config
%{_datadir}/aclocal/*.m4
%{_libdir}/libassuan.so
%changelog