urjtag/urjtag.spec

114 lines
3.2 KiB
RPMSpec

Name: urjtag
Version: 2021.03
Release: 1mamba
Summary: A software which enables working with JTAG-aware hardware devices and boards through JTAG adapter
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://urjtag.org/
Source: https://sourceforge.net/projects/urjtag/files/urjtag/%{version}/urjtag-%{version}.tar.xz
#Patch0: jtag-0.6-cvs-20051228-gcc4.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libftdi1-devel
BuildRequires: libpython3-devel
BuildRequires: libreadline-devel
BuildRequires: libusb-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
#BuildRequires: openwince-devel
Obsoletes: jtag < 2021.03
Provides: jtag
%description
JTAG Tools is a software package which enables working with JTAG-aware (IEEE 1149.1) hardware devices (parts) and boards through JTAG adapter.
This package has open and modular architecture with ability to write miscellaneous extensions (like board testers, flash memory programmers, and so on).
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n python-%{name}
Group: System/Libraries/Python
Summary: Python bindings for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n python-%{name}
This package contains the Python bindings to %{name}.
%debug_package
%prep
%setup -q
%build
%configure \
PYTHON=%{__python3}
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/jtag
%{_bindir}/bsdl2jtag
%dir %{_datadir}/urjtag
%{_datadir}/urjtag/*
%{_mandir}/man?/*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/liburjtag.so.*
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/urjtag
%{_includedir}/urjtag/*.h
%{_libdir}/liburjtag.a
%{_libdir}/liburjtag.so
%{_libdir}/pkgconfig/urjtag.pc
%files -n python-%{name}
%dir %{python3_sitearch}/urjtag-*-py*-*.egg
%{python3_sitearch}/urjtag-*-py*-*.egg/*
%changelog
* Sat Nov 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2021.03-1mamba
- update to 2021.03
* Wed Jul 31 2013 Automatic Build System <autodist@mambasoft.it> 0.10-3mamba
- automatic rebuild by autodist
* Sun Jul 19 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10-2mamba
- provide jtag, not urjtag for obsoletion
* Mon Jul 13 2009 Tiziana Ferro <tiziana.ferro@email.it> 0.10-1mamba
- update to 0.10
- removed old patch
- added some buildrequirements
* Wed Aug 23 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.1-1qilnx
- package created by autospec