File tuxboot.spec of Package tuxboot
Name: tuxboot
Version: 0.8
Release: 0
Summary: Create bootable Live USB drives for Clonezilla, DRBL, GParted and Tux2live
Group: System/GUI/Other
License: GPL-2.0+
URL: http://www.tuxboot.org/
Source0: %name-%version.src.tar.gz
BuildRequires: libqt4-linguist
BuildRequires: pkgconfig(QtCore)
BuildRequires: update-desktop-files
Requires: p7zip, syslinux
%description
Tuxboot helps you to create a bootable Live USB drive for Clonezilla live,
DRBL live, GParted live and Tux2live. Features:
* Support Clonezilla live, DRBL live, GParted live and Tux2live.
Tuxboot uses the syslinux in the ISO/zip file to make your USB
drive bootable, so it is compatible with the same version of
syslinux boot menu in the ISO/zip file.
* Auto find the latest version.
* Download an ISO file and build bootable USB flash drive on the fly.
%prep
%setup -q
%{__sed} -i '/^RESOURCES/d' %{name}.pro
# Fix EOL encoding
%{__sed} -i 's/\r//' README.TXT
# Fix desktop file
%{__sed} -i '/\[en_US\]/d' %{name}.desktop
%build
lupdate %{name}.pro
lrelease %{name}.pro
qmake QMAKE_CXXFLAGS="%optflags" "DEFINES += NOSTATIC" "RESOURCES -= tuxboot.qrc"
%{__make} %{?_smp_mflags}
%install
%{__install} -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
%{__install} -Dm755 %{name}-pkexec %{buildroot}%{_bindir}/%{name}-pkexec
%{__mkdir_p} %{buildroot}%{_datadir}/%{name}
%{__install} -m644 i18n/%{name}_*.qm %{buildroot}%{_datadir}/%{name}
%{__install} -Dm644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
%{__install} -Dm644 %{name}.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
%suse_update_desktop_file -r %{name} System Filesystem
%__gzip -9 debian/%{name}.1
%__install -Dm0644 debian/%{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz
%files
%defattr(-,root,root,-)
%doc README.TXT
%{_bindir}/%{name}
%{_bindir}/%{name}-pkexec
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%_mandir/man1/%{name}.1.gz
%changelog
* Fri Jan 19 2018 Simone Sclavi <darkhado@gmail.com> - 0.8
- Fix Group
- Add manpage
- Fix build with optflags
* Thu Sep 18 2014 Simone Sclavi <darkhado@gmail.com> - 0.8
- 0.8 release
* Sat Jul 12 2014 Simone Sclavi <darkhado@gmail.com> - 0.7
- 0.7 release
* Thu Mar 20 2014 Simone Sclavi <darkhado@gmail.com> - 0.6
- Initial build