2 changed files with 122 additions and 0 deletions
@ -0,0 +1,49 @@
|
||||
Index: makefile
|
||||
--- makefile.orig 2007-05-12 16:46:25.000000000 +0200
|
||||
+++ makefile 2016-02-20 18:11:22.662557867 +0100
|
||||
@@ -30,18 +30,12 @@
|
||||
endif
|
||||
|
||||
# Compilation flags. Note the += does not write over the user's CFLAGS!
|
||||
-CFLAGS += -c -I./testprof/ -I./src/headers/ -Wall -Wsign-compare -W -Wshadow -Wno-unused-parameter -DLTC_SOURCE
|
||||
-
|
||||
-# additional warnings (newer GCC 3.4 and higher)
|
||||
-ifdef GCC_34
|
||||
-CFLAGS += -Wsystem-headers -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wmissing-prototypes \
|
||||
- -Wmissing-declarations -Wpointer-arith
|
||||
-endif
|
||||
+CFLAGS += -c -I./testprof/ -I./src/headers/ -Wno-unused-parameter -DLTC_SOURCE
|
||||
|
||||
ifndef IGNORE_SPEED
|
||||
|
||||
# optimize for SPEED
|
||||
-CFLAGS += -O3 -funroll-loops
|
||||
+CFLAGS += -O2 -funroll-loops
|
||||
|
||||
# add -fomit-frame-pointer. hinders debugging!
|
||||
CFLAGS += -fomit-frame-pointer
|
||||
@@ -295,19 +289,12 @@
|
||||
#This rule installs the library and the header files. This must be run
|
||||
#as root in order to have a high enough permission to write to the correct
|
||||
#directories and to set the owner and group to root.
|
||||
-ifndef NODOCS
|
||||
-install: library docs
|
||||
-else
|
||||
install: library
|
||||
-endif
|
||||
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
|
||||
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
|
||||
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(DATAPATH)
|
||||
- install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH)
|
||||
- install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
|
||||
-ifndef NODOCS
|
||||
- install -g $(GROUP) -o $(USER) doc/crypt.pdf $(DESTDIR)$(DATAPATH)
|
||||
-endif
|
||||
+ install -d $(DESTDIR)$(LIBPATH)
|
||||
+ install -d $(DESTDIR)$(INCPATH)
|
||||
+ install -d $(DESTDIR)$(DATAPATH)
|
||||
+ install $(LIBNAME) $(DESTDIR)$(LIBPATH)
|
||||
+ install $(HEADERS) $(DESTDIR)$(INCPATH)
|
||||
|
||||
install_test: testprof/$(LIBTEST)
|
||||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
|
||||
@ -0,0 +1,73 @@
|
||||
## |
||||
## libtomcrypt.spec -- OpenPKG RPM Package Specification |
||||
## Copyright (c) 2000-2016 OpenPKG Foundation e.V. <http://openpkg.net/> |
||||
## |
||||
## Permission to use, copy, modify, and distribute this software for |
||||
## any purpose with or without fee is hereby granted, provided that |
||||
## the above copyright notice and this permission notice appear in all |
||||
## copies. |
||||
## |
||||
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
||||
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
||||
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
||||
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
||||
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
||||
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
||||
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
||||
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
||||
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
||||
## SUCH DAMAGE. |
||||
## |
||||
|
||||
# package information |
||||
Name: libtomcrypt |
||||
Summary: Cryptography Library |
||||
URL: http://www.libtom.org/ |
||||
Vendor: Tom St Denis |
||||
Packager: OpenPKG Foundation e.V. |
||||
Distribution: OpenPKG Community |
||||
Class: EVAL |
||||
Group: Libraries |
||||
License: WTFPL |
||||
Version: 1.17 |
||||
Release: 20160220 |
||||
|
||||
# list of sources |
||||
Source0: https://github.com/libtom/libtomcrypt/releases/download/%{version}/crypt-%{version}.tar.bz2 |
||||
Patch0: libtomcrypt.patch |
||||
|
||||
# build information |
||||
BuildPreReq: OpenPKG, openpkg >= 20160101, gcc |
||||
PreReq: OpenPKG, openpkg >= 20160101 |
||||
|
||||
%description |
||||
TomCrypt is a portable Cryptography library. |
||||
|
||||
%track |
||||
prog libtomcrypt = { |
||||
version = %{version} |
||||
url = http://www.libtom.org/ |
||||
regex = crypt-(__VER__)\.tar\.bz2 |
||||
} |
||||
|
||||
%prep |
||||
%setup -q |
||||
%patch -p0 |
||||
|
||||
%build |
||||
%{l_make} %{l_mflags -O} \ |
||||
CC="%{l_cc} %{l_cflags -O} -I." |
||||
|
||||
%install |
||||
%{l_make} %{l_mflags} install \ |
||||
DESTDIR=$RPM_BUILD_ROOT \ |
||||
LIBPATH=%{l_prefix}/lib \ |
||||
INCPATH=%{l_prefix}/include |
||||
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
||||
|
||||
%files -f files |
||||
|
||||
%clean |
||||
|
||||
Loading…
Reference in new issue