]> git.pld-linux.org Git - packages/libmd.git/blob - libmd.spec
e65480b79b9130a9031cc62673f796729d7d34cb
[packages/libmd.git] / libmd.spec
1 Summary:        Message digest library
2 Summary(pl.UTF-8):      Biblioteka skrótów wiadomości (Message Digest)
3 Name:           libmd
4 Version:        0.3
5 Release:        3
6 License:        RSA non-commercial (MD2), RSA BSD-like (MD4), Public Domain (MD5)
7 Group:          Libraries
8 Source0:        ftp://ftp.penguin.cz/pub/users/mhi/libmd/%{name}-%{version}.tar.bz2
9 # Source0-md5:  1db1795b7e87bbda542e4c33b6ce5566
10 Patch0:         %{name}-install.patch
11 Patch1:         %{name}-types.patch
12 Patch2:         soname.patch
13 URL:            http://martin.hinner.info/libmd/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  sgml-tools
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Libmd is a cryptographic message digest library. It implements these
21 message digest algorithms:
22  - MD2 (RFC 1319 - B. Kaliski)
23  - MD4 (RFC 1186 - R. Rivest)
24  - MD5 (RFC 1321 - R. Rivest)
25  - SHA-1 (FIPS PUB 180 and 180.1 - NIST)
26  - RIPEMD-160 <http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html>
27
28 %description -l pl.UTF-8
29 Libmd to biblioteka kryptograficznych skrótów wiadomości. Implementuje
30 następujące algorytmy skrótów wiadomości:
31  - MD2 (RFC 1319 - B. Kaliski)
32  - MD4 (RFC 1186 - R. Rivest)
33  - MD5 (RFC 1321 - R. Rivest)
34  - SHA-1 (FIPS PUB 180 oraz 180.1 - NIST)
35  - RIPEMD-160 <http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html>
36
37 %package devel
38 Summary:        Header files for libmd library
39 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libmd
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42
43 %description devel
44 Header files for libmd library.
45
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki libmd.
48
49 %package static
50 Summary:        Static libmd library
51 Summary(pl.UTF-8):      Statyczna biblioteka libmd
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 Static libmd library.
57
58 %description static -l pl.UTF-8
59 Statyczna biblioteka libmd.
60
61 %prep
62 %setup -q
63 %patch0 -p1
64 %patch1 -p1
65 %patch2 -p1
66
67 %build
68 cp -f /usr/share/automake/config.* .
69 %{__autoconf}
70 %configure
71
72 %{__make} \
73         CFLAGS="%{rpmcflags} %{rpmcppflags} -fPIC -I."
74
75 %{__make} -C docs libmd.txt
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 # install headers to include/libmd to avoid too common filenames under /usr/include
81 %{__make} install \
82         BUILDROOT=$RPM_BUILD_ROOT \
83         includedir=%{_includedir}/libmd \
84         libdir=%{_libdir}
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post   -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files
93 %defattr(644,root,root,755)
94 %doc README TODO md2.copyright md4.copyright md5.copyright
95 %attr(755,root,root) %{_libdir}/libmd.so.*.*
96 %attr(755,root,root) %ghost %{_libdir}/libmd.so.1
97
98 %files devel
99 %defattr(644,root,root,755)
100 %doc docs/libmd.txt docs/algorithms
101 %attr(755,root,root) %{_libdir}/libmd.so
102 %{_includedir}/libmd
103 %{_mandir}/man3/md2.3*
104 %{_mandir}/man3/md4.3*
105 %{_mandir}/man3/md5.3*
106
107 %files static
108 %defattr(644,root,root,755)
109 %{_libdir}/libmd.a
This page took 0.040455 seconds and 2 git commands to generate.