bab0ff6
%global gitcommit_full 1165cf712713af48c61c4782ad5c9477c4574708
0fdc919
%global gitcommit %(c=%{gitcommit_full}; echo ${c:0:7})
bab0ff6
%global date 20190216
0fdc919
c9e9740
Name:           stlink
0fdc919
Version:        1.5.1
af1080a
Release:        0.3.%{date}git%{gitcommit}%{?dist}
c9e9740
Summary:        STM32 discovery line Linux programmer
c9e9740
License:        BSD
c9e9740
c9e9740
Url:            https://github.com/texane/stlink
0fdc919
Source0:        https://github.com/texane/stlink/tarball/%{gitcommit_full}
c9e9740
0b6d70b
BuildRequires:  gcc
c9e9740
BuildRequires:  cmake
c9e9740
BuildRequires:  pkgconfig(gtk+-3.0)
c9e9740
BuildRequires:  pkgconfig(udev)
c9e9740
BuildRequires:  pkgconfig(libusb-1.0)
c9e9740
BuildRequires:  desktop-file-utils
c9e9740
Requires:       pkgconfig(udev)
c9e9740
c9e9740
%description
c9e9740
STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers.
c9e9740
c9e9740
%package        gui
c9e9740
Summary:        GUI for STM32 discovery line linux programmer
c9e9740
Requires:       %{name}%{?_isa} = %{version}-%{release}
c9e9740
c9e9740
%description    gui
c9e9740
STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers.
c9e9740
c9e9740
%package        devel
c9e9740
Summary:        Include files and mandatory libraries for development
c9e9740
Requires:       %{name}%{?_isa} = %{version}-%{release}
c9e9740
c9e9740
%description    devel
c9e9740
Include files and mandatory libraries for development.
c9e9740
c9e9740
%prep
0fdc919
%autosetup -n texane-%{name}-%{gitcommit}
0fdc919
c9e9740
c9e9740
%build
c9e9740
mkdir build
c9e9740
pushd build
0fdc919
    %cmake .. -DSTLINK_UDEV_RULES_DIR="%{_udevrulesdir}" -DSTLINK_STATIC_LIB=OFF
c9e9740
    %make_build
c9e9740
popd
c9e9740
c9e9740
%install
c9e9740
pushd build
c9e9740
    %make_install
c9e9740
popd
0fdc919
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-gui.desktop
c9e9740
c9e9740
c9e9740
%files
c9e9740
%doc README.md ChangeLog.md
c9e9740
%license LICENSE
c9e9740
%config(noreplace) %{_sysconfdir}/modprobe.d/%{name}*
c9e9740
%{_bindir}/st-*
2fae8bc
%{_libdir}/lib%{name}.so.*
c9e9740
%{_mandir}/man1/st-*.1*
c9e9740
%{_udevrulesdir}/49-%{name}*
c9e9740
c9e9740
%files gui
c9e9740
%{_bindir}/%{name}-gui
c9e9740
%{_datadir}/%{name}
0fdc919
%{_datadir}/applications/%{name}-gui.desktop
0fdc919
%{_datadir}/icons/hicolor/scalable/apps/%{name}-gui.svg
c9e9740
c9e9740
%files    devel
c9e9740
%{_includedir}/%{name}*
2fae8bc
%{_libdir}/lib%{name}.so
c9e9740
%{_libdir}/pkgconfig/*.pc
c9e9740
c9e9740
%changelog
af1080a
* Tue Feb 19 2019 Kalev Lember <klember@redhat.com> - 1.5.1-0.3.20190216git1165cf7
af1080a
- Rebuilt against fixed atk (#1626575)
af1080a
bab0ff6
* Tue Feb 19 2019 Vasiliy N. Glazov <vascom2@gmail.com> - 1.5.1-0.2.20190216git1165cf7
bab0ff6
- Update to latest git
bab0ff6
5391ca9
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-0.2.20190103git7651d21
5391ca9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5391ca9
997b024
* Fri Jan 11 2019 Vasiliy N. Glazov <vascom2@gmail.com> - 1.5.1-0.1.20190103git7651d21
997b024
- Update to latest git
997b024
0fdc919
* Tue Aug 07 2018 Vasiliy N. Glazov <vascom2@gmail.com> - 1.5.1-0.1.20180802gitae717b9
0fdc919
- Update to latest git
0fdc919
b4e81c5
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
b4e81c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b4e81c5
0b6d70b
* Fri Feb 16 2018 Vasiliy N. Glazov <vascom2@gmail.com> - 1.5.0-1
0b6d70b
- Update to 1.5.0
0b6d70b
5887cbe
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
5887cbe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5887cbe
c9e9740
* Wed Sep 06 2017 Vasiliy N. Glazov <vascom2@gmail.com> - 1.4.0-2
c9e9740
- Corrected Source0 url
c9e9740
- Added desktop file
c9e9740
- Removed static library
c9e9740
c9e9740
* Fri Sep 01 2017 Vasiliy N. Glazov <vascom2@gmail.com> - 1.4.0-1
c9e9740
- Update to 1.4.0
c9e9740
c9e9740
* Mon Jun 20 2016 Vasiliy N. Glazov <vascom2@gmail.com> 1.2.0-1
c9e9740
- Update to 1.2.0
c9e9740
c9e9740
* Tue Aug 18 2015 Vasiliy N. Glazov <vascom2@gmail.com> 1.1.0-1
c9e9740
- Correct spec for Fedora
c9e9740
c9e9740
* Fri Apr  3 2015 dmitry_r@opensuse.org
c9e9740
- Update to version 1.1.0
c9e9740
  * New devices support, see included README file
c9e9740
  * Bugfixes
c9e9740
* Wed Jun 11 2014 dmitry_r@opensuse.org
c9e9740
- Add COPYING and README to package documentation
c9e9740
* Fri Jun  6 2014 dmitry_r@opensuse.org
c9e9740
- Initial package, version 1.0.0