]> git.pld-linux.org Git - SPECS.git/blob - libassuan.spec
SPECS updated Sat 31 Jul 20:27:02 CEST 2021
[SPECS.git] / libassuan.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        Assuan - an IPC library for non-persistent servers
6 Summary(pl.UTF-8):      Assuan - biblioteka IPC dla serwerów nie działających ciągle
7 Name:           libassuan
8 Version:        2.5.5
9 Release:        1
10 Epoch:          1
11 License:        LGPL v2.1+
12 Group:          Libraries
13 Source0:        ftp://ftp.gnupg.org/gcrypt/libassuan/%{name}-%{version}.tar.bz2
14 # Source0-md5:  7194453152bb67e3d45da698762b5d6f
15 Patch0:         %{name}-info.patch
16 Patch1:         %{name}-ac.patch
17 URL:            http://www.gnupg.org/related_software/libassuan/
18 BuildRequires:  autoconf >= 2.61
19 BuildRequires:  automake >= 1:1.14
20 BuildRequires:  libgpg-error-devel >= 1.17
21 BuildRequires:  libtool >= 2:2.2.6
22 BuildRequires:  texinfo
23 Requires:       libgpg-error >= 1.17
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This is the IPC library used by GnuPG 2, GPGME and a few other
28 packages. It used to be included with the latter packages but the
29 authors decided to make your life not too easy and separated it out to
30 a stand alone library.
31
32 %description -l pl.UTF-8
33 To jest biblioteka komunikacji międzyprocesowej (IPC) używana przez
34 GnuPG 2, GPGME oraz parę innych pakietów. Była dołączana do tych
35 pakietów, ale autorzy zdecydowali, żeby już nie ułatwiać tak życia i
36 wydzielili ją.
37
38 %package devel
39 Summary:        Header files for assuan library
40 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki assuan
41 Group:          Development/Libraries
42 Conflicts:      libassuan1-devel
43 Requires:       %{name} = %{epoch}:%{version}-%{release}
44 Requires:       libgpg-error-devel >= 1.17
45
46 %description devel
47 Header files for assuan library.
48
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki assuan.
51
52 %package static
53 Summary:        Static assuan library
54 Summary(pl.UTF-8):      Statyczna biblioteka assuan
55 Group:          Development/Libraries
56 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
57
58 %description static
59 Static assuan library.
60
61 %description static -l pl.UTF-8
62 Statyczna biblioteka assuan.
63
64 %prep
65 %setup -q
66 %patch0 -p1
67 %patch1 -p1
68
69 %build
70 %{__libtoolize}
71 %{__aclocal} -I m4
72 %{__autoconf}
73 %{__autoheader}
74 %{__automake}
75 %configure \
76         %{?with_static_libs:--enable-static}
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %post   devel -p /sbin/postshell
94 -/usr/sbin/fix-info-dir -c %{_infodir}
95
96 %postun devel -p /sbin/postshell
97 -/usr/sbin/fix-info-dir -c %{_infodir}
98
99 %files
100 %defattr(644,root,root,755)
101 %doc AUTHORS ChangeLog NEWS README
102 %attr(755,root,root) %{_libdir}/libassuan.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libassuan.so.0
104
105 %files devel
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_bindir}/libassuan-config
108 %attr(755,root,root) %{_libdir}/libassuan.so
109 %{_libdir}/libassuan.la
110 %{_includedir}/assuan.h
111 %{_aclocaldir}/libassuan.m4
112 %{_infodir}/assuan.info*
113 %{_pkgconfigdir}/libassuan.pc
114
115 %if %{with static_libs}
116 %files static
117 %defattr(644,root,root,755)
118 %{_libdir}/libassuan.a
119 %endif
This page took 0.308224 seconds and 3 git commands to generate.