blob: cc79b5262c92ef53870b48fa6c1ae4d23c9abc0e (
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
|
# spec file for ssdeep
#
# Copyright (c) 2014-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
Name: ssdeep
Version: 2.14.1
Release: 1%{?dist}
Summary: Compute context triggered piecewise hashes
License: GPLv2+
URL: https://ssdeep-project.github.io/ssdeep/
Source0: https://github.com/ssdeep-project/ssdeep/releases/download/release-%{version}/ssdeep-%{version}.tar.gz
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description
ssdeep is a program for computing context triggered piecewise hashes (CTPH).
Also called fuzzy hashes, CTPH can match inputs that have homologies.
Such inputs have sequences of identical bytes in the same order, although bytes
in between these sequences may be different in both content and length.
%package devel
Summary: Development files for libfuzzy
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains library and header files for
developing applications that use libfuzzy.
%package libs
Summary: Runtime libfuzzy library
%description libs
The %{name}-libs package contains libraries needed by applications
that use libfuzzy.
%prep
%setup -q
# avoid autotools being re-run
touch -r aclocal.m4 configure configure.ac
%build
%configure \
--disable-auto-search \
--disable-static
# rpath removal
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
rm %{buildroot}%{_libdir}/libfuzzy.la
%if 0%{?fedora} < 28 && 0%{?rhel} < 8
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%endif
%files
%doc AUTHORS
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*
%files devel
%doc FILEFORMAT NEWS README TODO
%{_includedir}/fuzzy.h
%{_includedir}/edit_dist.h
%{_libdir}/libfuzzy.so
%files libs
%{!?_licensedir:%global license %%doc}
%license COPYING
%{_libdir}/libfuzzy.so.2*
%changelog
* Tue Nov 7 2017 Remi Collet <remi@fedoraproject.org> - 2.14.1-1
- update to 2.14.1
* Fri Sep 15 2017 Remi Collet <remi@fedoraproject.org> - 2.14-1
- update to 2.14
- sources from github
- fix project URL
* Tue May 5 2015 Remi Collet <remi@fedoraproject.org> - 2.13-1
- update to 2.13
* Sun Oct 26 2014 Remi Collet <remi@fedoraproject.org> - 2.12-1
- update to 2.12
* Mon Sep 29 2014 Remi Collet <remi@fedoraproject.org> - 2.11.1-1
- update to 2.11.1 (no change)
- fix license handling
* Fri Sep 12 2014 Remi Collet <remi@fedoraproject.org> - 2.11-1
- update to 2.11
* Wed Jan 22 2014 Remi Collet <remi@fedoraproject.org> - 2.10-2
- cleanup build path (comment from review #1056460)
* Wed Jan 22 2014 Remi Collet <remi@fedoraproject.org> - 2.10-1
- initial package
|