Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ahmedmoselhi2
ultracopier
ultracopier.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ultracopier.spec of Package ultracopier
# # spec file for package ultracopier # # Copyright (c) 2023 SUSE LLC # Copyright (c) 2019 Luke Jones, luke@ljones.dev # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: ultracopier Version: 2.2.6.9.r197 Release: 0%{?dist} Summary: Free and open source software that acts as a replacement for files copy dialogs License: GPL-3.0-only URL: https://ultracopier.first-world.info/ BuildRequires: Mesa-devel BuildRequires: gcc BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Linguist) BuildRequires: qt6-tools-devel BuildRequires: qt6-base-common-devel BuildRequires: pkgconfig(Qt6Gui) BuildRequires: pkgconfig(Qt6Network) BuildRequires: pkgconfig(Qt6Widgets) BuildRequires: pkgconfig(Qt6Xml) BuildRequires: pkgconfig(libssl) %if "%_repository" == "15.5" BuildRequires: -libstdc++6 BuildRequires: libstdc++6-gcc13 %endif Source0: %{name}-%{version}.tar.xz Patch0: 0004-Build-ultracopier-with-resources.patch Patch1: 0001-enable-debugging.patch %description Ultracopier acts as a replacement for files copy dialogs. Features: play/pause, speed limitation, on-error resume, error/collision management. %prep %setup -q -n %{name}-%{version} %patch0 -p1 %patch1 -p1 %build mkdir -p build #find -name "Variable.h" -exec sed -i "s/#define ULTRACOPIER_DEBUG/\/\/\#define ULTRACOPIER_DEBUG/g" {} \; #find -name "Variable.h" -exec sed -i "s/#define ULTRACOPIER_PLUGIN_DEBUG/\/\/\#define ULTRACOPIER_PLUGIN_DEBUG/g" {} \; #find -name "Variable.h" -exec sed -i "s/#define ULTRACOPIER_PLUGIN_DEBUG_WINDOW/\/\/\#define ULTRACOPIER_PLUGIN_DEBUG_WINDOW/g" {} \; find -name "informations.xml" -exec sed -i -r "s/windows-x86/linux-x86_64-pc/g" {} \; find ./ -name '*.ts' -exec %{_bindir}/lrelease6 {} \; %{_bindir}/qmake6 build.pro cd build make -f ../Makefile -j $(nproc --all) %install %global _ultracopierdir "%{buildroot}/usr/lib/ultracopier" %global _copyenginedir "%{_ultracopierdir}/CopyEngine" %global _themedir "%{_ultracopierdir}/Themes" %global _langdir "%{_ultracopierdir}/Languages" install -d "%{buildroot}%{_bindir}" install -d "%{_ultracopierdir}" install -d "%{buildroot}%{_datadir}/applications" install -d "%{buildroot}%{_datadir}/pixmaps" install -Dm755 "build/other-pro/ultracopier" "%{buildroot}%{_bindir}/ultracopier" install -Dm644 "resources/ultracopier.desktop" "%{buildroot}%{_datadir}/applications/ultracopier.desktop" install -Dm644 "resources/ultracopier-128x128.png" "%{buildroot}%{_datadir}/pixmaps/ultracopier.png" #Plugins #copyengine install -Dm644 "plugins/CopyEngine/Ultracopier-Spec/informations.xml" "%{_copyenginedir}/Ultracopier-Spec/informations.xml" install -Dm644 "build/plugins/CopyEngine/Ultracopier-Spec/libcopyEngine.so" "%{_copyenginedir}/Ultracopier-Spec/libcopyEngine.so" install -Dm644 "plugins/CopyEngine/Random/informations.xml" "%{_copyenginedir}/Random/informations.xml" install -Dm644 "build/plugins/CopyEngine/Random/libcopyEngine.so" "%{_copyenginedir}/Random/libcopyEngine.so" #themes #supercopier install -Dm644 "plugins/Themes/Supercopier/informations.xml" /"%{_themedir}/Supercopier/informations.xml" install -Dm644 "build/plugins/Themes/Supercopier/libinterface.so" "%{_themedir}/Supercopier/libinterface.so" #oxygen install -Dm644 "plugins/Themes/Oxygen/informations.xml" "%{_themedir}/Oxygen/informations.xml" install -Dm644 "build/plugins/Themes/Oxygen/libinterface.so" "%{_themedir}/Oxygen/libinterface.so" #oxygen2 install -Dm644 "plugins/Themes/Oxygen2/informations.xml" "%{_themedir}/Oxygen2/informations.xml" install -Dm644 "build/plugins/Themes/Oxygen2/libinterface.so" "%{_themedir}/Oxygen2/libinterface.so" #languages cp -r "plugins/Languages" "%{_langdir}" cp -r "plugins/CopyEngine/Ultracopier-Spec/Languages" "%{_copyenginedir}/Ultracopier-Spec" #cp -r "plugins/CopyEngine/Random/Languages" "%{_copyenginedir}/Random" #cp -r "plugins/Themes/Supercopier/Languages" "%{_themedir}/Supercopier" cp -r "plugins/Themes/Oxygen/Languages" "%{_themedir}/Oxygen" cp -r "plugins/Themes/Oxygen2/Languages" "%{_themedir}/Oxygen2" %files %{_bindir}/ultracopier %{_prefix}/lib/ultracopier %{_datadir}/applications/ultracopier.desktop %{_datadir}/pixmaps/ultracopier.png %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor