/[packages]/backports/3/isodumper/current/SPECS/isodumper.spec
ViewVC logotype

Annotation of /backports/3/isodumper/current/SPECS/isodumper.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 552213 - (hide annotations) (download)
Thu Nov 21 20:31:38 2013 UTC (10 years, 5 months ago) by akien
Original Path: cauldron/isodumper/current/SPECS/isodumper.spec
File size: 2637 byte(s)
- Update to upstream release 0.11: https://github.com/papoteur-mga/isodumper/releases/tag/0.11
- Changed spec file to include all validated translations

1 akien 486538 Name: isodumper
2 akien 552213 Version: 0.11
3     Release: %mkrel 1
4 akien 486538 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    
41     %install
42     mkdir -p %{buildroot}%{_sbindir}
43 akien 489147 mkdir -p %{buildroot}%{_usr}/lib/%{name}
44 akien 486538 mkdir -p %{buildroot}%{_datadir}/%{name}
45    
46     install -m 755 isodumper %{buildroot}%{_sbindir}/%{name}
47     install -m 644 share/%{name}/%{name}.glade %{buildroot}%{_datadir}/%{name}/%{name}.glade
48     install -m 644 share/%{name}/header.png %{buildroot}%{_datadir}/%{name}/header.png
49    
50     # desktop menu entry
51     mkdir -p %{buildroot}%{_datadir}/applications
52     install -m 644 share/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
53    
54     # LIBFILES isodumper.py find_devices
55 akien 489147 install -m 755 lib/find_devices %{buildroot}%{_usr}/lib/%{name}/find_devices
56     install -m 755 lib/%{name}.py %{buildroot}%{_usr}/lib/%{name}/%{name}.py
57 akien 486538
58 akien 489147 # isodumper.mo translations
59 akien 552213 pushd ./share/locale/
60     for locale in *
61 akien 486538 do
62 akien 552213 mkdir -p %{buildroot}%{_datadir}/locale/$locale/LC_MESSAGES
63     install -m 644 $locale/LC_MESSAGES/%{name}.mo \
64     "%{buildroot}%{_datadir}/locale/$locale/LC_MESSAGES/"
65 akien 486538 done
66     popd
67    
68     # icons
69     mkdir -p %{buildroot}/{%{_liconsdir},%{_miconsdir},%{_iconsdir}}
70     convert %{name}.png -geometry 20x20 %{buildroot}/%{_miconsdir}/%{name}.png
71     convert %{name}.png -geometry 32x32 %{buildroot}/%{_iconsdir}/%{name}.png
72     convert %{name}.png -geometry 48x48 %{buildroot}/%{_liconsdir}/%{name}.png
73    
74     # Adjust for console-helper magic
75     mkdir -p %{buildroot}%{_bindir}
76     pushd %{buildroot}%{_bindir}
77     ln -s consolehelper %{name}
78     popd
79    
80     %find_lang %{name}
81    
82     %files -f %{name}.lang
83     %doc COPYING CHANGELOG
84     %{_sbindir}/%{name}
85     %{_bindir}/%{name}
86 akien 489147 %{_usr}/lib/%{name}/
87 akien 486538 %{_datadir}/%{name}/
88     %{_datadir}/applications/%{name}.desktop
89     %{_miconsdir}/%{name}.png
90     %{_iconsdir}/%{name}.png
91     %{_liconsdir}/%{name}.png

  ViewVC Help
Powered by ViewVC 1.1.30