diff options
-rw-r--r-- | isodumper.spec | 94 | ||||
-rw-r--r-- | share/applications/isodumper.desktop | 2 |
2 files changed, 95 insertions, 1 deletions
diff --git a/isodumper.spec b/isodumper.spec new file mode 100644 index 0000000..f40441e --- /dev/null +++ b/isodumper.spec @@ -0,0 +1,94 @@ +Name: isodumper +Version: 0.1 +Release: %mkrel 0.2 +Summary: Tool for writing ISO images on a USB stick +Summary(fr_FR): Outil pour écrire des images ISO sur une clé USB +License: GPLv2+ +Group: System/Configuration +URL: https://github.com/papoteur-mga/isodumper +# wget https://github.com/papoteur-mga/isodumper/archive/%%{version}.tar.gz -O %%{name}-%%{version}.tar.gz +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: imagemagick +BuildRequires: usermode-consoleonly + +Requires: coreutils +Requires: udisks +Requires: procps +Requires: python +Requires: xterm +Requires: pygtk2.0-libglade + +%description +A GUI tool for writing ISO images on a USB stick. +It's a fork of usb-imagewriter. + +This software is written in python. + +%description -l fr_FR +Un outil graphique pour écrire des images ISO sur une clé USB. +C'est un fork de usb-imagewriter + +Ce logiciel est écrit en python. + +#-------------------------------------------------------------------- +%prep +%setup -q + +%build +%setup_compile_flags + +%install +mkdir -p %{buildroot}%{_sbindir} +mkdir -p %{buildroot}%{_usr}/lib/%{name} +mkdir -p %{buildroot}%{_datadir}/%{name} + +install -m 755 isodumper %{buildroot}%{_sbindir}/%{name} +install -m 644 share/%{name}/%{name}.glade %{buildroot}%{_datadir}/%{name}/%{name}.glade +install -m 644 share/%{name}/header.png %{buildroot}%{_datadir}/%{name}/header.png + +# desktop menu entry +mkdir -p %{buildroot}%{_datadir}/applications +install -m 644 share/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop + +# LIBFILES isodumper.py find_devices +install -m 755 lib/find_devices %{buildroot}%{_usr}/lib/%{name}/find_devices +install -m 755 lib/%{name}.py %{buildroot}%{_usr}/lib/%{name}/%{name}.py + +# isodumper.mo +pushd ./po +for f in fr; +do + poname=${f:0:5} + mkdir -p %{buildroot}%{_datadir}/locale/$poname/LC_MESSAGES + install -m 644 $poname/LC_MESSAGES/%{name}.mo \ + "%{buildroot}%{_datadir}/locale/$poname/LC_MESSAGES/" +done +popd + +# icons +mkdir -p %{buildroot}/{%{_liconsdir},%{_miconsdir},%{_iconsdir}} +convert %{name}.png -geometry 20x20 %{buildroot}/%{_miconsdir}/%{name}.png +convert %{name}.png -geometry 32x32 %{buildroot}/%{_iconsdir}/%{name}.png +convert %{name}.png -geometry 48x48 %{buildroot}/%{_liconsdir}/%{name}.png + +# Adjust for console-helper magic +mkdir -p %{buildroot}%{_bindir} +pushd %{buildroot}%{_bindir} +ln -s consolehelper %{name} +popd + +%find_lang %{name} + +%files -f %{name}.lang +%doc COPYING CHANGELOG +%{_sbindir}/%{name} +%{_bindir}/%{name} +%{_usr}/lib/%{name}/ +%{_datadir}/%{name}/ +%{_datadir}/applications/%{name}.desktop +%{_miconsdir}/%{name}.png +%{_iconsdir}/%{name}.png +%{_liconsdir}/%{name}.png + diff --git a/share/applications/isodumper.desktop b/share/applications/isodumper.desktop index 5dff84e..990312e 100644 --- a/share/applications/isodumper.desktop +++ b/share/applications/isodumper.desktop @@ -5,7 +5,7 @@ Comment[fr]=Outil graphique pour écrire des fichiers .IMG et .ISO sur clés USB Comment[de]=Ein Programm zum scheiben von *.img and *.iso Dateien auf USB-Sicks Comment[pt]=Um Programa para gravar ficheiros *.img e *.iso em dispositivos USB Icon=isodumper.png -Exec=/sbin/isodumper +Exec=isodumper Type=Application Terminal=false Categories=System; |