File qwbfsmanager.spec of Package qwbfs

Name:          qwbfsmanager
BuildRequires: libqt5-qtbase-devel
BuildRequires: libudev-devel
BuildRequires: libopenssl-devel
BuildRequires: xz
BuildRequires: -post-build-checks
License:       GPLv2
Group:         System/Management
Summary:       A User Interface to manager files for WII using WBFS filesystem
Version:       1.2.6~git20210429
Release:       0
URL:           https://github.com/pasnox/qwbfsmanager
Source0:       %{name}-%{version}.tar.xz
Patch0:        qwbfsmanager_fresh-pSpinBox-fix.patch

%description
QWBFS Manager provides a cross platform Qt GUI for working with hard disk drives that have been formatted to the WBFS file system.

%files
%defattr(-,root,root,-)
%dir %{_datadir}/qt5
%dir %{_datadir}/qt5/translations
%{_datadir}/qt5/translations/*.qm
%{_bindir}/*


%package devel
Summary:    Development files for %{name}
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}

%description devel
%{summary}.

%files devel
%defattr(-,root,root,-)
%dir %{_datadir}/qt5
%dir %{_datadir}/qt5/translations
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/qt5/mkspecs/features/*.prf
%{_datadir}/qt5/translations/*.ts


%prep
%setup -q -n %{name}-%{version}
cd fresh.git
%patch0 -p1

%build
find -name '*.prf' -o -name '*.pro' -exec sed -i 's/QMAKE_RPATHDIR/# QMAKE_RPATHDIR/gi' '{}' \;
qmake-qt5 -r PREFIX=%{buildroot}/usr qwbfs.pro
make %{?_smp_mflags}

%install
make INSTALL_ROOT=%{buildroot} install
mkdir -p %{buildroot}/%{_bindir}
find %{buildroot}/home/ -name qwbfsmanager -exec mv '{}' %{buildroot}/%{_bindir}/ \;
# nuke desktop/icon, don't care about that for now
rm -Rf %{buildroot}/home
openSUSE Build Service is sponsored by