partitionmanager/partitionmanager.spec

76 lines
2.2 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: partitionmanager
Version: 4.0.0
Release: 1mamba
Summary: KDE 5 partition manager
Group: Graphical Desktop/Applications/Administration
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.kde.org
Source: https://download.kde.org/stable/partitionmanager/%{version}/src/partitionmanager-%{version}.tar.xz
# Source: http://download.kde.org/stable/frameworks/%{majver}/...-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libkauth-devel
BuildRequires: libkcodecs-devel
BuildRequires: libkcompletion-devel
BuildRequires: libkconfig-devel
BuildRequires: libkconfigwidgets-devel
BuildRequires: libkcoreaddons-devel
BuildRequires: libkcrash-devel
BuildRequires: libkdbusaddons-devel
BuildRequires: libki18n-devel
BuildRequires: libkiconthemes-devel
BuildRequires: libkio-devel
BuildRequires: libkjobwidgets-devel
BuildRequires: libkpmcore-devel
BuildRequires: libkservice-devel
BuildRequires: libkwidgetsaddons-devel
BuildRequires: libkxmlgui-devel
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: rpm-macros-kde5
BuildRequires: extra-cmake-modules
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
KDE 5 partition manager.
%debug_package
%prep
%setup -q
%build
%cmake_kde5 -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%find_lang %{name}5_qt --with-qt --with-html --with-man --all-name || touch %{name}5_qt.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}5_qt.lang
%defattr(-,root,root)
%{_bindir}/partitionmanager
%{_datadir}/applications/org.kde.partitionmanager.desktop
%{_datadir}/config.kcfg/partitionmanager.kcfg
%{_datadir}/icons/hicolor/scalable/apps/partitionmanager.svg
%{_datadir}/kxmlgui5/partitionmanager/partitionmanagerui.rc
%{_datadir}/metainfo/org.kde.partitionmanager.appdata.xml
%doc COPYING.md
%changelog
* Sat Oct 05 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.0-1mamba
- package created using the webbuild interface