Accepting request 836054 from home:mcalabkova

- Initial packaging of v2.8 (jsc#SLE-15021)

OBS-URL: https://build.opensuse.org/request/show/836054
OBS-URL: https://build.opensuse.org/package/show/Base:System/accel-config?expand=0&rev=1
This commit is contained in:
Andreas Jaeger 2020-09-22 09:48:52 +00:00 committed by Git OBS Bridge
commit aebab9e939
5 changed files with 131 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

3
accel-config-v2.8.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c8aa8421179b71fb728806e5a621655fab24a862f9ce982f3119b92da416949f
size 101314

4
accel-config.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Sep 22 09:28:15 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Initial packaging of v2.8 (jsc#SLE-15021)

100
accel-config.spec Normal file
View File

@ -0,0 +1,100 @@
#
# spec file for package accel-config
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define pkg_libname libaccel-config1
Name: accel-config
Version: 2.8
Release: 0
Summary: Configure accelerator subsystem devices
License: GPL-2.0-only
URL: https://github.com/intel/idxd-config
Source: https://github.com/intel/idxd-config/archive/accel-config-v%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: binutils
BuildRequires: asciidoc
BuildRequires: xmlto
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libkmod)
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libudev)
BuildRequires: systemd
Requires: %{pkg_libname} = %{version}-%{release}
%description
Utility library for configuring the accelerator subsystem.
%package -n %{name}-devel
Summary: Development files for libaccfg
License: LGPL-2.0-only
Requires: %{pkg_libname} = %{version}-%{release}
%description -n %{name}-devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n %{pkg_libname}
Summary: Configuration library for accelerator subsystem devices
License: LGPL-2.0-only
%description -n %{pkg_libname}
Libraries for %{name}.
%prep
%setup -q -n idxd-config-accel-config-v%{version}
%build
echo %{version} > version
./autogen.sh
%configure
%make_build
%install
%make_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%post -n %{pkg_libname} -p /sbin/ldconfig
%postun -n %{pkg_libname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0
%{_bindir}/accel-config
%{_mandir}/man1/accel-config*
%dir %{_sysconfdir}/accel-config
%config %{_sysconfdir}/accel-config/accel-config.conf.sample
%files -n %{pkg_libname}
%defattr(-,root,root)
%doc README.md
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0
%{_libdir}/libaccel-config.so.*
%files -n %{name}-devel
%defattr(-,root,root)
%license Documentation/COPYING
%{_includedir}/accel-config/
%{_libdir}/libaccel-config.so
%{_libdir}/pkgconfig/libaccel-config.pc
%changelog