/[packages]/cauldron/afflib/current/SPECS/afflib.spec
ViewVC logotype

Contents of /cauldron/afflib/current/SPECS/afflib.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 203595 - (show annotations) (download)
Mon Jan 30 23:38:02 2012 UTC (8 years, 5 months ago) by malo
File size: 3867 byte(s)
- update to version 3.6.15
- remove the warning disabling

1 %define major 0
2 %define libname %mklibname afflib %{major}
3 %define develname %mklibname -d afflib
4
5 Summary: A set of programs for creating and manipulating AFF files
6 Name: afflib
7 Version: 3.6.15
8 Release: %mkrel 1
9 Group: System/Libraries
10 License: BSD
11 URL: http://www.afflib.org/
12 Source0: http://www.afflib.org/downloads/%{name}-%{version}.tar.gz
13
14 BuildRequires: curl-devel
15 # GPLv2 FOSS incompatible with BSD with advertising
16 #BuildRequires: fuse-devel
17 BuildRequires: libewf-devel
18 BuildRequires: lzma-devel
19 BuildRequires: libexpat-devel
20 BuildRequires: libtermcap-devel
21 BuildRequires: ncurses-devel
22 BuildRequires: openssl-devel
23 BuildRequires: python-devel
24 # GPLv2 FOSS incompatible with BSD with advertising
25 #BuildRequires: readline-devel
26 BuildRequires: zlib-devel
27
28
29 %description
30 AFFLIB is an open source library developed by Simson Garfinkel and Basis
31 Technology that implements the AFF standard. AFFLIB is distributed under
32 4-clause Berkeley License and may be freely incorporated into both Open
33 Source and Proprietary software.
34
35 In addition to the library, AFFLIB also comes with the AFF Tools, a set of
36 programs for creating and manipulating AFF files.
37
38 %package -n %{libname}
39 Summary: A shared library that implements the AFF standard
40 Group: System/Libraries
41
42 %description -n %{libname}
43 AFFLIB is an open source library developed by Simson Garfinkel and Basis
44 Technology that implements the AFF standard. AFFLIB is distributed under
45 4-clause Berkeley License and may be freely incorporated into both Open
46 Source and Proprietary software.
47
48 This package contains a shared library that implements the AFF standard.
49
50 %package -n %{develname}
51 Summary: Static library and header files for the afflib library
52 Group: Development/C
53 Provides: %{name}-devel = %{version}
54 Requires: %{libname} = %{version}
55
56 %description -n %{develname}
57 AFFLIB is an open source library developed by Simson Garfinkel and Basis
58 Technology that implements the AFF standard. AFFLIB is distributed under
59 4-clause Berkeley License and may be freely incorporated into both Open
60 Source and Proprietary software.
61
62 This package contains the static afflib library and its header files.
63
64 %prep
65 %setup -q
66 #patch1 -p1 -b .pyver
67
68 #fix spurious permissions with lzma443
69 find lzma443 -type f -exec chmod 0644 {} ';'
70 chmod 0644 lib/base64.{h,cpp}
71
72 %build
73
74 export CFLAGS="%{optflags} -fPIC"
75
76 %configure2_5x \
77 --disable-static \
78 --enable-shared \
79 --enable-wide-character-type \
80 --enable-libewf=yes \
81 --enable-s3=yes \
82 --enable-fuse=no \
83 --enable-python=yes \
84 --enable-qemu=no \
85 --with-curl=%{_prefix}
86
87 # Remove rpath from libtool
88 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
89 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
90
91 # clean unused-direct-shlib-dependencies
92 sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
93
94 %make
95
96 %install
97
98 %makeinstall_std
99
100 # install headers as well
101 install -d %{buildroot}%{_includedir}/afflib
102 install -m0644 lib/*.h %{buildroot}%{_includedir}/afflib/
103
104
105 %files
106 %{_bindir}/affcat
107 %{_bindir}/affcompare
108 %{_bindir}/affconvert
109 %{_bindir}/affcopy
110 %{_bindir}/affcrypto
111 %{_bindir}/affdiskprint
112 %{_bindir}/affix
113 %{_bindir}/affuse
114 %{_bindir}/affinfo
115 %{_bindir}/affrecover
116 %{_bindir}/affsegment
117 %{_bindir}/affsign
118 %{_bindir}/affstats
119 %{_bindir}/affverify
120 %{_bindir}/affxml
121 %{_mandir}/man1/*
122 %{py_platsitedir}/pyaff.so
123
124 %files -n %{libname}
125 %doc AUTHORS BUGLIST.txt COPYING ChangeLog NEWS README* doc/*
126 %{_libdir}/*.so.%{major}*
127
128 %files -n %{develname}
129 %dir %{_includedir}/afflib
130 %{_includedir}/afflib/*.h
131 %{_libdir}/*.so
132 %{_libdir}/*.la
133 %{py_platsitedir}/*.la
134 %{_libdir}/pkgconfig/*.pc

  ViewVC Help
Powered by ViewVC 1.1.28