/[packages]/cauldron/isodumper/current/SPECS/isodumper.spec
ViewVC logotype

Contents of /cauldron/isodumper/current/SPECS/isodumper.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 486538 - (show annotations) (download)
Thu Sep 26 08:48:28 2013 UTC (10 years, 7 months ago) by akien
File size: 2654 byte(s)
imported package isodumper
1 Name: isodumper
2 Version: 0.1
3 Release: %mkrel -c git 1
4 Summary: Tool for writing ISO images on a USB stick
5 Summary(fr_FR): Outil pour écrire des images ISO sur une clé USB
6 License: GPLv2+
7 Group: System/Configuration
8 URL: https://github.com/papoteur-mga/isodumper
9 # wget https://github.com/papoteur-mga/isodumper/archive/%%{version}.tar.gz -O %%{name}-%%{version}.tar.gz
10 Source0: %{name}-%{version}.tar.gz
11 BuildArch: noarch
12
13 BuildRequires: imagemagick
14 BuildRequires: usermode-consoleonly
15
16 Requires: coreutils
17 Requires: udisks
18 Requires: procps
19 Requires: python
20 Requires: xterm
21 Requires: pygtk2.0-libglade
22
23 %description
24 A GUI tool for writing ISO images on a USB stick.
25 It's a fork of usb-imagewriter.
26
27 This software is written in python.
28
29 %description -l fr_FR
30 Un outil graphique pour écrire des images ISO sur une clé USB.
31 C'est un fork de usb-imagewriter
32
33 Ce logiciel est écrit en python.
34
35 #--------------------------------------------------------------------
36 %prep
37 %setup -q
38
39 %build
40 %setup_compile_flags
41
42 %install
43 mkdir -p %{buildroot}%{_sbindir}
44 mkdir -p %{buildroot}%{_libdir}/%{name}
45 mkdir -p %{buildroot}%{_datadir}/%{name}
46
47 install -m 755 isodumper %{buildroot}%{_sbindir}/%{name}
48 install -m 644 share/%{name}/%{name}.glade %{buildroot}%{_datadir}/%{name}/%{name}.glade
49 install -m 644 share/%{name}/header.png %{buildroot}%{_datadir}/%{name}/header.png
50
51 # desktop menu entry
52 mkdir -p %{buildroot}%{_datadir}/applications
53 install -m 644 share/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
54
55 # LIBFILES isodumper.py find_devices
56 install -m 755 lib/find_devices %{buildroot}%{_libdir}/%{name}/find_devices
57 install -m 755 lib/%{name}.py %{buildroot}%{_libdir}/%{name}/%{name}.py
58
59 # isodumper.mo
60 pushd ./po
61 for f in fr;
62 do
63 poname=${f:0:5}
64 mkdir -p %{buildroot}%{_datadir}/locale/$poname/LC_MESSAGES
65 install -m 644 $poname/LC_MESSAGES/%{name}.mo \
66 "%{buildroot}%{_datadir}/locale/$poname/LC_MESSAGES/"
67 done
68 popd
69
70 # icons
71 mkdir -p %{buildroot}/{%{_liconsdir},%{_miconsdir},%{_iconsdir}}
72 convert %{name}.png -geometry 20x20 %{buildroot}/%{_miconsdir}/%{name}.png
73 convert %{name}.png -geometry 32x32 %{buildroot}/%{_iconsdir}/%{name}.png
74 convert %{name}.png -geometry 48x48 %{buildroot}/%{_liconsdir}/%{name}.png
75
76 # Adjust for console-helper magic
77 mkdir -p %{buildroot}%{_bindir}
78 pushd %{buildroot}%{_bindir}
79 ln -s consolehelper %{name}
80 popd
81
82 %find_lang %{name}
83
84 %files -f %{name}.lang
85 %doc COPYING CHANGELOG
86 %{_sbindir}/%{name}
87 %{_bindir}/%{name}
88 %{_libdir}/%{name}/
89 %{_datadir}/%{name}/
90 %{_datadir}/applications/%{name}.desktop
91 %{_miconsdir}/%{name}.png
92 %{_iconsdir}/%{name}.png
93 %{_liconsdir}/%{name}.png

  ViewVC Help
Powered by ViewVC 1.1.30