[packages/unetbootin] - initial, based on FC spec

arekm arekm at pld-linux.org
Fri Mar 2 19:42:43 CET 2018


commit 377fa093fef63437e401c53706376526f0ec1462
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Mar 2 19:42:28 2018 +0100

    - initial, based on FC spec

 unetbootin.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)
---
diff --git a/unetbootin.spec b/unetbootin.spec
new file mode 100644
index 0000000..bd6d829
--- /dev/null
+++ b/unetbootin.spec
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/unetbootin.git/commitdiff/377fa093fef63437e401c53706376526f0ec1462



More information about the pld-cvs-commit mailing list