]>
Commit | Line | Data |
---|---|---|
6ff7f4eb JB |
1 | Summary: Message Digest functions from BSD systems |
2 | Summary(pl.UTF-8): Funkcje skrótów wiadomości (MD) z systemów BSD | |
fba874f6 | 3 | Name: libmd |
6ff7f4eb JB |
4 | Version: 1.0.3 |
5 | Release: 1 | |
6 | License: BSD, ISC, Public Domain | |
fba874f6 | 7 | Group: Libraries |
6ff7f4eb JB |
8 | Source0: https://libbsd.freedesktop.org/releases/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 58f9a39d0a4296c7d2d59287d4f81cdf | |
10 | URL: https://www.hadrons.org/software/libmd/ | |
11 | BuildRequires: tar >= 1:1.22 | |
12 | BuildRequires: xz | |
13 | Obsoletes: libmd-bsd < 1.0.4 | |
fba874f6 JB |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
6ff7f4eb JB |
17 | This library provides message digest functions found on BSD systems |
18 | either on their libc or libmd libraries and lacking on others like GNU | |
19 | systems, thus making it easier to port projects with strong BSD | |
20 | origins, without needing to embed the same code over and over again on | |
21 | each project. | |
fba874f6 JB |
22 | |
23 | %description -l pl.UTF-8 | |
6ff7f4eb JB |
24 | Ta biblioteka udostępnia funkcje skrótów wiadomości spotykane w |
25 | systemach BSD w bibliotece libc lub libmd, a nie występujące na | |
26 | innych systemach, takich jak GNU. Dzięki temu ułatwia portowanie | |
27 | projektów mających silne korzenie BSD bez potrzeby osadzania ciągle | |
28 | tego samego kodu w każdym projekcie. | |
fba874f6 JB |
29 | |
30 | %package devel | |
6ff7f4eb JB |
31 | Summary: Header files for BSD MD library |
32 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki BSD MD | |
fba874f6 JB |
33 | Group: Development/Libraries |
34 | Requires: %{name} = %{version}-%{release} | |
6ff7f4eb | 35 | Obsoletes: libmd-bsd-devel < 1.0.4 |
fba874f6 JB |
36 | |
37 | %description devel | |
6ff7f4eb | 38 | Header files for BSD MD library. |
fba874f6 JB |
39 | |
40 | %description devel -l pl.UTF-8 | |
6ff7f4eb | 41 | Pliki nagłówkowe biblioteki BSD MD. |
fba874f6 JB |
42 | |
43 | %package static | |
6ff7f4eb JB |
44 | Summary: Static BSD MD library |
45 | Summary(pl.UTF-8): Statyczna biblioteka BSD MD | |
fba874f6 JB |
46 | Group: Development/Libraries |
47 | Requires: %{name}-devel = %{version}-%{release} | |
6ff7f4eb | 48 | Obsoletes: libmd-bsd-static < 1.0.4 |
fba874f6 JB |
49 | |
50 | %description static | |
6ff7f4eb | 51 | Static BSD MD library. |
fba874f6 JB |
52 | |
53 | %description static -l pl.UTF-8 | |
6ff7f4eb | 54 | Statyczna biblioteka BSD MD. |
fba874f6 JB |
55 | |
56 | %prep | |
57 | %setup -q | |
fba874f6 JB |
58 | |
59 | %build | |
6ff7f4eb JB |
60 | %configure \ |
61 | --disable-silent-rules \ | |
62 | --includedir=%{_includedir}/libmd | |
63 | %{__make} | |
fba874f6 JB |
64 | |
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
fba874f6 | 68 | %{__make} install \ |
6ff7f4eb JB |
69 | DESTDIR=$RPM_BUILD_ROOT |
70 | ||
71 | # obsoleted by pkg-config | |
72 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmd.la | |
fba874f6 JB |
73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %post -p /sbin/ldconfig | |
78 | %postun -p /sbin/ldconfig | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
6ff7f4eb JB |
82 | %doc COPYING ChangeLog README |
83 | %attr(755,root,root) %{_libdir}/libmd.so.*.*.* | |
84 | %attr(755,root,root) %ghost %{_libdir}/libmd.so.0 | |
fba874f6 JB |
85 | |
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
fba874f6 JB |
88 | %attr(755,root,root) %{_libdir}/libmd.so |
89 | %{_includedir}/libmd | |
6ff7f4eb JB |
90 | %{_pkgconfigdir}/libmd.pc |
91 | %{_mandir}/man3/MD2*.3* | |
92 | %{_mandir}/man3/MD4*.3* | |
93 | %{_mandir}/man3/MD5*.3* | |
94 | %{_mandir}/man3/RMD160*.3* | |
95 | %{_mandir}/man3/SHA1*.3* | |
96 | %{_mandir}/man3/SHA256*.3* | |
97 | %{_mandir}/man3/SHA384*.3* | |
98 | %{_mandir}/man3/SHA512*.3* | |
fba874f6 JB |
99 | %{_mandir}/man3/md2.3* |
100 | %{_mandir}/man3/md4.3* | |
101 | %{_mandir}/man3/md5.3* | |
6ff7f4eb JB |
102 | %{_mandir}/man3/rmd160.3* |
103 | %{_mandir}/man3/sha1.3* | |
104 | %{_mandir}/man3/sha2.3* | |
fba874f6 JB |
105 | |
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libmd.a |