forked from pool/libtomcrypt
Accepting request 238874 from devel:libraries:c_c++
Moving and renaming libtomcrypt0 to security project as it's a better home and this provide dependencies for other packages which I'll be SR'ing to security shortly. OBS-URL: https://build.opensuse.org/request/show/238874 OBS-URL: https://build.opensuse.org/package/show/security/libtomcrypt?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
crypt-1.17.tar.bz2
Normal file
3
crypt-1.17.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e33b47d77a495091c8703175a25c8228aff043140b2554c08a3c3cd71f79d116
|
||||
size 1599215
|
28
libtomcrypt0-makefile.shared.patch
Normal file
28
libtomcrypt0-makefile.shared.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
diff -Naurh makefile.shared libtomcrypt-1.17/makefile.shared
|
||||
--- makefile.shared 2009-05-04 09:24:31.000000000 -0300
|
||||
+++ libtomcrypt-1.17/makefile.shared 2009-05-04 09:25:06.000000000 -0300
|
||||
@@ -244,7 +244,7 @@
|
||||
library: $(LIBNAME)
|
||||
|
||||
testprof/$(LIBTEST):
|
||||
- cd testprof ; CFLAGS="$(CFLAGS)" GROUP=$(GROUP) USER=$(USER) VERSION=$(VERSION) LIBPATH=$(LIBPATH) LIBTEST=$(LIBTEST) LIBTEST_S=$(LIBTEST_S) make -f makefile.shared
|
||||
+ cd testprof ; CFLAGS="$(CFLAGS)" VERSION=$(VERSION) LIBPATH=$(LIBPATH) LIBTEST=$(LIBTEST) LIBTEST_S=$(LIBTEST_S) make -f makefile.shared
|
||||
|
||||
objs: $(OBJECTS)
|
||||
|
||||
@@ -252,11 +252,11 @@
|
||||
libtool --silent --mode=link gcc $(CFLAGS) `find . -type f | grep "[.]lo" | grep "src/" | xargs` $(EXTRALIBS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
|
||||
|
||||
install: $(LIBNAME)
|
||||
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
|
||||
- cd testprof ; CFLAGS="$(CFLAGS)" GROUP=$(GROUP) USER=$(USER) VERSION=$(VERSION) LIBPATH=$(LIBPATH) LIBTEST=$(LIBTEST) LIBTEST_S=$(LIBTEST_S) DESTDIR=$(DESTDIR) make -f makefile.shared install
|
||||
+ install -d $(DESTDIR)$(LIBPATH)
|
||||
+ cd testprof ; CFLAGS="$(CFLAGS)" VERSION=$(VERSION) LIBPATH=$(LIBPATH) LIBTEST=$(LIBTEST) LIBTEST_S=$(LIBTEST_S) DESTDIR=$(DESTDIR) make -f makefile.shared install
|
||||
libtool --silent --mode=install install -c libtomcrypt.la $(DESTDIR)$(LIBPATH)/libtomcrypt.la
|
||||
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
|
||||
- install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
|
||||
+ install -d $(DESTDIR)$(INCPATH)
|
||||
+ install $(HEADERS) $(DESTDIR)$(INCPATH)
|
||||
|
||||
#This rule makes the hash program included with libtomcrypt
|
||||
hashsum: library
|
11
libtomcrypt0.changes
Normal file
11
libtomcrypt0.changes
Normal file
@@ -0,0 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 31 10:27:11 UTC 2012 - jengelh@medozas.de
|
||||
|
||||
- Remove redundant tags/sections per specfile guideline suggestions
|
||||
- Parallel building using %_smp_mflags
|
||||
- Add libtool as BuildRequires for factory/12.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 12 13:05:05 UTC 2010 - alexandre@exatati.com.br
|
||||
|
||||
- Spec file cleaned with spec-cleaner.
|
102
libtomcrypt0.spec
Normal file
102
libtomcrypt0.spec
Normal file
@@ -0,0 +1,102 @@
|
||||
#
|
||||
# Spec file for package libtomcrypt (Version 1.17)
|
||||
#
|
||||
# Copyright (c) 2009 Exata T.I., Maringa, PR, Brasil.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org
|
||||
#
|
||||
|
||||
|
||||
Name: libtomcrypt0
|
||||
Version: 1.17
|
||||
Release: 1
|
||||
License: Public Domain
|
||||
Summary: Cryptographic Toolkit Written in Portable C
|
||||
Url: http://libtom.org
|
||||
Group: System/Libraries
|
||||
Source0: crypt-%{version}.tar.bz2
|
||||
# PATCH-FIX-UPSTREAM %{name}-makefile.shared.patch
|
||||
Patch0: %{name}-makefile.shared.patch
|
||||
BuildRequires: libtool, texlive-latex
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with
|
||||
a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number
|
||||
generators, public key cryptography and a plethora of other routines.
|
||||
|
||||
Author:
|
||||
--------
|
||||
Tom St Denis
|
||||
|
||||
%package devel
|
||||
Summary: Development Files for LibTomCrypt
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description devel
|
||||
Headers and other development files for TomCrypt library.
|
||||
|
||||
Author:
|
||||
--------
|
||||
Tom St Denis
|
||||
|
||||
%package examples
|
||||
Summary: Example Files for LibTomCrypt
|
||||
Group: Development/Libraries/Other
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description examples
|
||||
Example *.c files showing how to use TomCrypt library.
|
||||
|
||||
Author:
|
||||
--------
|
||||
Tom St Denis
|
||||
|
||||
%prep
|
||||
%setup -qn libtomcrypt-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile.shared
|
||||
|
||||
|
||||
%install
|
||||
%{__make} DESTDIR=%{buildroot} LIBPATH=%{_libdir} NODOCS=0 -f makefile.shared install
|
||||
# Remove static libraries (It's upstream bug in makefile.shared I think.)
|
||||
%{__rm} %{buildroot}%{_libdir}/*.a
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libtomcrypt.so.0
|
||||
%{_libdir}/libtomcrypt.so.0.0.117
|
||||
%{_libdir}/libtomcrypt_prof.so.0
|
||||
%{_libdir}/libtomcrypt_prof.so.0.0.117
|
||||
%doc LICENSE README TODO doc/crypt.pdf
|
||||
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%attr(0644,root,root) %{_includedir}/tomcrypt*.h
|
||||
%{_libdir}/libtomcrypt.so
|
||||
%{_libdir}/libtomcrypt.la
|
||||
%{_libdir}/libtomcrypt_prof.so
|
||||
%{_libdir}/libtomcrypt_prof.la
|
||||
|
||||
|
||||
%files examples
|
||||
%defattr(-,root,root)
|
||||
%doc demos
|
||||
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user