summaryrefslogtreecommitdiffstats
path: root/libsodium-last.spec
blob: 9fb71089e79ee2acb9ac1e3e982406b51d691c29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# remirepo spec file for libsodium-last
# renamed for parallel installation, from:
#
# Fedora spec file for libsodium
#
# License: MIT
# http://opensource.org/licenses/MIT
#
# Please preserve changelog entries
#
%global libname libsodium

# soname 13 since 1.0.0
# soname 17 since 1.0.6

%if 0
# Standard build
Name:           %{libname}
%else
# Build for parallel install
Name:           %{libname}-last
%endif
Version:        1.0.6
Release:        1%{?dist}
Summary:        The Sodium crypto library
Group:          System Environment/Libraries
License:        ISC
URL:            http://libsodium.org/
Source0:        http://download.libsodium.org/libsodium/releases/%{libname}-%{version}.tar.gz

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if "%{libname}" != "%{name}"
Provides:       %{libname}         = %{version}-%{release}
Provides:       %{libname}%{?_isa} = %{version}-%{release}
%endif


%description
Sodium is a new, easy-to-use software library for encryption, decryption, 
signatures, password hashing and more. It is a portable, cross-compilable, 
installable, packageable fork of NaCl, with a compatible API, and an extended 
API to improve usability even further. Its goal is to provide all of the core 
operations needed to build higher-level cryptographic tools. The design 
choices emphasize security, and "magic constants" have clear rationales.

The same cannot be said of NIST curves, where the specific origins of certain 
constants are not described by the standards. And despite the emphasis on 
higher security, primitives are faster across-the-board than most 
implementations of the NIST standards.
%if "%{libname}" != "%{name}"
This package can be installed beside system %{libname}.
%endif


%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       %{name}%{?_isa}          = %{version}-%{release}
%if "%{libname}" != "%{name}"
Conflicts:      %{libname}-devel         < %{version}
Provides:       %{libname}-devel         = %{version}-%{release}
Provides:       %{libname}-devel%{?_isa} = %{version}-%{release}
%endif

%description    devel
This package contains libraries and header files for
developing applications that use %{name} libraries.
%if "%{libname}" != "%{name}"
This package can't be installed with system %{libname}-devel.
%endif


%prep
%setup -q -n %{libname}-%{version}


%build
%configure --disable-static --disable-silent-rules
make %{_smp_mflags}


%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}

rm -f %{buildroot}%{_libdir}/%{libname}.la


%check
make check


%clean
rm -rf %{buildroot}


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%defattr (-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%{_libdir}/%{libname}.so.17*

%files devel
%defattr (-,root,root,-)
%doc AUTHORS ChangeLog README.markdown THANKS
%doc test/default/*.{c,h}
%{_includedir}/sodium.h
%{_includedir}/sodium/
%{_libdir}/%{libname}.so
%{_libdir}/pkgconfig/%{libname}.pc


%changelog
* Wed Nov  4 2015 Remi Collet <remi@fedoraproject.org> - 1.0.6-1
- update to 1.0.6
- soname bump to 17

* Tue Oct 27 2015 Remi Collet <remi@fedoraproject.org> - 1.0.5-2
- update to 1.0.5
- provide libsodium

* Tue Oct 27 2015 Remi Collet <remi@fedoraproject.org> - 1.0.5-1
- update to 1.0.5

* Tue Oct 20 2015 Remi Collet <remi@fedoraproject.org> - 1.0.4-1
- update to 1.0.4
- add upstream patch for segfault on RHEL-6 i386
  https://github.com/jedisct1/libsodium/issues/307

* Sat May 16 2015 Remi Collet <remi@fedoraproject.org> - 1.0.3-1
- update to 1.0.3

* Tue Jan 20 2015 Remi Collet <remi@fedoraproject.org> - 1.0.2-1
- update to 1.0.2

* Sat Nov 22 2014 Remi Collet <remi@fedoraproject.org> - 1.0.1-1
- update to 1.0.1

* Sun Sep 28 2014 Remi Collet <remi@fedoraproject.org> - 1.0.0-1
- rename to libsodium-last (fedora <= 20, el <= 6)
- update to 1.0.0 (abi is now stable)
- fix license handling

* Sun Aug 24 2014 Christopher Meng <rpm@cicku.me> - 0.7.0-1
- Update to 0.7.0

* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Thu Jul 17 2014 Christopher Meng <rpm@cicku.me> - 0.6.1-1
- Update to 0.6.1

* Thu Jul 03 2014 Christopher Meng <rpm@cicku.me> - 0.6.0-1
- Update to 0.6.0

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Fri May 16 2014 Christopher Meng <rpm@cicku.me> - 0.5.0-1
- Update to 0.5.0

* Mon Dec 09 2013 Christopher Meng <rpm@cicku.me> - 0.4.5-3
- Disable silent build rules.
- Preserve the timestamp.

* Wed Nov 20 2013 Christopher Meng <rpm@cicku.me> - 0.4.5-2
- Add doc for devel package.
- Add support for EPEL6.

* Wed Nov 20 2013 Christopher Meng <rpm@cicku.me> - 0.4.5-1
- Update to 0.4.5

* Wed Jul 10 2013 Christopher Meng <rpm@cicku.me> - 0.4.2-2
- Drop useless files.
- Improve the description.

* Wed Jul 10 2013 Christopher Meng <rpm@cicku.me> - 0.4.2-1
- Initial Package.