libqt5xdg/libqt5xdg.spec

86 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libqt5xdg
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libqt5xdg
Version: 1.1.0
Release: 0
Summary: Qt implementation of xdg specs for lxqt
License: GPL-3.0
Group: Development/Libraries/C and C++
Url: https://lxqt.org
Source: http://downloads.lxqt.org/libqtxdg/%{version}/libqtxdg-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: file-devel
BuildRequires: gcc-c++
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Qt implementation of freedesktop.org xdg specs for lxqt
%package -n libQt5Xdg1
Summary: Libraries for qtxdg
Group: System/Libraries
Provides: libqtxdg
%description -n libQt5Xdg1
qtxdg libraries for development
%package devel
Summary: Devel files for libqtxdg
Group: Development/Libraries/C and C++
Requires: libQt5Xdg1 = %{version}
Requires: pkg-config
Requires: pkgconfig(Qt5UiTools)
%description devel
qtxdg libraries for development
%prep
%setup -q -n libqtxdg-%{version}
%build
%cmake
%__make %{?_smp_mflags}
%install
%cmake_install
%fdupes -s %{buildroot}/%{_datadir}/locale
%post -n libQt5Xdg1 -p /sbin/ldconfig
%postun -n libQt5Xdg1 -p /sbin/ldconfig
%files -n libQt5Xdg1
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_libdir}/libQt5Xdg.so.1
%{_libdir}/libQt5Xdg.so.1.0.0
%files devel
%defattr(-,root,root)
%{_datadir}/cmake/qt5xdg
%{_includedir}/qt5xdg
%{_libdir}/pkgconfig/Qt5Xdg.pc
%{_libdir}/libQt5Xdg.so
%changelog