forked from pool/openocd
Accepting request 225858 from home:matwey:branches:hardware
Hi, .spec has been cleaned to fulfill factory robot requirements OBS-URL: https://build.opensuse.org/request/show/225858 OBS-URL: https://build.opensuse.org/package/show/hardware/openocd?expand=0&rev=2
This commit is contained in:
parent
d66fb7ab9c
commit
ec338d7715
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 13 16:17:40 UTC 2014 - matwey.kornilov@gmail.com
|
||||||
|
|
||||||
|
- add copyright handler to spec file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 27 08:49:15 UTC 2014 - matwey.kornilov@gmail.com
|
Mon Jan 27 08:49:15 UTC 2014 - matwey.kornilov@gmail.com
|
||||||
|
|
||||||
|
55
openocd.spec
55
openocd.spec
@ -1,24 +1,45 @@
|
|||||||
|
#
|
||||||
|
# spec file for package openocd
|
||||||
|
#
|
||||||
|
# Copyright (c) 2014 SUSE LINUX Products 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: openocd
|
Name: openocd
|
||||||
Version: 0.7.99+git20140206
|
Version: 0.7.99+git20140206
|
||||||
Release: 0
|
Release: 0
|
||||||
License: GPL-2.0
|
|
||||||
Summary: Debugging, in-system programming and boundary-scan testing for embedded devices
|
Summary: Debugging, in-system programming and boundary-scan testing for embedded devices
|
||||||
Url: http://openocd.sourceforge.net/
|
License: GPL-2.0
|
||||||
Group: Development/Tools/Debuggers
|
Group: Development/Tools/Debuggers
|
||||||
|
Url: http://openocd.sourceforge.net/
|
||||||
Source0: http://downloads.sourceforge.net/project/openocd/openocd/%{version}/%{name}-%{version}.tar.bz2
|
Source0: http://downloads.sourceforge.net/project/openocd/openocd/%{version}/%{name}-%{version}.tar.bz2
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: autoconf >= 2.64
|
BuildRequires: autoconf >= 2.64
|
||||||
BuildRequires: libtool
|
BuildRequires: automake
|
||||||
BuildRequires: makeinfo
|
BuildRequires: fdupes
|
||||||
BuildRequires: jimtcl-devel
|
BuildRequires: jimtcl-devel
|
||||||
BuildRequires: pkg-config >= 0.23
|
|
||||||
BuildRequires: libftdi1-devel
|
BuildRequires: libftdi1-devel
|
||||||
BuildRequires: pkgconfig(libusb-1.0)
|
|
||||||
BuildRequires: libhidapi-devel
|
BuildRequires: libhidapi-devel
|
||||||
|
BuildRequires: libtool
|
||||||
BuildRequires: libudev-devel
|
BuildRequires: libudev-devel
|
||||||
|
BuildRequires: makeinfo
|
||||||
|
BuildRequires: pkg-config >= 0.23
|
||||||
|
BuildRequires: pkgconfig(libusb-1.0)
|
||||||
|
BuildRequires: pkgconfig(udev)
|
||||||
Requires(post): udev
|
Requires(post): udev
|
||||||
Requires(postun): udev
|
Requires(postun): udev
|
||||||
Requires: %{name}-data == %{version}-%{release}
|
Requires: %{name}-data == %{version}-%{release}
|
||||||
|
%define _udevdir %(pkg-config --variable udevdir udev)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Open On-Chip Debugger (OpenOCD) provides debugging, in-system programming
|
The Open On-Chip Debugger (OpenOCD) provides debugging, in-system programming
|
||||||
@ -86,19 +107,18 @@ make %{?_smp_mflags} V=1
|
|||||||
%make_install
|
%make_install
|
||||||
rm -f %{buildroot}%{_infodir}/dir
|
rm -f %{buildroot}%{_infodir}/dir
|
||||||
rm -f %{buildroot}%{_libdir}/libopenocd.*
|
rm -f %{buildroot}%{_libdir}/libopenocd.*
|
||||||
mkdir -p %buildroot/etc/udev/rules.d
|
rm -f %{buildroot}%{_datadir}/%{name}/contrib/openocd.udev
|
||||||
mv %{buildroot}%{_datadir}/%{name}/contrib/openocd.udev %buildroot/etc/udev/rules.d/99-openocd.rules
|
rm -rf %{buildroot}%{_datadir}/%{name}/contrib/libdcc
|
||||||
|
mkdir -p %{buildroot}%{_udevdir}/rules.d
|
||||||
|
cat contrib/openocd.udev | sed -e 's/GROUP="plugdev"/GROUP="users"/' > %{buildroot}%{_udevdir}/rules.d/99-openocd.rules
|
||||||
|
%fdupes %{buildroot}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
udevadm control --reload
|
udevadm control --reload
|
||||||
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
udevadm control --reload
|
udevadm control --reload
|
||||||
|
|
||||||
%post data
|
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
||||||
|
|
||||||
%preun data
|
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -106,13 +126,14 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%doc contrib/libdcc README AUTHORS ChangeLog
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%config /etc/udev/rules.d/99-openocd.rules
|
%{_mandir}/man1/*
|
||||||
|
%{_infodir}/%{name}.info*.gz
|
||||||
|
%{_udevdir}/rules.d/99-openocd.rules
|
||||||
|
|
||||||
%files data
|
%files data
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
%doc %{_mandir}/man1/*
|
|
||||||
%doc %{_infodir}/%{name}.info*.gz
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user