Compare commits

...

37 Commits
f12 ... master

Author SHA1 Message Date
Fedora Release Engineering
cf942d0af5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-25 13:38:18 +00:00
Fedora Release Engineering
0652b982b3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 07:29:25 +00:00
Igor Gnatenko
9d2d9bdc25 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:11 +01:00
Igor Gnatenko
0ff654c2b6
Remove obsolete ldconfig scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-22 18:39:50 +01:00
Fedora Release Engineering
691bab2281 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 08:20:10 +00:00
Jason Tibbitts
2a523badba Remove needless use of %defattr 2018-07-10 01:41:34 -05:00
Tim Niemueller
234f7295a3 BR gcc and gcc-c++ 2018-03-07 09:06:57 +01:00
Igor Gnatenko
ab75689487
Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 07:18:36 +01:00
Igor Gnatenko
f6f5ef54f1 Remove BuildRoot definition
None of currently supported distributions need that.
It was needed last for EL5 which is EOL now

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-13 23:40:30 +01:00
Fedora Release Engineering
9119a965d6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 22:13:00 +00:00
Fedora Release Engineering
c95b554232 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 01:44:37 +00:00
Fedora Release Engineering
a7c64f00f1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 19:09:23 +00:00
Fedora Release Engineering
e83c38f94f - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 18:56:51 +00:00
Jonathan Wakely
da8a7a25fa Rebuilt for Boost 1.63 2017-01-27 06:28:16 +00:00
Dennis Gilmore
0dd99c2c95 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 03:26:02 +00:00
Jonathan Wakely
c703031d4a Rebuilt for Boost 1.60 2016-01-15 10:09:10 +00:00
Jonathan Wakely
be46b7122b Rebuilt for Boost 1.59 2015-08-27 20:57:55 +01:00
Dennis Gilmore
6b33ba1705 - Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159 2015-07-29 12:37:23 -05:00
David Tardon
c788d9d479 rebuild for Boost 1.58 2015-07-22 18:51:56 +02:00
Dennis Gilmore
1cf245f871 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 15:57:39 +00:00
Kalev Lember
7bc1821f2b Rebuilt for GCC 5 C++11 ABI change 2015-05-02 15:20:33 +02:00
Petr Machata
d6de3e6acf Rebuild for boost 1.57.0 2015-01-27 16:20:18 +01:00
Peter Robinson
b63bd91625 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 04:15:32 +00:00
Yaakov Selkowitz
d670e07c43 Fix FTBFS with -Werror=format-security (#1037167, #1106032) 2014-07-31 01:17:56 -05:00
Dennis Gilmore
5385ea4d7e - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-06 23:09:08 -05:00
Petr Machata
155365f2ab Rebuild for boost 1.55.0 2014-05-23 03:43:49 +02:00
Ralf Corsépius
426783a819 Address F20FTBFS (RHBZ#991895), F19FTBFS (RHBZ#914134):
- Package did not acknowledge RPM_OPT_FLAGS.
  - Fix link order.
  - BR: texlive-collection-latexrecommended
- Make Makefiles verbose (Add libkni3-3.9.2-verbose.patch).
- Reflect docdir changes (RHBZ#993829).
- Fold-in *doc package's contents into %{_pkgdocdir}.
- Make *doc-package noarch.
2013-08-26 09:37:20 +02:00
Dennis Gilmore
0e999cc510 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 00:59:25 -05:00
Petr Machata
b2360815e6 Rebuild for boost 1.54.0 2013-07-30 14:18:50 +02:00
Dennis Gilmore
9b339d05d6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-13 22:38:21 -06:00
Dennis Gilmore
65bd582668 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-19 15:18:05 -05:00
Tom Callaway
f05751f7a7 fix build with gcc 4.7 2012-03-08 11:30:02 -05:00
Dennis Gilmore
22b21d132b - Rebuilt for c++ ABI breakage 2012-02-28 12:58:57 -06:00
Dennis Gilmore
8495fd9948 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 01:56:58 -06:00
Dennis Gilmore
228202b955 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 01:26:24 -06:00
Fedora Release Engineering
0320bf3ac8 dist-git conversion 2010-07-28 21:15:01 +00:00
Bill Nottingham
f8b18aab2d Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 23:51:03 +00:00
7 changed files with 403 additions and 48 deletions

View File

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: libkni3
# $Id$
NAME := libkni3
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -1 +0,0 @@
libkni3-3_9_2-12_fc11:HEAD:libkni3-3.9.2-12.fc11.src.rpm:1252967051

View File

@ -0,0 +1,11 @@
--- a/demo/perfo/perfo.cpp
+++ b/demo/perfo/perfo.cpp
@@ -15,7 +15,7 @@ int maxCnt; //global variable: count of communication tries
void statKatRecv(const char strTitle[], long i, long j, clock_t t, long l) {
printf("-------------------------------------------\n");
- printf(strTitle); printf("\tAverage: %.3f [ms]\n", (double)t/(double)l);
+ printf("%s", strTitle); printf("\tAverage: %.3f [ms]\n", (double)t/(double)l);
printf("-------------------------------------------\n");
printf("RECV_NO_ERR : %.3f %ld\n", (double)i/(double)l, i);
printf("RECV_READING_ERR : %.3f %ld\n", (double)j/(double)l, j);

11
kni-3.9.2-gcc47.patch Normal file
View File

@ -0,0 +1,11 @@
diff -up KNI_3.9.2/src/Base/cdlCOM.cpp.gcc47 KNI_3.9.2/src/Base/cdlCOM.cpp
--- KNI_3.9.2/src/Base/cdlCOM.cpp.gcc47 2012-03-08 11:25:45.466392402 -0500
+++ KNI_3.9.2/src/Base/cdlCOM.cpp 2012-03-08 11:25:54.399317676 -0500
@@ -26,6 +26,7 @@
#include <cstdio>
#include <cstdlib>
+#include <unistd.h>
#ifdef WIN32
CCdlCOM::CCdlCOM(TCdlCOMDesc ccd) : _deviceName(""), _ccd(), _prtHdl(INVALID_HANDLE_VALUE), _oto() {

260
kni-3.9.2-verbose.patch Normal file
View File

@ -0,0 +1,260 @@
diff -Naur KNI_3.9.2.orig/demo/burnintest/Makefile KNI_3.9.2/demo/burnintest/Makefile
--- KNI_3.9.2.orig/demo/burnintest/Makefile 2007-06-20 08:05:24.000000000 +0200
+++ KNI_3.9.2/demo/burnintest/Makefile 2013-08-26 06:56:25.276226404 +0200
@@ -29,29 +29,15 @@
AVAILABLE_LIBRARIES = ../common/keyboard.o ${BASE_LIBRARY} ${INVKIN_LIBRARY} ${LM_LIBRARY}
-.SILENT:
-
.SUFFIXES: .cpp.o
.cpp.o:
- echo -n "Compiling: $@"
- if $(CXX) $(CXXFLAGS) $(INCLUDE) -c $< 2>.clog; \
- then echo " [ok]"; \
- cat .clog; \
- else echo " [failed]"; \
- cat .clog; \
- fi
+ $(CXX) $(CXXFLAGS) $(INCLUDE) -c $<
all: BurnInTest
BurnInTest: BurnInTest.o
- echo -n "Building: $@"
- if $(CXX) $(CXXFLAGS) -lpthread -o $@ $@.o ${AVAILABLE_LIBRARIES} 2>.clog; \
- then echo " [ok]"; \
- cat .clog; \
- else echo " [failed]"; \
- cat .clog; \
- fi
+ $(CXX) $(CXXFLAGS) -lpthread -o $@ $@.o ${AVAILABLE_LIBRARIES}
clean:
echo "Cleaning up"
diff -Naur KNI_3.9.2.orig/demo/Makefile KNI_3.9.2/demo/Makefile
--- KNI_3.9.2.orig/demo/Makefile 2013-08-25 10:10:07.359358007 +0200
+++ KNI_3.9.2/demo/Makefile 2013-08-26 07:38:44.218398437 +0200
@@ -40,27 +40,13 @@
AVAILABLE_LIBRARIES = ./common/keyboard.o
-.SILENT:
-
all: $(TARGETS_D)
$(CTARGETS_D):
- echo -n "Building: $@"
- if $(CXX) $(CXXFLAGS) -I$(INCLUDE_DIR) -c -o common/$(@:.common=).o $(wildcard common/$(@:.common=).cpp) 2>.clog; \
- then echo " [ok]"; \
- cat .clog; \
- else echo " [failed]"; \
- cat .clog; \
- fi
+ $(CXX) $(CXXFLAGS) -I$(INCLUDE_DIR) -c -o common/$(@:.common=).o $(wildcard common/$(@:.common=).cpp)
$(TARGETS_D): $(CTARGETS_D)
- echo -n "Building: $@"
- if $(CXX) $(CXXFLAGS) -I$(INCLUDE_DIR) -L../lib/linux -lKNIBase3 -lKNI_InvKin3 -lKNI_LM3 -lpthread -o $(@:.demo=)/$(@:.demo=) $(wildcard $(@:.demo=)/*.cpp) ${AVAILABLE_LIBRARIES} 2>.clog; \
- then echo " [ok]"; \
- cat .clog; \
- else echo " [failed]"; \
- cat .clog; \
- fi
+ $(CXX) $(CXXFLAGS) -I$(INCLUDE_DIR) -L../lib/linux -o $(@:.demo=)/$(@:.demo=) $(wildcard $(@:.demo=)/*.cpp) ${AVAILABLE_LIBRARIES} -lKNIBase3 -lKNI_InvKin3 -lKNI_LM3 -lpthread
$(TARGETS_D_C):
echo "Cleaning: $(@:_clean=)"
diff -Naur KNI_3.9.2.orig/Makefile KNI_3.9.2/Makefile
--- KNI_3.9.2.orig/Makefile 2007-09-27 07:47:18.000000000 +0200
+++ KNI_3.9.2/Makefile 2013-08-26 05:50:13.692299525 +0200
@@ -22,8 +22,6 @@
TARGETS_B = $(foreach target,$(TARGETS),$(target).build)
TARGETS_C = $(foreach target,$(TARGETS),$(target).clean)
-.SILENT:
-
.PHONY: all doc
all:
diff -Naur KNI_3.9.2.orig/src/Base/Makefile KNI_3.9.2/src/Base/Makefile
--- KNI_3.9.2.orig/src/Base/Makefile 2013-08-25 10:10:07.359358007 +0200
+++ KNI_3.9.2/src/Base/Makefile 2013-08-26 06:53:10.626994097 +0200
@@ -40,44 +40,19 @@
SLCFLAGS=-fPIC
SLLDFLAGS = -shared -L$(TARGET_DIR)
-.SILENT:
-
.SUFFIXES: .cpp.o
.cpp.o:
- echo -n "Compiling: $@"
- if $(CXX) $(CXXFLAGS) -I$(INCLUDE_DIR) -c $< 2>.clog; \
- then echo " [ok]"; \
- cat .clog; \
- else echo " [failed]"; \
- cat .clog; \
- fi
+ $(CXX) $(CXXFLAGS) -I$(INCLUDE_DIR) -c $<
all: $(TARGETS)
$(TARGET_DIR)/$(LIBNAME_A): $(SOURCES:.cpp=.o)
- echo -n "Building: $@"
- if $(AR) $(ARFLAGS) $@ $(SOURCES:.cpp=.o) 1>.alog 2>.alog; \
- then echo " [ok]"; \
- else echo " [failed]"; \
- cat .alog; \
- fi
- echo -n "Adding common/additional dependencies..."
- if $(AR) -r $@ $(ADDITIONAL_DEPS) 1>.alog 2>.alog; \
- then echo " [ok]"; \
- else echo " [failed]"; \
- cat .alog; \
- fi
+ $(AR) $(ARFLAGS) $@ $(SOURCES:.cpp=.o)
+ $(AR) -r $@ $(ADDITIONAL_DEPS)
$(TARGET_DIR)/$(LIBNAME_SO): $(SOURCES:.cpp=.o)
- echo -n "Building: $@"
- if $(CXX) $(CXXFLAGS) $(SLLDFLAGS) -o $@ -Wl,-soname,$(LIBNAME_SONAME) $(SOURCES:.cpp=.o) $(ADDITIONAL_DEPS) 2>.slog; \
- then echo " [ok]"; \
- ln -s $(LIBNAME_SO) $(TARGET_DIR)/$(LIBNAME_SO_LN); \
- cat .slog; \
- else echo " [failed]"; \
- cat .slog; \
- fi
+ $(CXX) $(CXXFLAGS) $(SLLDFLAGS) -o $@ -Wl,-soname,$(LIBNAME_SONAME) $(SOURCES:.cpp=.o) $(ADDITIONAL_DEPS)
alib: $(TARGET_DIR)/$(LIBNAME_A)
diff -Naur KNI_3.9.2.orig/src/common/Makefile KNI_3.9.2/src/common/Makefile
--- KNI_3.9.2.orig/src/common/Makefile 2013-08-25 10:10:07.360358023 +0200
+++ KNI_3.9.2/src/common/Makefile 2013-08-25 10:11:41.347932392 +0200
@@ -37,23 +37,12 @@
.SUFFIXES: .cpp.o
.cpp.o:
- echo -n "Compiling: $@"
- if $(CXX) $(CXXFLAGS) -I$(INCLUDE_DIR) -c $< 2>.clog; \
- then echo " [ok]"; \
- cat .clog; \
- else echo " [failed]"; \
- cat .clog; \
- fi
+ $(CXX) $(CXXFLAGS) -I$(INCLUDE_DIR) -c $<
all: $(TARGETS)
$(TARGET_DIR)/$(LIBNAME_A): $(SOURCES:.cpp=.o)
- echo -n "Building: $@"
- if $(AR) $(ARFLAGS) $@ $(SOURCES:.cpp=.o) 1>.alog 2>.alog; \
- then echo " [ok]"; \
- else echo " [failed]"; \
- cat .alog; \
- fi
+ $(AR) $(ARFLAGS) $@ $(SOURCES:.cpp=.o)
alib: $(TARGET_DIR)/$(LIBNAME_A)
diff -Naur KNI_3.9.2.orig/src/InvKin/Makefile KNI_3.9.2/src/InvKin/Makefile
--- KNI_3.9.2.orig/src/InvKin/Makefile 2013-08-25 10:10:07.360358023 +0200
+++ KNI_3.9.2/src/InvKin/Makefile 2013-08-26 06:54:35.950411253 +0200
@@ -41,44 +41,19 @@
SLLDFLAGS=-shared -L$(TARGET_DIR) -lKNIBase3
-.SILENT:
-
.SUFFIXES: .cpp.o
.cpp.o:
- echo -n "Compiling: $@"
- if $(CXX) $(CXXFLAGS) -I$(INCLUDE_DIR) -c $< 2>.clog; \
- then echo " [ok]"; \
- cat .clog; \
- else echo " [failed]"; \
- cat .clog; \
- fi
+ $(CXX) $(CXXFLAGS) -I$(INCLUDE_DIR) -c $<
all: $(TARGETS)
$(TARGET_DIR)/$(LIBNAME_A): $(SOURCES:.cpp=.o)
- echo -n "Building: $@"
- if $(AR) $(ARFLAGS) $@ $(SOURCES:.cpp=.o) 1>.alog 2>.alog; \
- then echo " [ok]"; \
- else echo " [failed]"; \
- cat .alog; \
- fi
- echo -n "Adding common/additional dependencies..."
- if $(AR) -r $@ $(ADDITIONAL_DEPS) 1>.alog 2>.alog; \
- then echo " [ok]"; \
- else echo " [failed]"; \
- cat .alog; \
- fi
+ $(AR) $(ARFLAGS) $@ $(SOURCES:.cpp=.o)
+ $(AR) -r $@ $(ADDITIONAL_DEPS)
$(TARGET_DIR)/$(LIBNAME_SO): $(SOURCES:.cpp=.o)
- echo -n "Building: $@"
- if $(CXX) $(CXXFLAGS) $(SLLDFLAGS) -o $@ -Wl,-soname,$(LIBNAME_SONAME) $(SOURCES:.cpp=.o) $(ADDITIONAL_DEPS) 2>.slog; \
- then echo " [ok]"; \
- ln -s $(LIBNAME_SO) $(TARGET_DIR)/$(LIBNAME_SO_LN); \
- cat .slog; \
- else echo " [failed]"; \
- cat .slog; \
- fi
+ $(CXX) $(CXXFLAGS) $(SLLDFLAGS) -o $@ -Wl,-soname,$(LIBNAME_SONAME) $(SOURCES:.cpp=.o) $(ADDITIONAL_DEPS)
alib: $(TARGET_DIR)/$(LIBNAME_A)
diff -Naur KNI_3.9.2.orig/src/LM/Makefile KNI_3.9.2/src/LM/Makefile
--- KNI_3.9.2.orig/src/LM/Makefile 2013-08-25 10:10:07.360358023 +0200
+++ KNI_3.9.2/src/LM/Makefile 2013-08-26 06:55:51.692668775 +0200
@@ -45,39 +45,16 @@
.SUFFIXES: .cpp.o
.cpp.o:
- echo -n "Compiling: $@"
- if $(CXX) $(CXXFLAGS) -I$(INCLUDE_DIR) -c $< 2>.clog; \
- then echo " [ok]"; \
- cat .clog; \
- else echo " [failed]"; \
- cat .clog; \
- fi
+ $(CXX) $(CXXFLAGS) -I$(INCLUDE_DIR) -c $<
all: $(TARGETS)
$(TARGET_DIR)/$(LIBNAME_A): $(SOURCES:.cpp=.o)
- echo -n "Building: $@"
- if $(AR) $(ARFLAGS) $@ $(SOURCES:.cpp=.o) 1>.alog 2>.alog; \
- then echo " [ok]"; \
- else echo " [failed]"; \
- cat .alog; \
- fi
- echo -n "Adding common/additional dependencies..."
- if $(AR) -r $@ $(ADDITIONAL_DEPS) 1>.alog 2>.alog; \
- then echo " [ok]"; \
- else echo " [failed]"; \
- cat .alog; \
- fi
+ $(AR) $(ARFLAGS) $@ $(SOURCES:.cpp=.o)
+ $(AR) -r $@ $(ADDITIONAL_DEPS)
$(TARGET_DIR)/$(LIBNAME_SO): $(SOURCES:.cpp=.o)
- echo -n "Building: $@"
- if $(CXX) $(CXXFLAGS) $(SLLDFLAGS) -o $@ -Wl,-soname,$(LIBNAME_SONAME) $(SOURCES:.cpp=.o) $(ADDITIONAL_DEPS) 2>.slog; \
- then echo " [ok]"; \
- ln -s $(LIBNAME_SO) $(TARGET_DIR)/$(LIBNAME_SO_LN); \
- cat .slog; \
- else echo " [failed]"; \
- cat .slog; \
- fi
+ $(CXX) $(CXXFLAGS) $(SLLDFLAGS) -o $@ -Wl,-soname,$(LIBNAME_SONAME) $(SOURCES:.cpp=.o) $(ADDITIONAL_DEPS)
alib: $(TARGET_DIR)/$(LIBNAME_A)

View File

@ -1,9 +1,8 @@
Name: libkni3
Version: 3.9.2
Release: 12%{?dist}
Release: 42%{?dist}
Summary: C++ KNI library v3 for the Katana 300 robot arm
Group: System Environment/Libraries
License: GPLv2+
URL: http://www.neuronics.ch/cms_de/web/index.php?id=386
Source0: http://www.neuronics.ch/cms_de/mediabase/KNI_3.9.2.tar.gz
@ -11,11 +10,17 @@ Patch0: kni-3.9.2-gcc43.patch
Patch1: kni-3.9.2-sofixes.patch
Patch2: kni-3.9.2-ctor.patch
Patch3: kni-3.9.2-noexit.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch4: kni-3.9.2-gcc47.patch
# Make makefiles verbose
Patch5: kni-3.9.2-verbose.patch
Patch6: kni-3.9.2-format-security.patch
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
BuildRequires: gcc, gcc-c++
BuildRequires: doxygen, graphviz
%if 0%{?fedora} >= 9
BuildRequires: texlive-utils
%if 0%{?fedora} >= 18
BuildRequires: texlive-collection-latexrecommended
%else
BuildRequires: tetex
%endif
@ -33,7 +38,6 @@ newer robots use libkni (version 4 and above).
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
@ -44,7 +48,6 @@ developing applications that use %{name}.
%package static
Summary: Static libraries for %{name}
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
@ -54,14 +57,13 @@ compile static binaries using %{name}.
%package doc
Summary: Documentation for %{name}
Group: Documentation
BuildArch: noarch
%description doc
This package contains the documentation for developing with %{name}.
%package examples
Summary: Example applications for %{name}
Group: Applications/System
Requires: %{name} = %{version}-%{release}
%description examples
@ -73,10 +75,12 @@ This package contains demo applications for %{name}.
%patch1 -p1 -b .sofixes
%patch2 -p1 -b .ctor
%patch3 -p1 -b .noexit
%patch4 -p1 -b .gcc47
%patch5 -p1
%patch6 -p1 -b .format
%build
make CFLAGS="%{optflags}"
make CXXFLAGS="%{optflags} -fPIC"
make doc
echo "prefix=%{prefix}
exec_prefix=%{prefix}
@ -111,26 +115,22 @@ install -p -m 0644 configfiles300/*.cfg %{buildroot}%{_sysconfdir}/kni3/hd300
install -p -m 0644 configfiles400/*.cfg %{buildroot}%{_sysconfdir}/kni3/hd400
mkdir -p %{buildroot}%{_includedir}/kni3
cp -a include/* %{buildroot}%{_includedir}/kni3
mkdir -p %{buildroot}%{_docdir}/%{name}-doc-%{version}
cp -a doc/html %{buildroot}%{_docdir}/%{name}-doc-%{version}
install -p -m 0644 doc/*.pdf %{buildroot}%{_docdir}/%{name}-doc-%{version}
mkdir -p %{buildroot}%{_pkgdocdir}
cp -a doc/html %{buildroot}%{_pkgdocdir}
install -p -m 0644 doc/*.pdf %{buildroot}%{_pkgdocdir}
find %{buildroot} -name '.svn' | xargs rm -rf
mkdir -p %{buildroot}%{_libdir}/pkgconfig
install -p -m 0644 libkni3.pc %{buildroot}%{_libdir}/pkgconfig
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%files
%defattr(-,root,root,-)
%doc LICENSE.txt readme.txt AUTHORS.txt
%exclude %{_pkgdocdir}/html
%exclude %{_pkgdocdir}/*.pdf
%{_libdir}/*.so.*
%dir %{_sysconfdir}/kni3
%dir %{_sysconfdir}/kni3/hd300
@ -138,25 +138,120 @@ rm -rf %{buildroot}
%config(noreplace)%{_sysconfdir}/kni3/*/*.cfg
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%files static
%defattr(-,root,root,-)
%{_libdir}/*.a
%files doc
%defattr(-, root, root, 0755)
%{_docdir}/%{name}-doc-%{version}
%dir %{_pkgdocdir}
%{_pkgdocdir}/html
%{_pkgdocdir}/*.pdf
%files examples
%defattr(-, root, root, 0755)
%{_bindir}/kni_*
%changelog
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.2-42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.2-41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.2-40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Mar 07 2018 Tim Niemueller <tim@niemueller.de> - 3.9.2-39
- BR gcc and gcc-c++
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.2-38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.2-37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.2-36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.2-35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 3.9.2-34
- Rebuilt for Boost 1.63
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.2-33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 3.9.2-32
- Rebuilt for Boost 1.60
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 3.9.2-31
- Rebuilt for Boost 1.59
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.2-30
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 3.9.2-29
- rebuild for Boost 1.58
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.2-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.9.2-27
- Rebuilt for GCC 5 C++11 ABI change
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 3.9.2-26
- Rebuild for boost 1.57.0
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.2-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Thu Jul 31 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 3.9.2-24
- Fix FTBFS with -Werror=format-security (#1037167, #1106032)
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.2-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 3.9.2-22
- Rebuild for boost 1.55.0
* Mon Aug 26 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 3.9.2-21
- Address F20FTBFS (RHBZ#991895), F19FTBFS (RHBZ#914134):
- Package did not acknowledge RPM_OPT_FLAGS.
- Fix link order.
- BR: texlive-collection-latexrecommended
- Make Makefiles verbose (Add libkni3-3.9.2-verbose.patch).
- Reflect docdir changes (RHBZ#993829).
- Fold-in *doc package's contents into %%{_pkgdocdir}.
- Make *doc-package noarch.
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.2-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 3.9.2-19
- Rebuild for boost 1.54.0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.2-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.2-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Mar 8 2012 Tom Callaway <spot@fedoraproject.org> - 3.9.2-16
- fix build with gcc 4.7
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.2-15
- Rebuilt for c++ ABI breakage
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.2-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.2-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Sep 14 2009 Tim Niemueller <tim@niemueller.de> - 3.9.2-12
- doc package contains doc dir, not docs