]> git.pld-linux.org Git - packages/libmd.git/blame - libmd.spec
- unmaintained martin.hinner.info implementation replaced by maintained one
[packages/libmd.git] / libmd.spec
CommitLineData
6ff7f4eb
JB
1Summary: Message Digest functions from BSD systems
2Summary(pl.UTF-8): Funkcje skrótów wiadomości (MD) z systemów BSD
fba874f6 3Name: libmd
6ff7f4eb
JB
4Version: 1.0.3
5Release: 1
6License: BSD, ISC, Public Domain
fba874f6 7Group: Libraries
6ff7f4eb
JB
8Source0: https://libbsd.freedesktop.org/releases/%{name}-%{version}.tar.xz
9# Source0-md5: 58f9a39d0a4296c7d2d59287d4f81cdf
10URL: https://www.hadrons.org/software/libmd/
11BuildRequires: tar >= 1:1.22
12BuildRequires: xz
13Obsoletes: libmd-bsd < 1.0.4
fba874f6
JB
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
6ff7f4eb
JB
17This library provides message digest functions found on BSD systems
18either on their libc or libmd libraries and lacking on others like GNU
19systems, thus making it easier to port projects with strong BSD
20origins, without needing to embed the same code over and over again on
21each project.
fba874f6
JB
22
23%description -l pl.UTF-8
6ff7f4eb
JB
24Ta biblioteka udostępnia funkcje skrótów wiadomości spotykane w
25systemach BSD w bibliotece libc lub libmd, a nie występujące na
26innych systemach, takich jak GNU. Dzięki temu ułatwia portowanie
27projektów mających silne korzenie BSD bez potrzeby osadzania ciągle
28tego samego kodu w każdym projekcie.
fba874f6
JB
29
30%package devel
6ff7f4eb
JB
31Summary: Header files for BSD MD library
32Summary(pl.UTF-8): Pliki nagłówkowe biblioteki BSD MD
fba874f6
JB
33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
6ff7f4eb 35Obsoletes: libmd-bsd-devel < 1.0.4
fba874f6
JB
36
37%description devel
6ff7f4eb 38Header files for BSD MD library.
fba874f6
JB
39
40%description devel -l pl.UTF-8
6ff7f4eb 41Pliki nagłówkowe biblioteki BSD MD.
fba874f6
JB
42
43%package static
6ff7f4eb
JB
44Summary: Static BSD MD library
45Summary(pl.UTF-8): Statyczna biblioteka BSD MD
fba874f6
JB
46Group: Development/Libraries
47Requires: %{name}-devel = %{version}-%{release}
6ff7f4eb 48Obsoletes: libmd-bsd-static < 1.0.4
fba874f6
JB
49
50%description static
6ff7f4eb 51Static BSD MD library.
fba874f6
JB
52
53%description static -l pl.UTF-8
6ff7f4eb 54Statyczna 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
66rm -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
75rm -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
This page took 0.120092 seconds and 4 git commands to generate.