forked from pool/libcryptopp
5.6.0
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcryptopp?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
cryptopp560.tar.bz2
Normal file
3
cryptopp560.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2a58b02d2ee9a747ed9f3d007bca228675017399d23511074e6567e0328db869
|
||||
size 835143
|
||||
45
libcryptopp-shared.patch
Normal file
45
libcryptopp-shared.patch
Normal file
@@ -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)
|
||||
5
libcryptopp.changes
Normal file
5
libcryptopp.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 9 22:29:54 UTC 2010 - pascal.bleser@opensuse.org
|
||||
|
||||
- initial package (5.6.0)
|
||||
|
||||
84
libcryptopp.spec
Normal file
84
libcryptopp.spec
Normal file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user