File usbpicprog.spec of Package usbpicprog

Name:           usbpicprog
License:        GPL  
Group:          Development/Tools/Other
%if 0%{?suse_version} >= 01230
Version:        0.6.0
%else
Version:        0.2.0
%endif
Release:        1
Summary:        Microchip PIC programmer for the USB port
Url:            http://usbpicprog.org/
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch0:         %{name}-docdir.patch
Patch1:         %{name}-configure_WX.patch
Patch2:		wxCmdLineEntryDesc2_8.patch
Patch3:		wxCmdLineEntryDesc2_9.patch
BuildRequires:	libusb-compat-devel, intltool, gcc-c++, wxGTK-devel
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif

%description  
usbpicprog is a Microchip PIC programmer with simple hardware:
one PIC18F2550 and some components. It's therefore easy and 
cheap to build. Usbpicprog consists of 3 components: Hardware, 
Embedded software and a stand-alone program for Win, Mac and Linux.

Author Frans Schreuder

%prep  
%setup -q  
%patch0
%if 0%{?suse_version} < 01230
%patch1 -p1
%patch2
%else
%patch3
%endif
  
%build
%configure --docdir=%{_docdir}

make %{?jobs:-j%jobs}
  
%install
make DESTDIR=$RPM_BUILD_ROOT install
%suse_update_desktop_file -r Usbpicprog Development Debugger

%files  
%defattr(-,root,root)  
/usr/bin/*
%{_datadir}/locale/??/LC_MESSAGES/*.mo
%if 0%{?suse_version} < 01230
%doc %{_docdir}/*
%endif
  
%changelog  

* Thu Jan 02 2014 - build at sciomnis__singledot__com
- Update to version 0.6.0
- Update dependency for openSuSE 12.3, 13.1
* Thu Dec 05 2013 - build at sciomnis__singledot__com
- Update dependency for openSuSE 12.1,12.2
* Tue Aug 31 2010 - build at sciomnis__singledot__com
- Add dependency for openSuSE 11.3
* Thu Jan 07 2010 - build at sciomnis__singledot__com
- Version 0.2.0 for openSuSE by Torben M Hansen
openSUSE Build Service is sponsored by