aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavid_david <david.david@mageialinux-online.org>2013-09-22 22:35:39 +0200
committerdavid_david <david.david@mageialinux-online.org>2013-09-22 22:35:39 +0200
commit42da9f350d0a71b8432ce83cdac798a3f6c6ef95 (patch)
treed9fa44b72ca9e7c61d494575a543d5f9e963254b
parent2477305b4b84a617ab349c61e6107ddbe84b87c9 (diff)
downloadisodumper-42da9f350d0a71b8432ce83cdac798a3f6c6ef95.tar
isodumper-42da9f350d0a71b8432ce83cdac798a3f6c6ef95.tar.gz
isodumper-42da9f350d0a71b8432ce83cdac798a3f6c6ef95.tar.bz2
isodumper-42da9f350d0a71b8432ce83cdac798a3f6c6ef95.tar.xz
isodumper-42da9f350d0a71b8432ce83cdac798a3f6c6ef95.zip
Create isodumper.spec
-rw-r--r--isodumper.spec94
1 files changed, 94 insertions, 0 deletions
diff --git a/isodumper.spec b/isodumper.spec
new file mode 100644
index 0000000..062025d
--- /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 16x16 %{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
+