]> git.pld-linux.org Git - SPECS.git/blob - libhmac.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / libhmac.spec
1 # see m4/${libname}.m4 />= for required version of particular library
2 %define         libcerror_ver   20120425
3 %define         libcfile_ver    20160409
4 %define         libclocale_ver  20120425
5 %define         libcnotify_ver  20120425
6 %define         libcpath_ver    20180716
7 %define         libcsplit_ver   20120701
8 %define         libuna_ver      20120425
9 Summary:        Library to support various Hash-based Message Authentication Codes (HMAC)
10 Summary(pl.UTF-8):      Biblioteka obsługująca różne kody uwierzytelniające oparte na skrótach (HMAC)
11 Name:           libhmac
12 Version:        20180731
13 Release:        1
14 License:        LGPL v3+
15 Group:          Libraries
16 #Source0Download: https://github.com/libyal/libhmac/releases
17 Source0:        https://github.com/libyal/libhmac/releases/download/%{version}/%{name}-alpha-%{version}.tar.gz
18 # Source0-md5:  bd7704e38dd44e38aee170dbd8ecc8b4
19 URL:            https://github.com/libyal/libhmac/
20 BuildRequires:  autoconf >= 2.59
21 BuildRequires:  automake >= 1.6
22 BuildRequires:  gettext-tools >= 0.18.1
23 BuildRequires:  libcerror-devel >= %{libcerror_ver}
24 BuildRequires:  libcfile-devel >= %{libcfile_ver}
25 BuildRequires:  libclocale-devel >= %{libclocale_ver}
26 BuildRequires:  libcnotify-devel >= %{libcnotify_ver}
27 BuildRequires:  libcpath-devel >= %{libcpath_ver}
28 BuildRequires:  libcsplit-devel >= %{libcsplit_ver}
29 BuildRequires:  libuna-devel >= %{libuna_ver}
30 BuildRequires:  libtool
31 BuildRequires:  openssl-devel >= 1.0
32 BuildRequires:  pkgconfig
33 Requires:       libcerror >= %{libcerror_ver}
34 Requires:       libcfile >= %{libcfile_ver}
35 Requires:       libclocale >= %{libclocale_ver}
36 Requires:       libcnotify >= %{libcnotify_ver}
37 Requires:       libcpath >= %{libcpath_ver}
38 Requires:       libcsplit >= %{libcsplit_ver}
39 Requires:       libuna >= %{libuna_ver}
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %description
43 libhmac is a library to support various Hash-based Message
44 Authentication Codes (HMAC).
45
46 %description -l pl.UTF-8
47 libhmac to biblioteka obsługująca różne kody uwierzytelniające oparte
48 na skrótach (HMAC - Hash-based Message Authentication Codes).
49
50 %package devel
51 Summary:        Header files for libhmac library
52 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libhmac
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55 Requires:       libcerror-devel >= %{libcerror_ver}
56 Requires:       openssl-devel >= 1.0
57
58 %description devel
59 Header files for libhmac library.
60
61 %description devel -l pl.UTF-8
62 Pliki nagłówkowe biblioteki libhmac.
63
64 %package static
65 Summary:        Static libhmac library
66 Summary(pl.UTF-8):      Statyczna biblioteka libhmac
67 Group:          Development/Libraries
68 Requires:       %{name}-devel = %{version}-%{release}
69
70 %description static
71 Static libhmac library.
72
73 %description static -l pl.UTF-8
74 Statyczna biblioteka libhmac.
75
76 %prep
77 %setup -q
78
79 %build
80 %{__gettextize}
81 %{__libtoolize}
82 %{__aclocal} -I m4
83 %{__autoconf}
84 %{__autoheader}
85 %{__automake}
86 %configure
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 # obsoleted by pkg-config
96 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhmac.la
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %post   -p /sbin/ldconfig
102 %postun -p /sbin/ldconfig
103
104 %files
105 %defattr(644,root,root,755)
106 %doc AUTHORS ChangeLog README
107 %attr(755,root,root) %{_bindir}/hmacsum
108 %attr(755,root,root) %{_libdir}/libhmac.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/libhmac.so.1
110 %{_mandir}/man1/hmacsum.1*
111
112 %files devel
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libhmac.so
115 %{_includedir}/libhmac
116 %{_includedir}/libhmac.h
117 %{_pkgconfigdir}/libhmac.pc
118 %{_mandir}/man3/libhmac.3*
119
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/libhmac.a
This page took 0.372246 seconds and 3 git commands to generate.