Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 021e9d190bfe3b00950cbbabc66a76bd > files > 2

pcmanfm-qt-0.9.0-1.mga5.src.rpm

%define major 2
%define libname %mklibname fm-qt %major
%define devname %mklibname -d fm-qt

Name: pcmanfm-qt
Version: 0.9.0
Release: %mkrel 1
Source0: http://downloads.lxqt.org/lxqt/%{version}/%{name}-%{version}.tar.xz
Summary: File manager for the LXQt desktop
URL: http://lxqt.org/
License: GPLv2+
Group: Graphical desktop/KDE
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: pkgconfig(libfm) >= 1.2.0
BuildRequires: pkgconfig(libmenu-cache)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(lxqt)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(Qt5Help)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5X11Extras)
# recommended for kwin and kdesu for "run as root" functionality (mga#15088)
# changed to Recommends to allow parallel installation with plasma 5
Recommends: kdebase4-runtime

%description
File manager for the LXQt desktop

%package -n %{libname}
Summary: PCManFM Qt backend library
Group: System/Libraries

%description -n %{libname}
PCManFM Qt backend library

%package -n %{devname}
Summary: Development files for PCManFM
Group: Development/C
Requires: %libname = %version
Provides: %name-devel = %version-%release
Provides: lib%name-devel = %version-%release

%description -n %{devname}
Development files for PCManFM

%prep
%setup -q %{name}-%{version}

# change desktop file name and comment to distinguish it from pcmanfm
sed -i 's/File Manager/QT File Manager/' pcmanfm/pcmanfm-qt.desktop.in

# change gksu to kdesu as with gksu no icons are shown when running as root
sed -i 's|gksu %s|%_libdir/kde4/libexec/kdesu %s|g' pcmanfm/preferences.ui pcmanfm/settings.cpp pcmanfm/translations/pcmanfm-qt*.ts

%cmake -DBUILD_DOCUMENTATION=ON


%build
%make -C build

%install
%makeinstall_std -C build

desktop-file-install --add-category="System;FileTools" \
 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop

%files
%doc %{_defaultdocdir}/%{name}
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/libfm-qt/translations
%{_datadir}/%{name}/translations
%_mandir/man1/pcmanfm-qt.1.*

%files -n %{libname}
%{_libdir}/libfm-qt5.so.%{major}*

%files -n %{devname}
%{_libdir}/libfm-qt5.so
%{_libdir}/pkgconfig/libfm-qt5.pc
%{_includedir}/libfm-qt




%changelog
* Sun Feb 22 2015 doktor5000 <doktor5000> 0.9.0-1.mga5
+ Revision: 816435
- new version 0.9.0
- changed major from 1 to 2
- remove conditional handling for QT5 as QT4 is not supported anymore
- adjusted BuildRequires from pkgconfig(lxqt-qt5) to pkgconfig(lxqt)
- use new URL http://downloads.lxqt.org/lxqt/

* Wed Jan 21 2015 doktor5000 <doktor5000> 0.8.0-5.mga5
+ Revision: 811756
- change Requires on kdebase4-runtime to Recommends
  o allows parallel installation with plasma 5

* Tue Jan 20 2015 doktor5000 <doktor5000> 0.8.0-4.mga5
+ Revision: 811608
- added Requires on kdebase4-runtime for kwin and kdesu
- use kdesu instead as gksu for "run as root" functionality (mga#15088)
  o when run via gksu, no icons are shown

* Wed Dec 17 2014 doktor5000 <doktor5000> 0.8.0-3.mga5
+ Revision: 803666
- rebuild for QT 5.4 breakage

* Mon Oct 27 2014 doktor5000 <doktor5000> 0.8.0-2.mga5
+ Revision: 793984
- change name and comment in .desktop file to distinguish it from pcmanfm

* Sun Oct 19 2014 doktor5000 <doktor5000> 0.8.0-1.mga5
+ Revision: 789996
- new version 0.8
- enabled QT5 build
- change major to 1, use proper major in files list and for %%mklibname
- correct license

* Wed Oct 15 2014 umeabot <umeabot> 0.7.0-3.mga5
+ Revision: 739166
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.7.0-2.mga5
+ Revision: 683368
- Mageia 5 Mass Rebuild

* Sun May 25 2014 doktor5000 <doktor5000> 0.7.0-1.mga5
+ Revision: 626347
- use %%mkrel
- added missing BuildRequires
- added conditional support for QT5, added QT5 BuildRequires
- enable building of documentation, reenabled -debuginfo packages
- added proper Provides/Requires for -devel package
- extend Categories of .desktop file
- imported package pcmanfm-qt


* Thu May 08 2014 Rosa <rosa@abf.rosalinux.ru> 0.7.0-1
+ Revision: a547087
- Automatic import for version 0.7.0-1