/[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 202760 - (show annotations) (download)
Sat Jan 28 23:04:10 2012 UTC (8 years, 8 months ago) by malo
File size: 3760 byte(s)
- adaptation after import from Mandriva
- new version 3.6.6

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.6
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 #Patch1: afflib-3.4.1-pyver.patch
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 #TODO fix format not a string literal
74 %define Werror_cflags %nil
75
76 export CFLAGS="%{optflags} -fPIC"
77
78 %configure2_5x \
79 --disable-static \
80 --enable-shared \
81 --enable-wide-character-type \
82 --enable-libewf=yes \
83 --enable-s3=yes \
84 --enable-fuse=no \
85 --enable-python=yes \
86 --enable-qemu=no \
87 --with-curl=%{_prefix}
88
89 # Remove rpath from libtool
90 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
91 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
92
93 # clean unused-direct-shlib-dependencies
94 sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
95
96 %make
97
98 %install
99
100 %makeinstall_std
101
102 # install headers as well
103 install -d %{buildroot}%{_includedir}/afflib
104 install -m0644 lib/*.h %{buildroot}%{_includedir}/afflib/
105
106
107 %files
108 %{_bindir}/affcat
109 %{_bindir}/affcompare
110 %{_bindir}/affconvert
111 %{_bindir}/affcopy
112 %{_bindir}/affcrypto
113 %{_bindir}/affdiskprint
114 %{_bindir}/affix
115 %{_bindir}/affuse
116 %{_bindir}/affinfo
117 %{_bindir}/affrecover
118 %{_bindir}/affsegment
119 %{_bindir}/affsign
120 %{_bindir}/affstats
121 %{_bindir}/affverify
122 %{_bindir}/affxml
123 %{_mandir}/man1/*
124 %{py_platsitedir}/pyaff.so
125
126 %files -n %{libname}
127 %doc AUTHORS BUGLIST.txt COPYING ChangeLog NEWS README* doc/*
128 %{_libdir}/*.so.%{major}*
129
130 %files -n %{develname}
131 %dir %{_includedir}/afflib
132 %{_includedir}/afflib/*.h
133 %{_libdir}/*.so
134 %{_libdir}/*.la
135 %{py_platsitedir}/*.la
136 %{_libdir}/pkgconfig/*.pc
137
138

  ViewVC Help
Powered by ViewVC 1.1.28