1 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
1 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
2 |
2 |
3 Name: liveusb-creator |
3 Name: liveusb-creator |
4 Version: 3.11.1 |
4 Version: 3.11.1 |
5 Release: 1%{?dist} |
5 Release: MSvB_1 |
6 Summary: A liveusb creator |
6 Summary: A liveusb creator |
7 |
7 |
8 Group: Applications/System |
8 Group: Applications/System |
9 License: GPLv2 |
9 License: GPLv2 |
10 URL: https://fedorahosted.org/liveusb-creator |
10 URL: https://www.fedorahosted.org/liveusb-creator |
11 Source0: https://fedorahosted.org/releases/l/i/liveusb-creator/%{name}-%{version}.tar.bz2 |
11 Source0: https://www.fedorahosted.org/releases/l/i/liveusb-creator/%{name}-%{version}.tar.bz2 |
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
12 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
13 |
13 |
14 BuildArch: noarch |
14 BuildArch: noarch |
15 ExcludeArch: ppc |
15 ExcludeArch: ppc |
16 ExcludeArch: ppc64 |
16 ExcludeArch: ppc64 |
17 |
17 |
18 BuildRequires: python-devel, python-setuptools, PyQt4-devel, desktop-file-utils gettext |
18 BuildRequires: python-setuptools, desktop-file-utils gettext |
19 Requires: syslinux, PyQt4, usermode, isomd5sum |
19 Requires: syslinux, python-qt4, isomd5sum |
20 Requires: python-urlgrabber |
20 Requires: python-urlgrabber |
21 Requires: pyparted >= 2.0 |
21 Requires: python-parted >= 2.0 |
22 Requires: syslinux-extlinux |
|
23 |
22 |
24 %description |
23 %description |
25 A liveusb creator from Live Fedora images |
24 A liveusb creator from Live Fedora images |
26 |
25 |
27 %prep |
26 %prep |
28 %setup -q |
27 %setup -q |
|
28 %{__sed} -i.orig -e 's;^\(Icon *=.*\)\.png;\1;' data/liveusb-creator.desktop |
|
29 %{__sed} -i.orig -e "s;^\(locale.setlocale(locale.LC_ALL,\).*;\1 'fr_FR.UTF-8');" liveusb/__init__.py |
29 |
30 |
30 %build |
31 %build |
31 %{__python} setup.py build |
32 %{__python} setup.py build |
32 make mo |
33 make mo |
33 make mo |
34 make mo |
34 |
35 |
35 %install |
36 %install |
36 rm -rf %{buildroot} |
37 rm -rf %{buildroot} |
37 %{__python} setup.py install -O1 --skip-build --root %{buildroot} |
38 %{__python} setup.py install -O1 --skip-build --prefix /usr --root %{buildroot} |
38 %{__rm} -r liveusb/urlgrabber |
39 %{__rm} -r liveusb/urlgrabber |
39 |
40 |
40 # Adjust for console-helper magic |
41 # Adjust for console-helper magic |
41 mkdir -p %{buildroot}%{_sbindir} |
42 mkdir -p %{buildroot}%{_sbindir} |
42 mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name} |
43 mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name} |
43 ln -s ../bin/consolehelper %{buildroot}%{_bindir}/%{name} |
|
44 mkdir -p %{buildroot}%{_sysconfdir}/pam.d |
44 mkdir -p %{buildroot}%{_sysconfdir}/pam.d |
45 cp %{name}.pam %{buildroot}%{_sysconfdir}/pam.d/%{name} |
45 cp %{name}.pam %{buildroot}%{_sysconfdir}/pam.d/%{name} |
46 mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps |
46 mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps |
47 cp %{name}.console %{buildroot}%{_sysconfdir}/security/console.apps/%{name} |
47 cp %{name}.console %{buildroot}%{_sysconfdir}/security/console.apps/%{name} |
48 |
48 |
58 |
58 |
59 %files -f %{name}.lang |
59 %files -f %{name}.lang |
60 %defattr(-,root,root,-) |
60 %defattr(-,root,root,-) |
61 %doc README.txt LICENSE.txt |
61 %doc README.txt LICENSE.txt |
62 %{python_sitelib}/* |
62 %{python_sitelib}/* |
63 %{_bindir}/%{name} |
|
64 %{_sbindir}/%{name} |
63 %{_sbindir}/%{name} |
65 %{_datadir}/applications/fedora-liveusb-creator.desktop |
64 %{_datadir}/applications/fedora-liveusb-creator.desktop |
66 %{_datadir}/pixmaps/fedorausb.png |
65 %{_datadir}/pixmaps/fedorausb.png |
67 #%{_datadir}/locale/*/LC_MESSAGES/liveusb-creator.mo |
66 #%{_datadir}/locale/*/LC_MESSAGES/liveusb-creator.mo |
68 %config(noreplace) %{_sysconfdir}/pam.d/%{name} |
67 %config(noreplace) %{_sysconfdir}/pam.d/%{name} |
69 %config(noreplace) %{_sysconfdir}/security/console.apps/%{name} |
68 %config(noreplace) %{_sysconfdir}/security/console.apps/%{name} |
70 |
69 |
71 %changelog |
70 %changelog |
|
71 * Thu May 26 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 3.11.1-MSvB_1 |
|
72 - Port to OpenSUSE RPM build structure |
|
73 |
72 * Tue May 24 2011 Luke Macken <lmacken@redhat.com> - 3.11.1-1 |
74 * Tue May 24 2011 Luke Macken <lmacken@redhat.com> - 3.11.1-1 |
73 - Bump to support downloading Fedora 15 |
75 - Bump to support downloading Fedora 15 |
74 |
76 |
75 * Mon Apr 25 2011 Luke Macken <lmacken@redhat.com> - 3.11.0-1 |
77 * Mon Apr 25 2011 Luke Macken <lmacken@redhat.com> - 3.11.0-1 |
76 - Latest upstream release |
78 - Latest upstream release |