forked from pool/kdelibs4support
This commit is contained in:
parent
0b37b609a6
commit
7ae428f17f
@ -16,39 +16,40 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without lang
|
||||||
%define lname libKF5KDELibs4Support5
|
%define lname libKF5KDELibs4Support5
|
||||||
%define _tar_path 5.9
|
%define _tar_path 5.9
|
||||||
Name: kdelibs4support
|
Name: kdelibs4support
|
||||||
Version: %{_tar_path}.0
|
Version: 5.9.0
|
||||||
Release: 0
|
Release: 0
|
||||||
%define kf5_version %{version}
|
%define kf5_version %{version}
|
||||||
BuildRequires: NetworkManager-devel
|
BuildRequires: NetworkManager-devel
|
||||||
BuildRequires: cmake >= 2.8.12
|
BuildRequires: cmake >= 2.8.12
|
||||||
BuildRequires: extra-cmake-modules >= %{version}
|
BuildRequires: extra-cmake-modules >= %{_tar_path}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: kbookmarks-devel >= %{kf5_version}
|
BuildRequires: kbookmarks-devel >= %{_tar_path}
|
||||||
BuildRequires: kcompletion-devel >= %{kf5_version}
|
BuildRequires: kcompletion-devel >= %{_tar_path}
|
||||||
BuildRequires: kconfig-devel >= %{kf5_version}
|
BuildRequires: kconfig-devel >= %{_tar_path}
|
||||||
BuildRequires: kconfigwidgets-devel >= %{kf5_version}
|
BuildRequires: kconfigwidgets-devel >= %{_tar_path}
|
||||||
BuildRequires: kcrash-devel >= %{kf5_version}
|
BuildRequires: kcrash-devel >= %{_tar_path}
|
||||||
BuildRequires: kdbusaddons-devel >= %{kf5_version}
|
BuildRequires: kdbusaddons-devel >= %{_tar_path}
|
||||||
BuildRequires: kdesignerplugin-devel >= %{kf5_version}
|
BuildRequires: kdesignerplugin-devel >= %{_tar_path}
|
||||||
BuildRequires: kdoctools-devel >= %{kf5_version}
|
BuildRequires: kdoctools-devel >= %{_tar_path}
|
||||||
BuildRequires: kf5-filesystem
|
BuildRequires: kf5-filesystem
|
||||||
BuildRequires: kglobalaccel-devel >= %{kf5_version}
|
BuildRequires: kglobalaccel-devel >= %{_tar_path}
|
||||||
BuildRequires: kguiaddons-devel >= %{kf5_version}
|
BuildRequires: kguiaddons-devel >= %{_tar_path}
|
||||||
BuildRequires: ki18n-devel >= %{kf5_version}
|
BuildRequires: ki18n-devel >= %{_tar_path}
|
||||||
BuildRequires: kiconthemes-devel >= %{kf5_version}
|
BuildRequires: kiconthemes-devel >= %{_tar_path}
|
||||||
BuildRequires: kio-devel >= %{kf5_version}
|
BuildRequires: kio-devel >= %{_tar_path}
|
||||||
BuildRequires: kitemviews-devel >= %{kf5_version}
|
BuildRequires: kitemviews-devel >= %{_tar_path}
|
||||||
BuildRequires: knotifications-devel >= %{kf5_version}
|
BuildRequires: knotifications-devel >= %{_tar_path}
|
||||||
BuildRequires: kparts-devel >= %{kf5_version}
|
BuildRequires: kparts-devel >= %{_tar_path}
|
||||||
BuildRequires: kservice-devel >= %{kf5_version}
|
BuildRequires: kservice-devel >= %{_tar_path}
|
||||||
BuildRequires: ktextwidgets-devel >= %{kf5_version}
|
BuildRequires: ktextwidgets-devel >= %{_tar_path}
|
||||||
BuildRequires: kunitconversion-devel >= %{kf5_version}
|
BuildRequires: kunitconversion-devel >= %{_tar_path}
|
||||||
BuildRequires: kwidgetsaddons-devel >= %{kf5_version}
|
BuildRequires: kwidgetsaddons-devel >= %{_tar_path}
|
||||||
BuildRequires: kwindowsystem-devel >= %{kf5_version}
|
BuildRequires: kwindowsystem-devel >= %{_tar_path}
|
||||||
BuildRequires: kxmlgui-devel >= %{kf5_version}
|
BuildRequires: kxmlgui-devel >= %{_tar_path}
|
||||||
BuildRequires: perl-URI
|
BuildRequires: perl-URI
|
||||||
BuildRequires: pkgconfig(Qt5Concurrent) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5Concurrent) >= 5.2.0
|
||||||
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
||||||
@ -63,7 +64,9 @@ BuildRequires: pkgconfig(Qt5X11Extras) >= 5.2.0
|
|||||||
BuildRequires: pkgconfig(openssl)
|
BuildRequires: pkgconfig(openssl)
|
||||||
BuildRequires: pkgconfig(sm)
|
BuildRequires: pkgconfig(sm)
|
||||||
BuildRequires: pkgconfig(x11)
|
BuildRequires: pkgconfig(x11)
|
||||||
|
%if %{with lang}
|
||||||
Recommends: %{name}-lang = %{version}
|
Recommends: %{name}-lang = %{version}
|
||||||
|
%endif
|
||||||
Provides: kde4support = %{version}
|
Provides: kde4support = %{version}
|
||||||
Obsoletes: kde4support < %{version}
|
Obsoletes: kde4support < %{version}
|
||||||
Summary: Code and utilities to ease the transition to KDE Frameworks 5
|
Summary: Code and utilities to ease the transition to KDE Frameworks 5
|
||||||
@ -141,24 +144,24 @@ Requires: %{name} = %{version}
|
|||||||
Provides: kde4support-devel = %{version}
|
Provides: kde4support-devel = %{version}
|
||||||
Obsoletes: kde4support-devel < %{version}
|
Obsoletes: kde4support-devel < %{version}
|
||||||
Requires: extra-cmake-modules
|
Requires: extra-cmake-modules
|
||||||
Requires: karchive-devel >= %{kf5_version}
|
Requires: karchive-devel >= %{_tar_path}
|
||||||
Requires: kauth-devel >= %{kf5_version}
|
Requires: kauth-devel >= %{_tar_path}
|
||||||
Requires: kconfigwidgets-devel >= %{kf5_version}
|
Requires: kconfigwidgets-devel >= %{_tar_path}
|
||||||
Requires: kcoreaddons-devel >= %{kf5_version}
|
Requires: kcoreaddons-devel >= %{_tar_path}
|
||||||
Requires: kcrash-devel >= %{kf5_version}
|
Requires: kcrash-devel >= %{_tar_path}
|
||||||
Requires: kdbusaddons-devel >= %{kf5_version}
|
Requires: kdbusaddons-devel >= %{_tar_path}
|
||||||
Requires: kdesignerplugin-devel >= %{kf5_version}
|
Requires: kdesignerplugin-devel >= %{_tar_path}
|
||||||
Requires: kdoctools-devel >= %{kf5_version}
|
Requires: kdoctools-devel >= %{_tar_path}
|
||||||
Requires: kemoticons-devel >= %{kf5_version}
|
Requires: kemoticons-devel >= %{_tar_path}
|
||||||
Requires: kguiaddons-devel >= %{kf5_version}
|
Requires: kguiaddons-devel >= %{_tar_path}
|
||||||
Requires: kiconthemes-devel >= %{kf5_version}
|
Requires: kiconthemes-devel >= %{_tar_path}
|
||||||
Requires: kinit-devel >= %{kf5_version}
|
Requires: kinit-devel >= %{_tar_path}
|
||||||
Requires: kitemmodels-devel >= %{kf5_version}
|
Requires: kitemmodels-devel >= %{_tar_path}
|
||||||
Requires: knotifications-devel >= %{kf5_version}
|
Requires: knotifications-devel >= %{_tar_path}
|
||||||
Requires: kparts-devel >= %{kf5_version}
|
Requires: kparts-devel >= %{_tar_path}
|
||||||
Requires: ktextwidgets-devel >= %{kf5_version}
|
Requires: ktextwidgets-devel >= %{_tar_path}
|
||||||
Requires: kunitconversion-devel >= %{kf5_version}
|
Requires: kunitconversion-devel >= %{_tar_path}
|
||||||
Requires: kwindowsystem-devel >= %{kf5_version}
|
Requires: kwindowsystem-devel >= %{_tar_path}
|
||||||
Requires: pkgconfig(Qt5Core) >= 5.2.0
|
Requires: pkgconfig(Qt5Core) >= 5.2.0
|
||||||
Requires: pkgconfig(Qt5DBus) >= 5.2.0
|
Requires: pkgconfig(Qt5DBus) >= 5.2.0
|
||||||
Requires: pkgconfig(Qt5PrintSupport) >= 5.2.0
|
Requires: pkgconfig(Qt5PrintSupport) >= 5.2.0
|
||||||
@ -192,7 +195,7 @@ KDEDIRS environment variable correctly. Development files.
|
|||||||
%kf5_makeinstall -C build
|
%kf5_makeinstall -C build
|
||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}
|
||||||
|
|
||||||
if [ -e po ]; then
|
%if %{with lang}
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
echo "%doc %lang(de) %{_kf5_mandir}/de" >>%{name}.lang
|
echo "%doc %lang(de) %{_kf5_mandir}/de" >>%{name}.lang
|
||||||
echo "%doc %lang(nl) %{_kf5_mandir}/nl" >>%{name}.lang
|
echo "%doc %lang(nl) %{_kf5_mandir}/nl" >>%{name}.lang
|
||||||
@ -204,15 +207,15 @@ echo "%doc %lang(nl) %{_kf5_htmldir}/nl" >>%{name}.lang
|
|||||||
echo "%doc %lang(pt_BR) %{_kf5_htmldir}/pt_BR" >>%{name}.lang
|
echo "%doc %lang(pt_BR) %{_kf5_htmldir}/pt_BR" >>%{name}.lang
|
||||||
echo "%doc %lang(sv) %{_kf5_htmldir}/sv" >>%{name}.lang
|
echo "%doc %lang(sv) %{_kf5_htmldir}/sv" >>%{name}.lang
|
||||||
echo "%doc %lang(uk) %{_kf5_htmldir}/uk" >>%{name}.lang
|
echo "%doc %lang(uk) %{_kf5_htmldir}/uk" >>%{name}.lang
|
||||||
else
|
%endif
|
||||||
touch %{name}.lang
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%if %{with lang}
|
||||||
%files lang -f %{name}.lang
|
%files lang -f %{name}.lang
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user