-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlibassuan.spec
92 lines (65 loc) · 1.96 KB
/
libassuan.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#specfile originally created for Fedora, modified for Moblin Linux
Name: libassuan
Summary: GnuPG IPC library
Version: 1.0.5
Release: 5.3.moblin2
License: LGPLv2+
Source0: ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-%{version}.tar.bz2
Source1: ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-%{version}.tar.bz2.sig
URL: http://www.gnupg.org/
Group: System/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch1: libassuan-1.0.5-multilib.patch
# -debuginfo useless for (only) static libs
%define debug_package %{nil}
BuildRequires: gawk
BuildRequires: pth-devel
%description
This is the IPC library used by GnuPG 2, GPGME and a few other
packages.
%package devel
Summary: GnuPG IPC library
Group: Development/Libraries
Requires: pth-devel
Requires(post): /sbin/install-info
Requires(postun): /sbin/install-info
Obsoletes: %{name}-static < %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
%description devel
This is the IPC static library used by GnuPG 2, GPGME and a few other
packages.
This package contains files needed to develop applications using %{name}.
%prep
%setup -q
%patch1 -p1 -b .multilib
%build
#ifarch x86_64
export CFLAGS="%{optflags} -fPIC"
#endif
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
## Unpackaged files
rm -f %{buildroot}%{_infodir}/dir
%check
%if ! 0%{?qemu_user_space_build}
make check
%endif
%post devel
[ -e %{_infodir}/assuan.info ] && /sbin/install-info %{_infodir}/assuan.info %{_infodir}/dir >/dev/null 2&>1 || :
%postun devel
if [ $1 -eq 0 ]; then
[ -e %{_infodir}/assuan.info ] && /sbin/install-info --delete %{_infodir}/assuan.info %{_infodir}/dir >/dev/null 2&>1 || :
fi
%clean
rm -rf %{buildroot}
%files devel
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING.LIB NEWS README THANKS TODO
%{_bindir}/libassuan-config
%{_includedir}/*
%{_libdir}/lib*.a
%{_datadir}/aclocal/*
%doc %{_infodir}/assuan.info*