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