Accepting request 340806 from home:a_faerber:hardware
libjaylink is being factored out of openocd package. There is no tagged release yet. Prepare the package for early testing. OBS-URL: https://build.opensuse.org/request/show/340806 OBS-URL: https://build.opensuse.org/package/show/hardware/libjaylink?expand=0&rev=1
This commit is contained in:
commit
1f98a27bfb
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
5
libjaylink.changes
Normal file
5
libjaylink.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 25 02:02:04 UTC 2015 - afaerber@suse.de
|
||||
|
||||
- Initial
|
||||
|
96
libjaylink.spec
Normal file
96
libjaylink.spec
Normal file
@ -0,0 +1,96 @@
|
||||
#
|
||||
# spec file for package libjaylink
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
Name: libjaylink
|
||||
Version: 0.1.0
|
||||
Release: <RELEASE>.391fbc3
|
||||
Url: http://git.zapb.de/libjaylink.git
|
||||
Summary: USB interface library for J-Link
|
||||
License: GPL-2.0+
|
||||
Group: Development/Tools/Debuggers
|
||||
# git archive --format=tar --prefix=libjaylink master | xz --stdout > libjaylink.tar.xz
|
||||
Source: libjaylink.tar.xz
|
||||
BuildRequires: autoconf >= 2.69
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: pkgconfig(libusb-1.0)
|
||||
BuildRequires: pkgconfig(udev)
|
||||
BuildRequires: xz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires(post): udev
|
||||
Requires(postun): udev
|
||||
|
||||
%description
|
||||
Library for accessing Segger J-Link USB devices.
|
||||
|
||||
%package -n libjaylink0
|
||||
Summary: USB interface library for J-Link
|
||||
|
||||
%description -n libjaylink0
|
||||
Library for accessing Segger J-Link USB devices.
|
||||
|
||||
%package devel
|
||||
Summary: USB interface library for J-Link -- development files
|
||||
Requires: libjaylink0 = %{version}
|
||||
|
||||
%description devel
|
||||
Library for accessing Segger J-Link USB devices.
|
||||
|
||||
This sub-package contains development files.
|
||||
|
||||
%define _udevdir %(pkg-config --variable udevdir udev)
|
||||
|
||||
%prep
|
||||
%setup -q -n libjaylink
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
./configure \
|
||||
--prefix=%{_prefix} \
|
||||
--includedir=%{_includedir} \
|
||||
--libdir=%{_libdir} \
|
||||
--disable-static \
|
||||
CFLAGS="${RPM_OPT_FLAGS}"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make %{?_smp_mflags} install DESTDIR=%{buildroot}
|
||||
rm -f %{buildroot}%{_libdir}/libjaylink.la
|
||||
mkdir -p %{buildroot}%{_udevdir}/rules.d
|
||||
cat contrib/99-libjaylink.rules | sed -e 's/GROUP="plugdev"/GROUP="users"/' > %{buildroot}%{_udevdir}/rules.d/99-libjaylink.rules
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%udev_rules_update
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%udev_rules_update
|
||||
|
||||
%files -n libjaylink0
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%{_libdir}/libjaylink.so.0*
|
||||
%{_udevdir}/rules.d/99-libjaylink.rules
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/libjaylink/
|
||||
%{_libdir}/libjaylink.so
|
||||
%{_libdir}/pkgconfig/libjaylink.pc
|
||||
|
||||
%changelog
|
3
libjaylink.tar.xz
Normal file
3
libjaylink.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9a36e5ec17ab85145706f945ff6c276e2b08cace3629774917b1baa7bf36c2b8
|
||||
size 48120
|
Loading…
Reference in New Issue
Block a user