forked from pool/cpluff
Accepting request 689164 from multimedia:kodi
required by kodi.tv OBS-URL: https://build.opensuse.org/request/show/689164 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpluff?expand=0&rev=1
This commit is contained in:
+118
@@ -0,0 +1,118 @@
|
||||
#
|
||||
# spec file for package c-pluff
|
||||
#
|
||||
# Copyright (c) 2019 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 sover 0
|
||||
|
||||
Name: cpluff
|
||||
Version: 0.1.4.20190105T165320.c163d19
|
||||
Release: 0
|
||||
Summary: A plug-in framework for C
|
||||
License: MIT
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: https://github.com/jlehtine/c-pluff
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Patch0: cpluff.patch
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: pkgconfig(expat)
|
||||
BuildRequires: readline-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
C-Pluff is a plug-in framework for C programs. It has been strongly inspired by
|
||||
the Java plug-in framework in Eclipse. C-Pluff focuses on providing core
|
||||
services for plug-in interaction and plug-in management. It aims to be platform
|
||||
neutral and supports dynamic changes to plug-in configuration without stopping
|
||||
the whole application or framework.
|
||||
|
||||
%package -n lib%{name}%{sover}
|
||||
Summary: A plug-in framework for C
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n lib%{name}%{sover}
|
||||
C-Pluff is a plug-in framework for C programs.
|
||||
|
||||
%package -n lib%{name}-devel
|
||||
Summary: Development files for lib%{name}
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: lib%{name}%{sover} = %{version}
|
||||
%description -n lib%{name}-devel
|
||||
This package contains libraries and header files for
|
||||
developing applications that use lib%{name}.
|
||||
|
||||
%package -n lib%{name}xx%{sover}
|
||||
Summary: A plug-in framework for C++
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n lib%{name}xx%{sover}
|
||||
C-Pluff is a plug-in framework for C++ programs.
|
||||
|
||||
%package -n lib%{name}xx-devel
|
||||
Summary: Development files for lib%{name}xx
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: lib%{name}xx%{sover} = %{version}
|
||||
%description -n lib%{name}xx-devel
|
||||
This package contains libraries and header files for
|
||||
developing applications that use lib%{name}xx.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
%configure \
|
||||
--enable-cpluffxx \
|
||||
--disable-nls \
|
||||
--disable-static
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{buildroot} -name "*.la" -delete
|
||||
rm -rf %{buildroot}%{_datadir}/doc
|
||||
|
||||
%post -n lib%{name}%{sover} -p /sbin/ldconfig
|
||||
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
|
||||
%post -n lib%{name}xx%{sover} -p /sbin/ldconfig
|
||||
%postun -n lib%{name}xx%{sover} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc README.txt
|
||||
%{_bindir}/*
|
||||
|
||||
%files -n lib%{name}%{sover}
|
||||
%license COPYRIGHT.txt
|
||||
%{_libdir}/lib%{name}.so.%{sover}*
|
||||
|
||||
%files -n lib%{name}xx%{sover}
|
||||
%license COPYRIGHT.txt
|
||||
%{_libdir}/lib%{name}xx.so.%{sover}*
|
||||
|
||||
%files -n lib%{name}-devel
|
||||
%{_includedir}/cpluff.h
|
||||
%{_includedir}/cpluffdef.h
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_libdir}/pkgconfig/lib%{name}.pc
|
||||
|
||||
%files -n lib%{name}xx-devel
|
||||
%{_includedir}/cpluffxx
|
||||
%{_includedir}/cpluffxx.h
|
||||
%{_libdir}/lib%{name}xx.so
|
||||
%{_libdir}/pkgconfig/lib%{name}xx.pc
|
||||
|
||||
%changelog
|
||||
@@ -0,0 +1,15 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/jlehtine/c-pluff.git</param>
|
||||
<param name="revision">c163d196ec7a6c24d00a87d15b4781fc0dcae025</param>
|
||||
<param name="filename">cpluff</param>
|
||||
<param name='versionformat'>%ci.%h</param>
|
||||
<param name="versionprefix">0.1.4</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled"/>
|
||||
</services>
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
.osc
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a63c1f57e0254b25cf57c8ffdede9c6530869eee78ec266d92209691182e15e6
|
||||
size 160188
|
||||
@@ -0,0 +1,89 @@
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -9,8 +9,8 @@ ACLOCAL_AMFLAGS = -I m4
|
||||
if CPLUFFXX
|
||||
DIR_LIBCPLUFFXX = libcpluffxx
|
||||
endif
|
||||
-SUBDIRS = libcpluff $(DIR_LIBCPLUFFXX) loader console po test docsrc doc
|
||||
-DIST_SUBDIRS = libcpluff libcpluffxx loader console po test docsrc doc examples
|
||||
+SUBDIRS = libcpluff $(DIR_LIBCPLUFFXX) loader console
|
||||
+DIST_SUBDIRS = libcpluff libcpluffxx loader console
|
||||
DOC_SUBDIRS = libcpluff $(DIR_LIBCPLUFFXX)
|
||||
|
||||
EXTRA_DIST = COPYRIGHT.txt INSTALL.txt ChangeLog.txt autogen.sh plugin.xsd
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -32,6 +32,8 @@ AC_CONFIG_SRCDIR([libcpluff/cpluff.h])
|
||||
AC_CONFIG_AUX_DIR([auxliary])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
+PKG_PROG_PKG_CONFIG
|
||||
+PKG_INSTALLDIR
|
||||
|
||||
# Version information
|
||||
# -------------------
|
||||
@@ -386,11 +388,13 @@ AC_SUBST(CPLUFF_LOADER)
|
||||
# Output Makefiles
|
||||
# ----------------
|
||||
AC_CONFIG_FILES([Makefile
|
||||
+libcpluff/libcpluff.pc
|
||||
libcpluff/Makefile
|
||||
libcpluff/cpluffdef.h
|
||||
libcpluff/docsrc/Makefile
|
||||
libcpluff/docsrc/Doxyfile-ref
|
||||
libcpluff/docsrc/Doxyfile-impl
|
||||
+libcpluffxx/libcpluffxx.pc
|
||||
libcpluffxx/Makefile
|
||||
libcpluffxx/cpluffxx/Makefile
|
||||
libcpluffxx/cpluffxx/sharedptr.h
|
||||
--- /dev/null
|
||||
+++ b/libcpluff/libcpluff.pc.in
|
||||
@@ -0,0 +1,11 @@
|
||||
+prefix=@prefix@
|
||||
+exec_prefix=${prefix}
|
||||
+includedir=@includedir@
|
||||
+libdir=@libdir@
|
||||
+
|
||||
+Name: libcpluff
|
||||
+Description: C-Pluff, a plug-in framework for C
|
||||
+URL: https://github.com/jlehtine/c-pluff
|
||||
+Version: @PACKAGE_VERSION@
|
||||
+Cflags: -I${includedir}
|
||||
+Libs: -L${libdir} -lcpluff
|
||||
--- /dev/null
|
||||
+++ b/libcpluffxx/libcpluffxx.pc.in
|
||||
@@ -0,0 +1,12 @@
|
||||
+prefix=@prefix@
|
||||
+exec_prefix=${prefix}
|
||||
+includedir=@includedir@
|
||||
+libdir=@libdir@
|
||||
+
|
||||
+Name: libcpluffxx
|
||||
+Description: C-Pluff, a plug-in framework for C++
|
||||
+URL: https://github.com/jlehtine/c-pluff
|
||||
+Version: @PACKAGE_VERSION@
|
||||
+Cflags: -I${includedir}
|
||||
+Libs: -L${libdir} -lcpluffxx
|
||||
+Requires.private: libcpluff
|
||||
--- a/libcpluff/Makefile.am
|
||||
+++ b/libcpluff/Makefile.am
|
||||
@@ -27,6 +27,8 @@ libcpluff_la_LDFLAGS = -no-undefined -ve
|
||||
|
||||
include_HEADERS = cpluff.h cpluffdef.h
|
||||
|
||||
+pkgconfig_DATA = libcpluff.pc
|
||||
+
|
||||
doc: refdoc
|
||||
|
||||
refdoc: doc/reference/c-api/index.html
|
||||
--- a/libcpluffxx/Makefile.am
|
||||
+++ b/libcpluffxx/Makefile.am
|
||||
@@ -26,6 +26,8 @@ libcpluffxx_la_LDFLAGS = -no-undefined -
|
||||
|
||||
include_HEADERS = cpluffxx.h
|
||||
|
||||
+pkgconfig_DATA = libcpluffxx.pc
|
||||
+
|
||||
doc: refdoc
|
||||
|
||||
refdoc: doc/reference/cxx-api/index.html
|
||||
Reference in New Issue
Block a user