Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 498f9ec57acabe1a4451e01aca2000b3 > files > 1

afflib-3.7.4-4.mga5.src.rpm

%define major 0
%define libname %mklibname afflib %{major}
%define develname %mklibname -d afflib

Summary:        A set of programs for creating and manipulating AFF files
Name:           afflib
Version:        3.7.4
Release:        %mkrel 4
Group:          System/Libraries
License:        BSD
URL:            http://www.afflib.org/
Source0:        https://github.com/simsong/AFFLIBv3/archive/v%{version}.tar.gz

BuildRequires:   curl-devel
# GPLv2 FOSS incompatible with BSD with advertising
#BuildRequires:  fuse-devel
BuildRequires:   libewf-devel
BuildRequires:   lzma-devel
BuildRequires:   libexpat-devel
BuildRequires:   libtermcap-devel
BuildRequires:   ncurses-devel
BuildRequires:   openssl-devel
BuildRequires:   python-devel
# GPLv2 FOSS incompatible with BSD with advertising
#BuildRequires:  readline-devel
BuildRequires:   zlib-devel


%description
AFFLIB is an open source library developed by Simson Garfinkel and Basis
Technology that implements the AFF standard. AFFLIB is distributed under
4-clause Berkeley License and may be freely incorporated into both Open
Source and Proprietary software.

In addition to the library, AFFLIB also comes with the AFF Tools, a set of
programs for creating and manipulating AFF files.

%package -n  %{libname}
Summary:     A shared library that implements the AFF standard
Group:       System/Libraries

%description -n	%{libname}
AFFLIB is an open source library developed by Simson Garfinkel and Basis
Technology that implements the AFF standard. AFFLIB is distributed under
4-clause Berkeley License and may be freely incorporated into both Open
Source and Proprietary software.

This package contains a shared library that implements the AFF standard.

%package -n  %{develname}
Summary:     Static library and header files for the afflib library
Group:       Development/C
Provides:    %{name}-devel = %{version}
Requires:    %{libname} = %{version}

%description -n %{develname}
AFFLIB is an open source library developed by Simson Garfinkel and Basis
Technology that implements the AFF standard. AFFLIB is distributed under
4-clause Berkeley License and may be freely incorporated into both Open
Source and Proprietary software.

This package contains the static afflib library and its header files.

%prep
%setup -q -n AFFLIBv3-%{version}
#patch1 -p1 -b .pyver

#fix spurious permissions with lzma443
find lzma443 -type f -exec chmod 0644 {} ';'
chmod 0644 lib/base64.{h,cpp}

%build

export CFLAGS="%{optflags} -fPIC"

sh bootstrap.sh

%configure2_5x \
               --disable-static \
               --enable-shared \
               --enable-wide-character-type \
               --enable-libewf=yes \
               --enable-s3=yes \
               --enable-fuse=no \
               --enable-python=yes \
               --enable-qemu=no \
               --with-curl=%{_prefix}

# Remove rpath from libtool
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

# clean unused-direct-shlib-dependencies
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool

%make

%install

%makeinstall_std

# install headers as well
install -d %{buildroot}%{_includedir}/afflib
install -m0644 lib/*.h %{buildroot}%{_includedir}/afflib/


%files
%{_bindir}/affcat
%{_bindir}/affcompare
%{_bindir}/affconvert
%{_bindir}/affcopy
%{_bindir}/affcrypto
%{_bindir}/affdiskprint
%{_bindir}/affix
%{_bindir}/affuse
%{_bindir}/affinfo
%{_bindir}/affrecover
%{_bindir}/affsegment
%{_bindir}/affsign
%{_bindir}/affstats
%{_bindir}/affverify
%{_bindir}/affxml
%{_mandir}/man1/*
%{py_platsitedir}/pyaff.so

%files -n %{libname}
%doc AUTHORS BUGLIST.txt COPYING ChangeLog NEWS README* doc/*
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%dir %{_includedir}/afflib
%{_includedir}/afflib/*.h
%{_libdir}/*.so
%{_libdir}/*.la
%{py_platsitedir}/*.la
%{_libdir}/pkgconfig/*.pc


%changelog
* Wed Oct 15 2014 umeabot <umeabot> 3.7.4-4.mga5
+ Revision: 743482
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 3.7.4-3.mga5
+ Revision: 686459
- Rebuild to fix library dependencies

* Tue Sep 16 2014 umeabot <umeabot> 3.7.4-2.mga5
+ Revision: 677712
- Mageia 5 Mass Rebuild

* Sat Jun 21 2014 malo <malo> 3.7.4-1.mga5
+ Revision: 638250
- update to 3.7.4

* Fri Oct 18 2013 umeabot <umeabot> 3.7.1-3.mga4
+ Revision: 502464
- Mageia 4 Mass Rebuild

* Fri Jan 11 2013 umeabot <umeabot> 3.7.1-2.mga3
+ Revision: 345321
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Jun 07 2012 malo <malo> 3.7.1-1.mga3
+ Revision: 257142
- new version 3.7.1

* Mon Apr 02 2012 pterjan <pterjan> 3.6.15-2.mga2
+ Revision: 227773
- Rebuild after libexpat.la removal

* Tue Jan 31 2012 malo <malo> 3.6.15-1.mga2
+ Revision: 203595
- update to version 3.6.15
- remove the warning disabling

* Sun Jan 29 2012 malo <malo> 3.6.6-1.mga2
+ Revision: 202761
- adaptation after import from Mandriva
- new version 3.6.6
- imported package afflib


* Wed Apr 21 2010 Funda Wang <fwang@mandriva.org> 3.5.5-2mdv2010.1
+ Revision: 537322
- rebuild

* Wed Dec 30 2009 Frederik Himpe <fhimpe@mandriva.org> 3.5.5-1mdv2010.1
+ Revision: 484163
- Update to new version 3.5.5
- Remove build fix integrated upstream

* Wed Oct 07 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 3.4.1-2mdv2010.0
+ Revision: 455746
- rebuild for new curl SSL backend

* Fri Sep 25 2009 Frederik Himpe <fhimpe@mandriva.org> 3.4.1-1mdv2010.0
+ Revision: 449242
- Update to new version 3.4.1
- Sync patches with Fedora
- Enable Python bindings

* Fri Sep 11 2009 Emmanuel Andry <eandry@mandriva.org> 3.3.7-1mdv2010.0
+ Revision: 438474
- New version 3.3.7

* Mon Jul 20 2009 Frederik Himpe <fhimpe@mandriva.org> 3.3.6-1mdv2010.0
+ Revision: 397999
- Add patch from Fedora to build with gcc 4.4
- Don't use rpath
- Update to new version 3.3.6

* Sun Mar 22 2009 Emmanuel Andry <eandry@mandriva.org> 3.3.4-1mdv2009.1
+ Revision: 360464
- New version 3.3.4
- disable werror for bundled lzma
- disable fuse and readline because of license incompatibility
- drop patches
- protect major
- update files list

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Thu Dec 20 2007 Olivier Blin <oblin@mandriva.com> 2.3.0-1mdv2008.1
+ Revision: 135817
- restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Fri Sep 07 2007 Oden Eriksson <oeriksson@mandriva.com> 2.3.0-1mdv2008.0
+ Revision: 81864
- Import afflib



* Fri Sep 07 2007 Oden Eriksson <oeriksson@mandriva.com> 2.3.0-1mdv2008.0
- initial Mandriva package