Name: libaesgm
Version: 20090429
Release: 3%{?dist}
License: BSD
Summary: Library implementation of AES (Rijndael) cryptographic methods
URL: http://gladman.plushost.co.uk/oldsite/AES/index.php
Source0: http://gladman.plushost.co.uk/oldsite/AES/aes-src-29-04-09.zip
Source1: Makefile.aes
# Add fileencryption support
# http://www.gladman.me.uk/cryptography_technology/fileencrypt/
Patch0: libaesgm-20090429-fileencrypt.patch
Group: System Environment/Libraries
%description
Library implementation of AES (Rijndael) cryptographic methods.
%package devel
Summary: Development files for libaesgm
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Development headers and libraries for libaesgm.
%prep
%setup -q -c -n %{name}-%{version}
cp %{SOURCE1} Makefile
%patch0 -p1 -b .fileencrypt
sed -i 's/\r//' *.txt
%build
make CFLAGS="%{optflags} -fPIC -DUSE_SHA1"
%install
make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" install
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc *.txt
%{_libdir}/libaesgm.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/aes/
%{_libdir}/libaesgm.so
%changelog
* Mon May 24 2010 Tom "spot" Callaway <tcallawa@redhat.com> 20090429-3
- add fileencrypt support
* Mon Feb 22 2010 Tom "spot" Callaway <tcallawa@redhat.com> 20090429-2
- use sane versioning to ensure proper upgrade ordering without epoch
- fix Makefile.aes to not use double-zero in soname, don't make double zero symlink
- add default clean section
- put headers in /aes/ namespace dir
* Thu Feb 18 2010 Tom "spot" Callaway <tcallawa@redhat.com> 290409-1
- initial Fedora package