cddce5a
# Disabled, so that it does not conflict with Razor-Qt, which includes
cddce5a
# an older "pre-merge" version of this.
cddce5a
# See https://github.com/Razor-qt/razor-qt/wiki/Merge-LXDE-and-Razor-qt
cddce5a
%bcond_with qt4
cddce5a
%bcond_without qt5
cddce5a
cddce5a
Name:           libqtxdg
cddce5a
Summary:        Qt implementation of desktop specifications
c9ba2f9
Version:        0.5.3
c9ba2f9
Release:        1%{?dist}
cddce5a
Group:          Applications/System
cddce5a
License:        LGPLv2+
cddce5a
URL:            https://github.com/lxde/libqtxdg
c9ba2f9
Source0:        http://lxqt.org/downloads/%{name}/%{version}/%{name}-%{version}.tar.xz
cddce5a
cddce5a
BuildRequires:  cmake >= 2.8.3
cddce5a
BuildRequires:  file-devel
cddce5a
%if %with qt4
cddce5a
BuildRequires:  pkgconfig(QtCore)
cddce5a
BuildRequires:  pkgconfig(QtGui)
cddce5a
BuildRequires:  pkgconfig(QtXml)
cddce5a
%endif
cddce5a
%if %with qt5
cddce5a
BuildRequires:  pkgconfig(Qt5Widgets)
cddce5a
BuildRequires:  pkgconfig(Qt5Xml)
cddce5a
BuildRequires:  qt5-linguist
cddce5a
%endif
cddce5a
cddce5a
%description
cddce5a
Implementations of freedesktop.org XDG specifications from LXDE project for use 
cddce5a
with Qt library.
cddce5a
cddce5a
cddce5a
%package qt4
cddce5a
Summary:        Qt4 - implementation of desktop specifications
cddce5a
cddce5a
%description qt4
cddce5a
Implementations of freedesktop.org XDG specifications from LXDE project for use 
cddce5a
with Qt4 library.
cddce5a
cddce5a
cddce5a
%package qt4-devel
cddce5a
Summary:        Qt4 - development files for qtxdg
cddce5a
Requires:       cmake
cddce5a
Requires:       pkgconfig
cddce5a
Requires:       %{name}-qt4%{?_isa} = %{version}-%{release}
cddce5a
cddce5a
%description qt4-devel
cddce5a
Files used for developing and building software that uses qtxdg.
cddce5a
cddce5a
cddce5a
%package qt5
cddce5a
Summary:        Qt5 - implementation of desktop specifications
cddce5a
cddce5a
%description qt5
cddce5a
Implementations of freedesktop.org XDG specifications from LXDE project for use 
cddce5a
with Qt4 library.
cddce5a
cddce5a
cddce5a
%package qt5-devel
cddce5a
Summary:        Qt5 - development files for Qt5Xdg
cddce5a
Requires:       cmake
cddce5a
Requires:       pkgconfig
cddce5a
Requires:       %{name}-qt5%{?_isa} = %{version}-%{release}
cddce5a
cddce5a
%description qt5-devel
cddce5a
Files used for developing and building software that uses Qt5Xdg.
cddce5a
cddce5a
cddce5a
%prep
c9ba2f9
%setup -q -c
cddce5a
cddce5a
cddce5a
%build
cddce5a
%if %with qt4
cddce5a
mkdir build-qt4
cddce5a
cd build-qt4
cddce5a
%cmake ..
cddce5a
make %{?_smp_mflags}
cddce5a
cd ..
cddce5a
%endif
cddce5a
cddce5a
%if %with qt5
cddce5a
mkdir build-qt5
cddce5a
cd build-qt5
cddce5a
%cmake -DUSE_QT5=Yes ..
cddce5a
make %{?_smp_mflags}
cddce5a
cd ..
cddce5a
%endif
cddce5a
cddce5a
cddce5a
%install
cddce5a
%if %with qt4
cddce5a
make -C build-qt4 install DESTDIR=%{buildroot}
cddce5a
%endif
cddce5a
cddce5a
%if %with qt5
cddce5a
make -C build-qt5 install DESTDIR=%{buildroot}
cddce5a
%endif
cddce5a
cddce5a
cddce5a
%post qt4 -p /sbin/ldconfig
cddce5a
%postun qt4 -p /sbin/ldconfig
cddce5a
%post qt5 -p /sbin/ldconfig
cddce5a
%postun qt5 -p /sbin/ldconfig
cddce5a
cddce5a
cddce5a
%if %with qt4
cddce5a
%files qt4
cddce5a
%{_libdir}/libqtxdg.so.*
cddce5a
%{_datadir}/libqtxdg
cddce5a
%doc COPYING AUTHORS
cddce5a
cddce5a
%files qt4-devel
cddce5a
%{_libdir}/libqtxdg.so
cddce5a
%{_libdir}/pkgconfig/qtxdg.pc
cddce5a
%{_includedir}/qtxdg
cddce5a
%{_datadir}/cmake/qtxdg
cddce5a
%endif
cddce5a
cddce5a
cddce5a
%if %with qt5
cddce5a
%files qt5
cddce5a
%{_libdir}/libQt5Xdg.so.*
cddce5a
%{_datadir}/libqt5xdg
cddce5a
%doc COPYING AUTHORS
cddce5a
cddce5a
%files qt5-devel
cddce5a
%{_libdir}/libQt5Xdg.so
cddce5a
%{_libdir}/pkgconfig/Qt5Xdg.pc
cddce5a
%{_includedir}/qt5xdg
cddce5a
%{_datadir}/cmake/qt5xdg
cddce5a
%endif
cddce5a
cddce5a
cddce5a
%changelog
c9ba2f9
* Sun May 11 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.5.3-1
c9ba2f9
- Update to a later upstream release
c9ba2f9
cddce5a
* Tue Dec 03 2013 Lubomir Rintel <lkundrak@v3.sk> - 0.5.0-1
cddce5a
- Initial packaging