%define unstable 1 Name: piklab Version: 0.11.3 Release: 3%{?dist} Summary: Development environment for applications based on PIC & dsPIC microcontrollers Summary(fr): IDE pour applications à base de microcontrôleurs PIC et de dsPIC Group: Development/Tools License: GPL URL: http://piklab.sourceforge.net Source: http://switch.dl.sourceforge.net/piklab/%{name}-%{version}.tar.bz2 Source1: %{name}-026-microchip.rules Source2: %{name}-icd2.perms Source3: %{name}-pickit1.perms Source4: %{name}-pickit2.perms Source5: %{name}-README.Fedora Source6: %{name}-LISEZMOI.Fedora #Patch0: %{name}-%{version}.Makefile.am.no_rules.patch Patch1: %{name}-%{version}.Makefile.in.no_rules.patch Patch2: %{name}-%{version}.desktop.typo-fr.patch Patch3: %{name}-%{version}.x-desktop-fr.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils, kdelibs-devel, libusb-devel, readline-devel # Needed for FC6 BuildRequires: ncurses-devel %description Piklab is a graphic development environment for PIC and dsPIC microcontrollers. It interfaces with various toochains for compiling and assembling and it supports several Microchip and direct programmers. WARNING: Administrator have to see the README.Fedora file locate in the %{_docdir}/%{name}-%{version} directory to complete full feature installation. %description -l fr Pikdev est un environnement de développement graphique pour les microcontrôleurs PIC et dsPIC. Il s'interface avec diverses chaînes d'outils pour la compilation et l'assemblage et gère plusieurs programmateurs y compris ceux de Microchip. ATTENTION : l'installateur du paquetage doit lire le fichier LISEZMOI.Fedora, situé dans le répertoire %{_docdir}/%{name}-%{version}, afin de voir comment finir l'installation. %prep %setup -q #%patch0 -p0 %patch1 -p0 %patch2 -p0 %patch3 -p0 %{__install} -pm 644 %{SOURCE5} README.Fedora %{__install} -pm 644 %{SOURCE6} LISEZMOI.Fedora %build #%{__make} -f admin/Makefile.common %configure --disable-rpath \ %if %unstable --enable-debug=full %else --disable-debug %endif %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} DESTDIR=%{buildroot} install mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --vendor="" \ --dir %{buildroot}%{_datadir}/applications/kde \ --add-category "X-Fedora" \ --remove-only-show-in="KDE" \ --remove-key="Patterns" \ src/data/app_data/%{name}.desktop %{__install} -d %{buildroot}%{_sysconfdir}/udev/rules.d/ %{__install} -d %{buildroot}%{_sysconfdir}/security/console.perms.d/ %{__install} -pm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/udev/rules.d/026-microchip.rules %{__install} -pm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/security/console.perms.d/icd2.perms %{__install} -pm 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/security/console.perms.d/pickit1.perms %{__install} -pm 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/security/console.perms.d/pickit2.perms # Fix absolute symlink %{__rm} -f %{buildroot}%{_docdir}/HTML/*/%{name}/common BKP_PWD=`pwd` for lang_dir in en do cd %{buildroot}%{_docdir}/HTML/$lang_dir/%{name}/ ln -s ../doc/common common done cd $BKP_PWD #%find_lang %{name} %clean %{__rm} -rf %{buildroot} %post touch --no-create %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : update-desktop-database %{_datadir}/applications/kde > /dev/null 2>&1 || : %postun touch --no-create %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : update-desktop-database %{_datadir}/applications/kde > /dev/null 2>&1 || : #%files -f %{name}.lang %files %defattr(-, root, root) %doc Changelog COPYING README TODO README.Fedora LISEZMOI.Fedora %{_bindir}/* %{_datadir}/applications/kde/%{name}.desktop %{_datadir}/apps/%{name}/ %{_datadir}/apps/katepart/syntax/* %{_datadir}/doc/HTML/en/%{name}/ %{_datadir}/icons/hicolor/*/*/*.png %{_datadir}/mimelnk/application/x-%{name}.desktop %config(noreplace) %{_sysconfdir}/udev/rules.d/026-microchip.rules %config(noreplace) %{_sysconfdir}/security/console.perms.d/*.perms %changelog * Wed Sep 29 2006 Alain Portal 0.11.3-3 - Add doc about how to complete full feature installation - Fix typo on security pathname - Short summary - Add BR ncurses-devel for FC6 * Thu Sep 28 2006 Alain Portal 0.11.3-2 - Remove duplicate BR - Fix files permissions - Improve download URL - Don't mis space and tab * Wed Sep 27 2006 Alain Portal 0.11.3-1 - Initial Fedora package - Fedorize the Mandriva spec file from Nicolas Hadacek