Jiri Kastner 89d36b9
%if 0%{?centos} > 6 || 0%{?rhel} > 6 || 0%{?fedora}
Jiri Kastner 89d36b9
%global with_python3 1
Jiri Kastner 89d36b9
%else
Jiri Kastner 89d36b9
%global without_python3 1
Jiri Kastner 89d36b9
%endif
Jiri Kastner 89d36b9
5845dfa
Name:           urjtag
1097fc2
Version:        2021.03
82c1022
Release:        4%{?dist}
5845dfa
Summary:        A tool for communicating over JTAG with flash chips and CPUs
5845dfa
5845dfa
License:        GPLv2+
5845dfa
URL:            http://urjtag.org
6c52884
Source0:        https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
Jiri Kastner 4605497
Patch0:         %{name}-fixarm.patch
Jiri Kastner 89d36b9
Jiri Kastner 89d36b9
%global py3_prefix python3
Jiri Kastner 89d36b9
6db5508
BuildRequires: make
Igor Gnatenko d6af331
BuildRequires:  gcc
5845dfa
BuildRequires:  libftdi-devel
5845dfa
BuildRequires:  swig
Jiri Kastner 89d36b9
%if 0%{?rhel} || 0%{?centos}
Jiri Kastner 89d36b9
BuildRequires: %{py3_prefix}4-devel
Jiri Kastner 89d36b9
%else
Jiri Kastner 89d36b9
BuildRequires: %{py3_prefix}-devel
Jiri Kastner 89d36b9
%endif
Jiri Kastner e17d887
BuildRequires:  bison
Jiri Kastner e17d887
BuildRequires:  flex
5845dfa
5845dfa
%description
5845dfa
UrJTAG aims to create an enhanced, modern tool for communicating
5845dfa
over JTAG with flash chips, CPUs, and many more.
5845dfa
5845dfa
%package        devel
5845dfa
Summary:        Development files for %{name}
5845dfa
Requires:       %{name} = %{version}-%{release}
5845dfa
5845dfa
5845dfa
%description    devel
5845dfa
The %{name}-devel package contains libraries and header files for
5845dfa
developing applications that use %{name}.
5845dfa
Jiri Kastner 89d36b9
%package        -n %{py3_prefix}-%{name}
Jiri Kastner 89d36b9
%if 0%{?rhel} || 0%{?centos}
Jiri Kastner 89d36b9
Provides:       python3-%{name}
Jiri Kastner 89d36b9
%else
Jiri Kastner 89d36b9
%{?python_provide:%python_provide %{py3_prefix}-%{name}}
Jiri Kastner 89d36b9
%endif
Jiri Kastner 89d36b9
Summary:        Python bindings for %{name}
Jiri Kastner 89d36b9
Requires:       %{name} = %{version}-%{release}
5845dfa
Jiri Kastner 89d36b9
%description    -n %{py3_prefix}-%{name}
Jiri Kastner 89d36b9
Python bindings and examples for %{name}.
5845dfa
5845dfa
%prep
Jiri Kastner 89d36b9
%setup -q
Jiri Kastner 4605497
%patch0 -p2 -b .armfix
5845dfa
5845dfa
%build
Jiri Kastner 89d36b9
%configure --enable-jedec-exp --enable-stapl --enable-bsdl --enable-svf --disable-static --enable-shared
5845dfa
# V=1: verbose build, disables AM_SILENT_RULES
Jiri Kastner 89d36b9
%{__make} %{?_smp_mflags} V=1
Jiri Kastner 89d36b9
pushd bindings/python/
Jiri Kastner 89d36b9
%py3_build
5845dfa
5845dfa
%install
Jiri Kastner 89d36b9
# cd urjtag
5845dfa
make install DESTDIR=%{buildroot}
5845dfa
rm -f %{buildroot}%{_libdir}/*.la
5845dfa
rm -f %{buildroot}%{_libdir}/*.a
5845dfa
%find_lang %{name}
Jiri Kastner 89d36b9
pushd bindings/python/
Jiri Kastner 89d36b9
%py3_install
5845dfa
2b05789
%ldconfig_scriptlets
5845dfa
 
Jiri Kastner 89d36b9
%files -f %{name}.lang
Jiri Kastner 89d36b9
%doc README NEWS ChangeLog COPYING AUTHORS
Jiri Kastner 89d36b9
%doc doc/howto_add_support_for_more_flash.txt
Jiri Kastner 89d36b9
%doc doc/README.ejtag doc/README.pld doc/README.stapl
Jiri Kastner 89d36b9
%doc doc/UrJTAG.txt
5845dfa
%{_bindir}/jtag
5845dfa
%{_bindir}/bsdl2jtag
5845dfa
%{_libdir}/liburjtag.so.*
5845dfa
%dir %{_datadir}/urjtag/
5845dfa
%{_datadir}/urjtag/*
5845dfa
%{_mandir}/man1/jtag.1*
5845dfa
%{_mandir}/man1/bsdl2jtag.1*
5845dfa
5845dfa
%files devel
5845dfa
%dir %{_includedir}/urjtag
5845dfa
%{_includedir}/urjtag/*.h
5845dfa
%{_libdir}/liburjtag.so
5845dfa
%{_libdir}/pkgconfig/urjtag.pc
5845dfa
Jiri Kastner 89d36b9
%files -n %{py3_prefix}-%{name}
Jiri Kastner 89d36b9
%{python3_sitearch}/urjtag*
Jiri Kastner 89d36b9
%doc doc/urjtag-python.txt 
Jiri Kastner 89d36b9
%doc bindings/python/t_urjtag_chain.py
Jiri Kastner 89d36b9
%doc bindings/python/t_srst.py
5845dfa
5845dfa
%changelog
82c1022
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2021.03-4
82c1022
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
82c1022
3f750a0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2021.03-3
3f750a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
3f750a0
c558867
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2021.03-2
c558867
- Rebuilt for Python 3.10
c558867
1097fc2
* Sat Apr 10 2021 Jiri Kastner <jkastner@fedoraproject.org> - 2021.03-1
1097fc2
- update to 2021.03
1097fc2
aa8970a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2019.12-6
aa8970a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
aa8970a
5a82dcd
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.12-5
5a82dcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5a82dcd
da1da58
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2019.12-4
da1da58
- Rebuilt for Python 3.9
da1da58
130aacc
* Thu Feb 13 2020 Dan Horák <dan[at]danny.cz> - 2019.12-3
130aacc
- fix FTBFS with gcc10 (#1793499)
130aacc
00ee56c
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.12-2
00ee56c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
00ee56c
a24fc9e
* Sat Dec 21 2019 Dan Horák <dan[at]danny.cz> - 2019.12-1
a24fc9e
- update to 2019.12
a24fc9e
0945222
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2018.09-2
0945222
- Rebuilt for Python 3.8
0945222
6c52884
* Wed Jul 31 2019 Dan Horák <dan[at]danny.cz> - 2018.09-1
6c52884
- update to 2018.09
6c52884
071a55b
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.06-6
071a55b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
071a55b
f8e7490
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.06-5
f8e7490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f8e7490
5df9714
* Mon Nov 12 2018 Miro Hrončok <mhroncok@redhat.com> - 2018.06-4
5df9714
- Remove python2 subpackage (#1628187)
5df9714
b650266
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2018.06-3
b650266
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b650266
d6fd095
* Fri Jun 29 2018 Miro Hrončok <mhroncok@redhat.com> - 2018.06-2
d6fd095
- Rebuilt for Python 3.7
d6fd095
Jiri Kastner 83916d4
* Mon Jun 25 2018 Jiri Kastner <jkastner@redhat.com> - 2018.06-1
Jiri Kastner 83916d4
- update to 2018.06
Jiri Kastner 83916d4
f24ad74
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2017.10-3
f24ad74
- Rebuilt for Python 3.7
f24ad74
Jiri Kastner 4605497
* Thu Mar 22 2018 Jiri Kastner <jkastner@redhat.com> - 2017.10-2
Jiri Kastner 4605497
- revert back armfix patch
Jiri Kastner 4605497
Jiri Kastner 89d36b9
* Thu Mar 22 2018 Jiri Kastner <jkastner@redhat.com> - 2017.10-1
Jiri Kastner 89d36b9
- update to release 2017.10
Jiri Kastner 89d36b9
- enabled experimental jedec flash detection
Jiri Kastner 89d36b9
- added python3
Jiri Kastner 89d36b9
Jiri Kastner e17d887
* Thu Mar 01 2018 Jiri Kastner <jkastner@redhat.com> - 0.10-22.20171020git49a4f5b5
Jiri Kastner e17d887
- added bison and flex for bsdl2jtag command
Jiri Kastner e17d887
- updated to latest master
Jiri Kastner e17d887
4022b90
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.10-21.20111215gite1a4227
4022b90
- Update Python 2 dependency declarations to new packaging standards
4022b90
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
4022b90
92588e7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-20.20111215gite1a4227
92588e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
92588e7
b75ec83
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.10-19.20111215gite1a4227
b75ec83
- Add Provides for the old name without %%_isa
b75ec83
db8dd82
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.10-18.20111215gite1a4227
db8dd82
- Python 2 binary package renamed to python2-urjtag
db8dd82
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
db8dd82
9fc6e8f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-17.20111215gite1a4227
9fc6e8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9fc6e8f
ae09896
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-16.20111215gite1a4227
ae09896
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ae09896
406d71e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-15.20111215gite1a4227
406d71e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
406d71e
Igor Gnatenko bd3b7c3
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.10-14.20111215gite1a4227
Igor Gnatenko bd3b7c3
- Rebuild for readline 7.x
Igor Gnatenko bd3b7c3
Jiri Kastner 364a116
* Fri Dec  9 2016 Jiri Kastner <jkastner@fedoraproject.org> - 0.10-13.20111215gite1a4227
Jiri Kastner 364a116
- libftdi is not detected as it is libftdi1
Jiri Kastner 364a116
5281946
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-12.20111215gite1a4227
5281946
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5281946
1bb0f9b
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-11.20111215gite1a4227
1bb0f9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1bb0f9b
692cadf
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-10.20111215gite1a4227
692cadf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
692cadf
87a2b7e
* Tue Sep 16 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.10-9.20111215gite1a4227
87a2b7e
- Add patch to fix FTBFS on ARMv7
87a2b7e
44be3d3
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-8.20111215gite1a4227
44be3d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
44be3d3
bb6c138
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-7.20111215gite1a4227
bb6c138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bb6c138
812ef5a
* Thu Jun 05 2014 Scott Tsai <scottt.tw@gmail.com> - 0.10-6.20111215gite1a4227
812ef5a
- Rebuilt for libftdi soname bump
812ef5a
Shakthi Kannan 76e6ded
* Wed Oct  9 2013 Shakthi Kannan <shakthimaan@fedoraproject.org>  - 0.10-5.20111215gite1a4227
Shakthi Kannan 76e6ded
- ExcludeArch armv7hl
4f89d5a
a7a3859
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-4.20111215gite1a4227
a7a3859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a7a3859
25577a0
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3.20111215gite1a4227
25577a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
25577a0
5845dfa
* Thu Dec 15 2011 Scott Tsai <scottt.tw@gmail.com> 0.10-2.20111215gite1a4227
5845dfa
- Initial RPM release