Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37542060
en ru br
ALT Linux repos
S:2.6.2.0-alt2

Group :: Archiving/Other
RPM: rosa-imagewriter

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: rosa-imagewriter-2.6.1.0-alt1.patch
Download


 .gear/rosa-imagewriter.desktop | 11 ++++++++
 .gear/rosa-imagewriter.spec    | 64 ++++++++++++++++++++++++++++++++++++++++++
 .gear/rules                    |  4 +++
 .gear/tags/list                |  1 +
 main.cpp                       |  2 +-
 5 files changed, 81 insertions(+), 1 deletion(-)
diff --git a/.gear/rosa-imagewriter.desktop b/.gear/rosa-imagewriter.desktop
new file mode 100644
index 0000000..98a0739
--- /dev/null
+++ b/.gear/rosa-imagewriter.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Name=ROSA Imagewriter
+GenericName=USB key writer
+GenericName[ru]=Запись образа на USB
+Comment=Write disk image to USB key
+Comment[ru]=Запись образа диска на USB-накопитель
+Type=Application
+Exec=/usr/bin/xdg-su -c /usr/bin/rosa-imagewriter %f
+Icon=rosa-imagewriter
+Categories=System;Utility;Archiving;
diff --git a/.gear/rosa-imagewriter.spec b/.gear/rosa-imagewriter.spec
new file mode 100644
index 0000000..bd28b61
--- /dev/null
+++ b/.gear/rosa-imagewriter.spec
@@ -0,0 +1,64 @@
+
+Name:		rosa-imagewriter
+Version:	2.6.1.0
+Release:	alt1
+Summary:	Utility for writing raw disk images and hybrid isos to USB keys
+
+License:	GPLv3
+Group:		Archiving/Other
+URL:		https://abf.io/soft/rosa-imagewriter
+
+Packager:   	Andrey Cherepanov <cas@altlinux.org>
+
+Source:		%name-%version.tar
+Source1:	%name.desktop
+Patch:		%name-%version-%release.patch
+
+BuildRequires:  gcc-c++
+BuildRequires:  qt5-base-devel
+BuildRequires:  qt5-tools
+BuildRequires:  libudev-devel
+
+%description
+Utility for writing raw disk images and hybrid isos to USB keys.
+Based on SUSE Studio Imagewriter.
+
+%prep
+%setup -q
+%patch -p1
+
+%build
+DESTDIR=%buildroot PREFIX=/usr %qmake_qt5 RosaImageWriter.pro
+%make_build
+
+%install
+# .pro file does not contain install executable, install manually
+install -D -m0755 RosaImageWriter %buildroot%_bindir/RosaImageWriter
+ln -s RosaImageWriter %buildroot%_bindir/rosa-imagewriter
+
+# install translations
+PATH=/usr/share/qt5/bin/:$PATH lang/build-translations %buildroot%_datadir/%name
+
+# install desktop file and icons
+install -D -m0644 %SOURCE1 %buildroot%_desktopdir/%{name}.desktop
+for size in 16 32; do \
+	install -D -m0644 res/src/icon-rosa-base-${size}.png \
+	%buildroot%_iconsdir/hicolor/${size}x${size}/apps/rosa-imagewriter.png
+done
+
+%files
+%doc doc/*.html
+%_bindir/*
+%_datadir/%name/*
+%_desktopdir/*.desktop
+%_iconsdir/hicolor/*/apps/%name.png
+
+%changelog
+* Sun Oct 04 2015 Andrey Cherepanov <cas@altlinux.org> 2.6.1.0-alt1
+- New version
+
+* Fri May 15 2015 Andrey Cherepanov <cas@altlinux.org> 2.6.0.0-alt1
+- New version
+
+* Wed Mar 12 2014 Andrey Cherepanov <cas@altlinux.org> 2.4.0.0-alt1
+- Initial build for ALT Linux
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..94193a7
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,4 @@
+spec: .gear/rosa-imagewriter.spec
+copy: .gear/*.desktop
+tar:  version-@version@:.
+diff: version-@version@:. .
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..d3e548e
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+fc8e921fa0ed6510b9314c77f25ce906097e3ac3 version-2.6.1.0
diff --git a/main.cpp b/main.cpp
index 18be804..a40952e 100644
--- a/main.cpp
+++ b/main.cpp
@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
 
     // Finally, load the translation of the application itself
     QTranslator appTranslator;
-    appTranslator.load(langName, QCoreApplication::applicationDirPath() + "/lang");
+    appTranslator.load(langName, "/usr/share/rosa-imagewriter/lang");
     a.installTranslator(&appTranslator);
 
     if (!ensureElevated())
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin