From ab0c1124dac093356ca52b22b6d6e3930d3efcbdb2a19c2ec87fb1cad1463adf Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Mon, 9 Aug 2010 22:30:27 +0000 Subject: [PATCH] 5.6.0 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcryptopp?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + cryptopp560.tar.bz2 | 3 ++ libcryptopp-shared.patch | 45 +++++++++++++++++++++ libcryptopp.changes | 5 +++ libcryptopp.spec | 84 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 161 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 cryptopp560.tar.bz2 create mode 100644 libcryptopp-shared.patch create mode 100644 libcryptopp.changes create mode 100644 libcryptopp.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cryptopp560.tar.bz2 b/cryptopp560.tar.bz2 new file mode 100644 index 0000000..a6d7c48 --- /dev/null +++ b/cryptopp560.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a58b02d2ee9a747ed9f3d007bca228675017399d23511074e6567e0328db869 +size 835143 diff --git a/libcryptopp-shared.patch b/libcryptopp-shared.patch new file mode 100644 index 0000000..1699219 --- /dev/null +++ b/libcryptopp-shared.patch @@ -0,0 +1,45 @@ +--- GNUmakefile.orig 2009-03-15 02:48:02.000000000 +0100 ++++ GNUmakefile 2010-08-10 00:19:45.000000000 +0200 +@@ -1,4 +1,4 @@ +-CXXFLAGS = -DNDEBUG -g -O2 ++CXXFLAGS = -DNDEBUG -g -O2 -fpic -fPIC + #CXXFLAGS = -g + # -fPIC is supported. Please report any breakage of -fPIC as a bug. + # CXXFLAGS += -fPIC +@@ -109,7 +109,7 @@ + TESTIMPORTOBJS = $(TESTOBJS:.o=.import.o) + DLLTESTOBJS = dlltest.dllonly.o + +-all: cryptest.exe ++all: cryptest.exe libcryptopp.so.$(VERSION) + + test: cryptest.exe + ./cryptest.exe v +@@ -118,17 +118,22 @@ + $(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 $(DESTDIR)$(PREFIX)/include/cryptopp $(DESTDIR)$(PREFIX)/$(LIB) $(DESTDIR)$(PREFIX)/bin ++ $(CP) *.h $(DESTDIR)$(PREFIX)/include/cryptopp ++ $(CP) *.so *.so.* *.a $(DESTDIR)$(PREFIX)/$(LIB) ++ $(CP) *.exe $(DESTDIR)$(PREFIX)/bin + + libcryptopp.a: $(LIBOBJS) + $(AR) $(ARFLAGS) $@ $(LIBOBJS) + $(RANLIB) $@ + ++libcryptopp.so.$(VERSION): $(LIBOBJS) ++ $(CC) -shared -Wl,-soname,libcryptopp.so.$(MAJOR) -o libcryptopp.so.$(VERSION) $(LIBOBJS) $(LDFLAGS) $(LDLIBS) ++ ln -s libcryptopp.so.$(VERSION) libcryptopp.so.$(MAJOR) ++ ln -s libcryptopp.so.$(MAJOR) libcryptopp.so ++ + cryptest.exe: libcryptopp.a $(TESTOBJS) +- $(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) -L. -lcryptopp $(LDFLAGS) $(LDLIBS) ++ $(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) -L. libcryptopp.a $(LDFLAGS) $(LDLIBS) + + nolib: $(OBJS) # makes it faster to test changes + $(CXX) -o ct $(CXXFLAGS) $(OBJS) $(LDFLAGS) $(LDLIBS) diff --git a/libcryptopp.changes b/libcryptopp.changes new file mode 100644 index 0000000..ad3109f --- /dev/null +++ b/libcryptopp.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Aug 9 22:29:54 UTC 2010 - pascal.bleser@opensuse.org + +- initial package (5.6.0) + diff --git a/libcryptopp.spec b/libcryptopp.spec new file mode 100644 index 0000000..53cc55b --- /dev/null +++ b/libcryptopp.spec @@ -0,0 +1,84 @@ +# vim: set sw=4 ts=4 et nu: +# norootforbuild + +Name: libcryptopp +Version: 5.6.0 +%define pkg_version 560 +%define soname 5 +Release: 0 +Summary: Crypto++ Library +# http://www.cryptopp.com/cryptopp%{pkg_version}.zip +Source: cryptopp%{pkg_version}.tar.bz2 +Patch1: libcryptopp-shared.patch +URL: http://www.cryptopp.com +Group: Development/Libraries/C and C++ +License: Public Domain +BuildRoot: %{_tmppath}/build-%{name}-%{version} +BuildRequires: gcc-c++ libstdc++-devel +BuildRequires: gcc make glibc-devel pkgconfig + +%description +. + +%package -n %{name}%{soname} +Summary: Cryptographic Library for C++ +Group: System/Libraries + +%description -n %{name}%{soname} +Crypto++ Library is a free C++ class library of cryptographic schemes. + +%package -n %{name}-devel +Summary: Cryptographic Library for C++ +Group: Development/Libraries/C and C++ +Requires: %{name}%{soname} = %{version} + +%description -n %{name}-devel +Crypto++ Library is a free C++ class library of cryptographic schemes. + +%prep +%setup -q -c "%{name}-%{version}" +%patch1 + +%build +%__make %{?jobs:-j%{jobs}} \ + CXXFLAGS="-DNDEBUG %{optflags} -fpic -fPIC" \ + DESTDIR="" \ + PREFIX="%{_prefix}" \ + LIB="%{_lib}" \ + CXX="%__cxx" \ + VERSION="%{version}" \ + MAJOR="%{soname}" \ + all + +%install +%__make \ + DESTDIR="%{buildroot}" \ + PREFIX="%{_prefix}" \ + LIB="%{_lib}" \ + CXX="%__cxx" \ + VERSION="%{version}" \ + MAJOR="%{soname}" \ + install + +%__rm -rf "%{buildroot}%{_bindir}" + +%check +%__make test + +%post -n %{name}%{soname} -p /sbin/ldconfig +%postun -n %{name}%{soname} -p /sbin/ldconfig + +%clean +%{?buildroot:%__rm -rf "%{buildroot}"} + +%files -n %{name}%{soname} +%defattr(-,root,root) +%{_libdir}/libcryptopp.so.%{soname} +%{_libdir}/libcryptopp.so.%{soname}.* + +%files -n %{name}-devel +%defattr(-,root,root) +%{_includedir}/cryptopp +%{_libdir}/libcryptopp.a +%{_libdir}/libcryptopp.so +