A new user interface for you! Read more...

File qwbfsmanager.spec of Package qwbfs

Name:          qwbfsmanager
BuildRequires: libqt5-qtbase-devel, libudev-devel, libopenssl-devel
License:       GPLv2
Group:         System/Management
Summary:       A User Interface to manager files for WII using WBFS filesystem
Version:       1.2.5
Release:       1
URL:           https://github.com/pasnox/qwbfsmanager
Source0:       %{name}-%{version}.tar.gz

%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}

%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