phoenix, I don't know what's going wrong because I can download the files. Maybe it's a problem of my ISP DNSs, because I had problems accessing to my personal space.
Here you have the .spec and a .patch:
%define real_version 552
Summary: Free C++ class library of cryptographic schemes
Name: cryptopp
Version: 5.5.2
Release: 1%{?dist}
License: Public Domain
Group: System Environment/Libraries
URL: http://www.cryptopp.com/
Source: http://prdownloads.sourceforge.net/cryptopp/%{name}%{real_version}.zip
Patch0: %{name}-makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Buildrequires: unzip, dos2unix, gcc-c++
%description
Crypto++ Library is a free C++ class library of cryptographic schemes.
Currently the library consists of the following, some of which are other
people's code, repackaged into classes.
One purpose of Crypto++ is to act as a repository of public domain
(not copyrighted) source code. Although the library is copyrighted as a
compilation, the individual files in it (except for a few exceptions listed
in the license) are in the public domain.
%package devel
Summary: Files for development of applications which will use Crypto++
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
Crypto++ Library is a free C++ class library of cryptographic schemes.
Currently the library consists of the following, some of which are other
people's code, repackaged into classes.
This package contains the header files and static libraries for Crypto++.
%package progs
Summary: Programs for manipulating Crypto++ routines
Group: Development/Tools
Requires: %{name} = %{version}
%description progs
Crypto++ Library is a free C++ class library of cryptographic schemes.
Currently the library consists of the following, some of which are other
people's code, repackaged into classes.
This package contains programs for manipulating Crypto++ routines.
%prep
%setup -c -n %{name}-%{version}
# All files have ^M end of lines, fix that for the makefile patch to apply
find . -type f -exec dos2unix {} \;
%patch0 -p1
%build
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%makeinstall
%clean
%{__rm} -rf %{buildroot}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-, root, root, 0755)
%doc License.txt Readme.txt
%{_libdir}/*.a
%files devel
%defattr(-, root, root, 0755)
%{_includedir}/cryptopp/
%files progs
%defattr(-, root, root, 0755)
%{_bindir}/*
%changelog
* Thu Feb 21 2008 Manuel Fombuena <manuel.fombuenazapico [AT] gmail [DOT] com> 5.5.2
- Update to 5.5.2.
- Removed gcc4 and autotols patches.
- Removed optflags replacement.
* Fri Oct 28 2005 Matthias Saou <http://freshrpms.net/> 5.2.1-3
- Include gcc4 patch, and convert all files to UNIX line breaks.
* Tue Nov 16 2004 Matthias Saou <http://freshrpms.net/> 5.2.1-2
- Use optflags, but replace -O? with -O1, since it breaks otherwise.
* Mon Nov 15 2004 Matthias Saou <http://freshrpms.net/> 5.2.1-1
- Update to 5.2.1, with newer patch from Mandrake Cooker.
* Wed May 26 2004 Matthias Saou <http://freshrpms.net/> 5.1-1
- Fedora Core package based on the Mandrake one.
* Mon Mar 01 2004 Lenny Cartier <lenny@mandrakesoft.com> 5.1-1mdk
- from Pierre-Michel Theveny <pmth@free.fr> :
- Fixed problem with broken library (do not use -O2 !)
- Added patch for GNU autotools and libtool support
- Added package progs
* Wed Feb 19 2004 Pierre-Michel Theveny <pmth@free.fr> 5.1-1mdk
- Ported to Mandrake 9.2
- Added shared library
* Tue Feb 18 2004 Ariano Bertacca <ariano@hirnriss.net> 5.1-1
- released libcryptopp-5.1-1
And the cryptopp-makefile.patch, to change PREFIX to prefix in makefile, necessary to work with %makeinstall macro:
--- cryptopp/GNUmakefile.o 2008-02-21 18:16:45.000000000 +0100
+++ cryptopp/GNUmakefile 2008-02-21 18:18:17.000000000 +0100
@@ -12,8 +12,8 @@
ISMINGW = $(shell uname | $(EGREP) -c "MINGW32")
# Default prefix for make install
-ifeq ($(PREFIX),)
-PREFIX = /usr
+ifeq ($(prefix),)
+prefix = /usr
endif
ifeq ($(CXX),gcc) # for some reason CXX is gcc on cygwin 1.1.4
@@ -108,10 +108,10 @@
$(RM) cryptest.exe libcryptopp.a $(LIBOBJS) $(TESTOBJS) cryptopp.dll libcryptopp.dll.a libcryptopp.import.a cryptest.import.exe dlltest.exe $(DLLOBJS) $(LIBIMPORTOBJS) $(TESTIMPORTOBJS) $(DLLTESTOBJS)
install:
- $(MKDIR) -p $(PREFIX)/include/cryptopp $(PREFIX)/lib $(PREFIX)/bin
- $(CP) *.h $(PREFIX)/include/cryptopp
- $(CP) *.a $(PREFIX)/lib
- $(CP) *.exe $(PREFIX)/bin
+ $(MKDIR) -p $(prefix)/include/cryptopp $(prefix)/lib $(prefix)/bin
+ $(CP) *.h $(prefix)/include/cryptopp
+ $(CP) *.a $(prefix)/lib
+ $(CP) *.exe $(prefix)/bin
libcryptopp.a: $(LIBOBJS)
$(AR) $(ARFLAGS) $@ $(LIBOBJS)