From d08175cf79603241e7c73117c94a445a54f89b66 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Oct 01 2014 10:04:42 +0000 Subject: Import minipro-0-3.20140902git6f36b9e.fc20.src.rpm --- diff --git a/.gitignore b/.gitignore index e69de29..4ab80ad 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/minipro-0-6f36b9e.tar.gz diff --git a/0001-Remove-the-shebang-from-the-completion-file.patch b/0001-Remove-the-shebang-from-the-completion-file.patch new file mode 100644 index 0000000..570574e --- /dev/null +++ b/0001-Remove-the-shebang-from-the-completion-file.patch @@ -0,0 +1,23 @@ +From 3051da84c53dc09a58bbba3b637a5fc1cf7f7ccf Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Tue, 30 Sep 2014 16:40:54 +0200 +Subject: [PATCH 1/2] Remove the shebang from the completion file + +It's useless as completion file is sources and it makes rpmlint sad. +--- + bash_completion.d/minipro | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/bash_completion.d/minipro b/bash_completion.d/minipro +index bd40d6c..8bd620b 100644 +--- a/bash_completion.d/minipro ++++ b/bash_completion.d/minipro +@@ -1,5 +1,3 @@ +-#!/bin/bash +- + _minipro () { + COMPREPLY=() + local cur="${COMP_WORDS[COMP_CWORD]}" +-- +1.9.3 + diff --git a/minipro.spec b/minipro.spec new file mode 100644 index 0000000..387d051 --- /dev/null +++ b/minipro.spec @@ -0,0 +1,71 @@ +%global commit 6f36b9eff8b82d5aa89f2fb07b0940383327a896 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: minipro +Version: 0 +Release: 3.20140902git%{shortcommit}%{?dist} +Summary: Utility for MiniPro TL866A/TL866/CS programmer + +Group: System Environment/Base +# From the bundled debian/copyright file, +# GPLv3 text is shipped though +License: GPLv2+ +URL: https://github.com/vdudouyt/minipro +Source0: https://github.com/vdudouyt/minipro/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +Patch0: 0001-Remove-the-shebang-from-the-completion-file.patch + +BuildRequires: pkgconfig(libusb-1.0) +Requires: udev + +%description +Programming utility compatible with Minipro TL866CS and Minipro TL866A +programmers. Supports more than 13000 target devices (including AVRs, PICs, +various BIOSes and EEPROMs). + + +%prep +%setup -q -n %{name}-%{commit} +%patch0 -p1 + + +%build +make %{?_smp_mflags} CFLAGS='%{optflags}' + + +%install +make install DESTDIR=%{buildroot} + + +%post +udevadm control --reload +udevadm trigger --subsystem-match=usb --attr-match=idVendor=04d8 --attr-match=idProduct=e11c + + +%postun +udevadm control --reload +udevadm trigger --subsystem-match=usb --attr-match=idVendor=04d8 --attr-match=idProduct=e11c + + +%files +%{_sysconfdir}/bash_completion.d +%{_bindir}/minipro +%{_bindir}/miniprohex +%{_bindir}/minipro-query-db +%{_prefix}/lib/udev/rules.d/80-minipro.rules +%{_mandir}/man1/minipro.1* + + +%changelog +* Tue Sep 30 2014 Lubomir Rintel - 0-3.20140902git6f36b9e +- Patch away the shebang from completion file (Mihkel Vain, #1128356) + +* Thu Sep 25 2014 Lubomir Rintel - 0-2.20140902git6f36b9e +- Rebase to a later upstream snapshot +- Drop upstreamed patches + +* Sat Aug 09 2014 Lubomir Rintel - 0-2.20140624gite521a63 +- Add a link to upstream pull request +- Don't mark bash completion nonsense as %%config (Christopher Meng, #1128356) + +* Sat Aug 09 2014 Lubomir Rintel - 0-1.20140624gite521a63 +- Initial packaging diff --git a/sources b/sources index e69de29..0880b6e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ab3931d650aaea425c8db55fbf1e15d9 minipro-0-6f36b9e.tar.gz