]> git.pld-linux.org Git - packages/libmd-bsd.git/blob - libmd-bsd.spec
- updated to 1.0.0
[packages/libmd-bsd.git] / libmd-bsd.spec
1 Summary:        Message Digest functions from BSD systems
2 Summary(pl.UTF-8):      Funkcje skrótów wiadomości (MD) z systemów BSD
3 Name:           libmd-bsd
4 Version:        1.0.0
5 Release:        1
6 License:        BSD, ISC, Public Domain
7 Group:          Libraries
8 Source0:        https://libbsd.freedesktop.org/releases/libmd-%{version}.tar.xz
9 # Source0-md5:  714fb226e3121c3d1aa393128ee0bcd8
10 URL:            https://libbsd.freedesktop.org/
11 BuildRequires:  tar >= 1:1.22
12 BuildRequires:  xz
13 Obsoletes:      libmd
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
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.
22
23 %description -l pl.UTF-8
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.
29
30 %package devel
31 Summary:        Header files for BSD MD library
32 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki BSD MD
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35 Obsoletes:      libmd-devel
36
37 %description devel
38 Header files for BSD MD library.
39
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe biblioteki BSD.
42
43 %package static
44 Summary:        Static BSD MD library
45 Summary(pl.UTF-8):      Statyczna biblioteka BSD MD
46 Group:          Development/Libraries
47 Requires:       %{name}-devel = %{version}-%{release}
48 Obsoletes:      libmd-static
49
50 %description static
51 Static BSD MD library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka BSD MD.
55
56 %prep
57 %setup -q -n libmd-%{version}
58
59 %build
60 %configure \
61         --disable-silent-rules \
62         --includedir=%{_includedir}/libmd
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 # obsoleted by pkg-config
72 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmd.la
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)
82 %doc COPYING ChangeLog README
83 %attr(755,root,root) %{_libdir}/libmd.so.*.*.*
84 %attr(755,root,root) %ghost %{_libdir}/libmd.so.0
85
86 %files devel
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_libdir}/libmd.so
89 %{_includedir}/libmd
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*
99 %{_mandir}/man3/md2.3*
100 %{_mandir}/man3/md4.3*
101 %{_mandir}/man3/md5.3*
102 %{_mandir}/man3/rmd160.3*
103 %{_mandir}/man3/sha1.3*
104 %{_mandir}/man3/sha2.3*
105
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/libmd.a
This page took 0.254606 seconds and 4 git commands to generate.