1 |
%define major 0 |
%define major 0 |
2 |
%define libname %mklibname afflib %{major} |
%define libname %mklibname afflib %{major} |
3 |
%define develname %mklibname -d afflib |
%define develname %mklibname -d afflib |
4 |
|
|
5 |
Summary: A set of programs for creating and manipulating AFF files |
Summary: A set of programs for creating and manipulating AFF files |
6 |
Name: afflib |
Name: afflib |
7 |
Version: 3.6.6 |
Version: 3.6.6 |
8 |
Release: %mkrel 1 |
Release: %mkrel 1 |
9 |
Group: System/Libraries |
Group: System/Libraries |
10 |
License: BSD |
License: BSD |
11 |
URL: http://www.afflib.org/ |
URL: http://www.afflib.org/ |
12 |
Source0: http://www.afflib.org/downloads/%{name}-%{version}.tar.gz |
Source0: http://www.afflib.org/downloads/%{name}-%{version}.tar.gz |
13 |
#Patch1: afflib-3.4.1-pyver.patch |
|
14 |
BuildRequires: curl-devel |
BuildRequires: curl-devel |
15 |
# GPLv2 FOSS incompatible with BSD with advertising |
# GPLv2 FOSS incompatible with BSD with advertising |
16 |
#BuildRequires: fuse-devel |
#BuildRequires: fuse-devel |
17 |
BuildRequires: libewf-devel |
BuildRequires: libewf-devel |
18 |
BuildRequires: lzma-devel |
BuildRequires: lzma-devel |
19 |
BuildRequires: libexpat-devel |
BuildRequires: libexpat-devel |
20 |
BuildRequires: libtermcap-devel |
BuildRequires: libtermcap-devel |
21 |
BuildRequires: ncurses-devel |
BuildRequires: ncurses-devel |
22 |
BuildRequires: openssl-devel |
BuildRequires: openssl-devel |
23 |
BuildRequires: python-devel |
BuildRequires: python-devel |
24 |
# GPLv2 FOSS incompatible with BSD with advertising |
# GPLv2 FOSS incompatible with BSD with advertising |
25 |
#BuildRequires: readline-devel |
#BuildRequires: readline-devel |
26 |
BuildRequires: zlib-devel |
BuildRequires: zlib-devel |
27 |
|
|
28 |
|
|
29 |
%description |
%description |
35 |
In addition to the library, AFFLIB also comes with the AFF Tools, a set of |
In addition to the library, AFFLIB also comes with the AFF Tools, a set of |
36 |
programs for creating and manipulating AFF files. |
programs for creating and manipulating AFF files. |
37 |
|
|
38 |
%package -n %{libname} |
%package -n %{libname} |
39 |
Summary: A shared library that implements the AFF standard |
Summary: A shared library that implements the AFF standard |
40 |
Group: System/Libraries |
Group: System/Libraries |
41 |
|
|
42 |
%description -n %{libname} |
%description -n %{libname} |
43 |
AFFLIB is an open source library developed by Simson Garfinkel and Basis |
AFFLIB is an open source library developed by Simson Garfinkel and Basis |
47 |
|
|
48 |
This package contains a shared library that implements the AFF standard. |
This package contains a shared library that implements the AFF standard. |
49 |
|
|
50 |
%package -n %{develname} |
%package -n %{develname} |
51 |
Summary: Static library and header files for the afflib library |
Summary: Static library and header files for the afflib library |
52 |
Group: Development/C |
Group: Development/C |
53 |
Provides: %{name}-devel = %{version} |
Provides: %{name}-devel = %{version} |
54 |
Requires: %{libname} = %{version} |
Requires: %{libname} = %{version} |
55 |
|
|
56 |
%description -n %{develname} |
%description -n %{develname} |
57 |
AFFLIB is an open source library developed by Simson Garfinkel and Basis |
AFFLIB is an open source library developed by Simson Garfinkel and Basis |
58 |
Technology that implements the AFF standard. AFFLIB is distributed under |
Technology that implements the AFF standard. AFFLIB is distributed under |
59 |
4-clause Berkeley License and may be freely incorporated into both Open |
4-clause Berkeley License and may be freely incorporated into both Open |
76 |
export CFLAGS="%{optflags} -fPIC" |
export CFLAGS="%{optflags} -fPIC" |
77 |
|
|
78 |
%configure2_5x \ |
%configure2_5x \ |
79 |
--disable-static \ |
--disable-static \ |
80 |
--enable-shared \ |
--enable-shared \ |
81 |
--enable-wide-character-type \ |
--enable-wide-character-type \ |
82 |
--enable-libewf=yes \ |
--enable-libewf=yes \ |
83 |
--enable-s3=yes \ |
--enable-s3=yes \ |
84 |
--enable-fuse=no \ |
--enable-fuse=no \ |
85 |
--enable-python=yes \ |
--enable-python=yes \ |
86 |
--enable-qemu=no \ |
--enable-qemu=no \ |
87 |
--with-curl=%{_prefix} |
--with-curl=%{_prefix} |
88 |
|
|
89 |
# Remove rpath from libtool |
# Remove rpath from libtool |
90 |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
134 |
%{_libdir}/*.la |
%{_libdir}/*.la |
135 |
%{py_platsitedir}/*.la |
%{py_platsitedir}/*.la |
136 |
%{_libdir}/pkgconfig/*.pc |
%{_libdir}/pkgconfig/*.pc |
|
|
|
|
|
|