]> git.pld-linux.org Git - packages/unetbootin.git/commitdiff
- initial, based on FC spec
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 2 Mar 2018 18:42:28 +0000 (19:42 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 2 Mar 2018 18:42:28 +0000 (19:42 +0100)
unetbootin.spec [new file with mode: 0644]

diff --git a/unetbootin.spec b/unetbootin.spec
new file mode 100644 (file)
index 0000000..bd6d829
--- /dev/null
@@ -0,0 +1,64 @@
+Summary:       Create bootable Live USB drives for a variety of Linux distributions
+Name:          unetbootin
+Version:       657
+Release:       1
+License:       GPL v2+
+Group:         Base
+URL:           https://unetbootin.github.io/
+Source0:       https://github.com/unetbootin/unetbootin/releases/download/%{version}/%{name}-source-%{version}.tar.gz
+# Source0-md5: 50ad69c1d703e635d30c3aa4305093f7
+# Syslinux is only available on x86 architectures
+BuildRequires: desktop-file-utils
+BuildRequires: qt4-build
+Requires:      syslinux
+ExclusiveArch: %{ix86} x86_64
+
+%description
+UNetbootin allows you to create bootable Live USB drives for a variety
+of Linux distributions from Windows or Linux, without requiring you to
+burn a CD. You can either let it download one of the many
+distributions supported out-of-the-box for you, or supply your own
+Linux .iso file if you've already downloaded one or your preferred
+distribution isn't on the list.
+
+%prep
+%setup -q -c
+sed -i '/^Version/d' unetbootin.desktop
+sed -i '/\[en_US\]/d' unetbootin.desktop
+sed -i 's|%{_bindir}/unetbootin|unetbootin|g' unetbootin.desktop
+
+%build
+export QTDIR=%{_prefix}/qt4
+lupdate-qt4 unetbootin.pro
+lrelease-qt4 unetbootin.pro
+qmake-qt4 \
+       "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc"
+
+%{__make} \
+       CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+       CXXFLAGS="%{rpmcxxflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -D -p unetbootin $RPM_BUILD_ROOT%{_bindir}/unetbootin
+# Install desktop file
+desktop-file-install --vendor="" --remove-category=Application --dir=$RPM_BUILD_ROOT%{_desktopdir} unetbootin.desktop
+# Install localization files
+install -d $RPM_BUILD_ROOT%{_datadir}/unetbootin
+install -c -p unetbootin_*.qm $RPM_BUILD_ROOT%{_datadir}/unetbootin/
+# Install pixmap
+install -D -p unetbootin_512.png $RPM_BUILD_ROOT%{_pixmapsdir}/unetbootin.png
+
+%find_lang %{name} --with-qm
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc README.TXT
+%attr(755,root,root) %{_bindir}/unetbootin
+%dir %{_datadir}/unetbootin
+%{_desktopdir}/unetbootin.desktop
+%{_pixmapsdir}/unetbootin.png
This page took 0.127845 seconds and 4 git commands to generate.