Accepting request 305855 from home:awissu

OBS-URL: https://build.opensuse.org/request/show/305855
OBS-URL: https://build.opensuse.org/package/show/network:utilities/libtins?expand=0&rev=1
This commit is contained in:
2015-05-08 17:41:13 +00:00
committed by Git OBS Bridge
commit 2360245efe
6 changed files with 171 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu May 7 14:28:12 UTC 2015 - avvissu@yandex.ru
- Initial release
+87
View File
@@ -0,0 +1,87 @@
#
# spec file for package libtins
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define soname 3
Name: libtins
Version: 3.2
Release: 0
Summary: C++ library for manipulating raw network packets
License: BSD-2-Clause
Group: Productivity/Networking/Other
Url: http://libtins.github.io/
Source0: https://github.com/mfontanini/libtins/archive/v3.2.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM build.patch avvissu@yandex.ru-- Place the package file in LIB_INSTALL_DIR/cmake
Patch0: libtins-3.2_build.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libpcap-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(libssl)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The library's main purpose is to provide the C++ developer an easy,
efficient, platform and endianess-independent way to create tools which
need to send, receive and manipulate specially crafted packets.
%package -n %{name}%{soname}
Summary: C++ library for manipulating raw network packets
Group: System/Libraries
%description -n %{name}%{soname}
The library's main purpose is to provide the C++ developer an easy,
efficient, platform and endianess-independent way to create tools which
need to send, receive and manipulate specially crafted packets.
%package devel
Summary: Development files for tins
Group: Development/Libraries/C and C++
Requires: %{name}%{soname} = %{version}
%description devel
This package contains header files, and libraries needed to develop
application that use libtins.
%prep
%setup -q
%patch0 -p1
%build
%cmake -DLIBTINS_ENABLE_CXX11=1
%install
%make_install -C build
%post -n %{name}%{soname} -p /sbin/ldconfig
%postun -n %{name}%{soname} -p /sbin/ldconfig
%files -n %{name}%{soname}
%defattr(-,root,root)
%doc AUTHORS CHANGES LICENSE README*
%{_libdir}/%{name}.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/tins
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/%{name}.so
%{_libdir}/cmake/tins
%changelog
+24
View File
@@ -0,0 +1,24 @@
*.changes merge=merge-changes
*.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
*.tar 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
+4
View File
@@ -0,0 +1,4 @@
*.obscpio
*.osc
_build.*
.pbuild
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7f11c8b6c33574fcc48a5310557320d7eff7216d28e6f7062ea3e4745f2ce4fc
size 276926
+48
View File
@@ -0,0 +1,48 @@
diff -U 3 -H -d -r -N -- libtins-3.2.orig/CMakeLists.txt libtins-3.2/CMakeLists.txt
--- libtins-3.2.orig/CMakeLists.txt 2015-03-21 08:12:23.000000000 +0300
+++ libtins-3.2/CMakeLists.txt 2015-05-07 17:06:48.584495386 +0300
@@ -107,7 +107,7 @@
)
# Support for pkg-config
-set(CMAKE_INSTALL_LIBDIR lib)
+set(CMAKE_INSTALL_LIBDIR lib${LIB_SUFFIX})
set(pkgconfig_prefix ${CMAKE_INSTALL_PREFIX})
set(pkgconfig_exec_prefix ${CMAKE_INSTALL_PREFIX})
set(pkgconfig_libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
@@ -153,13 +153,13 @@
FILES
"${PROJECT_BINARY_DIR}/libtinsConfig.cmake"
"${PROJECT_BINARY_DIR}/libtinsConfigVersion.cmake"
- DESTINATION CMake
+ DESTINATION lib${LIB_SUFFIX}/cmake/tins
COMPONENT dev
)
# Install the export set for use with the install-tree
INSTALL(
EXPORT libtinsTargets
- DESTINATION CMake
+ DESTINATION lib${LIB_SUFFIX}/cmake/tins
COMPONENT dev
)
diff -U 3 -H -d -r -N -- libtins-3.2.orig/src/CMakeLists.txt libtins-3.2/src/CMakeLists.txt
--- libtins-3.2.orig/src/CMakeLists.txt 2015-03-21 08:12:23.000000000 +0300
+++ libtins-3.2/src/CMakeLists.txt 2015-05-07 16:51:12.694959235 +0300
@@ -63,13 +63,13 @@
TARGET_LINK_LIBRARIES(tins ${PCAP_LIBRARY} ${OPENSSL_LIBRARIES} ${LIBTINS_OS_LIBS})
SET_TARGET_PROPERTIES(tins PROPERTIES OUTPUT_NAME tins )
-SET_TARGET_PROPERTIES(tins PROPERTIES VERSION ${LIBTINS_VERSION} SOVERSION ${LIBTINS_VERSION} )
+SET_TARGET_PROPERTIES(tins PROPERTIES VERSION ${LIBTINS_VERSION} SOVERSION ${LIBTINS_VERSION_MAJOR} )
# Install instructions for this target
INSTALL(
TARGETS tins
EXPORT libtinsTargets
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib
+ LIBRARY DESTINATION lib${LIB_SUFFIX}
+ ARCHIVE DESTINATION lib${LIB_SUFFIX}
COMPONENT dev
)