forked from pool/kbookmarks
This commit is contained in:
parent
61e72a0f0a
commit
98fd762d32
@ -16,24 +16,27 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without lang
|
||||||
%define lname libKF5Bookmarks5
|
%define lname libKF5Bookmarks5
|
||||||
%define _tar_path 5.9
|
%define _tar_path 5.9
|
||||||
Name: kbookmarks
|
Name: kbookmarks
|
||||||
Version: %{_tar_path}.0
|
Version: 5.9.0
|
||||||
Release: 0
|
Release: 0
|
||||||
%define kf5_version %{version}
|
%define kf5_version %{version}
|
||||||
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: kcodecs-devel >= %{kf5_version}
|
BuildRequires: kcodecs-devel >= %{_tar_path}
|
||||||
BuildRequires: kconfig-devel >= %{kf5_version}
|
BuildRequires: kconfig-devel >= %{_tar_path}
|
||||||
BuildRequires: kconfigwidgets-devel >= %{kf5_version}
|
BuildRequires: kconfigwidgets-devel >= %{_tar_path}
|
||||||
BuildRequires: kcoreaddons-devel >= %{kf5_version}
|
BuildRequires: kcoreaddons-devel >= %{_tar_path}
|
||||||
BuildRequires: kf5-filesystem
|
BuildRequires: kf5-filesystem
|
||||||
BuildRequires: kiconthemes-devel >= %{kf5_version}
|
BuildRequires: kiconthemes-devel >= %{_tar_path}
|
||||||
BuildRequires: kwidgetsaddons-devel >= %{kf5_version}
|
BuildRequires: kwidgetsaddons-devel >= %{_tar_path}
|
||||||
BuildRequires: kxmlgui-devel >= %{kf5_version}
|
BuildRequires: kxmlgui-devel >= %{_tar_path}
|
||||||
|
%if %{with lang}
|
||||||
BuildRequires: libqt5-linguist-devel >= 5.2.0
|
BuildRequires: libqt5-linguist-devel >= 5.2.0
|
||||||
|
%endif
|
||||||
Requires: pkgconfig(Qt5DBus) >= 5.2.0
|
Requires: pkgconfig(Qt5DBus) >= 5.2.0
|
||||||
Requires: pkgconfig(Qt5Widgets) >= 5.2.0
|
Requires: pkgconfig(Qt5Widgets) >= 5.2.0
|
||||||
Requires: pkgconfig(Qt5Xml) >= 5.2.0
|
Requires: pkgconfig(Qt5Xml) >= 5.2.0
|
||||||
@ -51,7 +54,9 @@ Framework which lets you access and manipulate bookmarks stored using XBEL forma
|
|||||||
%package -n %lname
|
%package -n %lname
|
||||||
Summary: Lets you access and manipulate bookmarks stored using XBEL format
|
Summary: Lets you access and manipulate bookmarks stored using XBEL format
|
||||||
Group: System/GUI/KDE
|
Group: System/GUI/KDE
|
||||||
|
%if %{with lang}
|
||||||
Recommends: %lname-lang = %{version}
|
Recommends: %lname-lang = %{version}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n %lname
|
%description -n %lname
|
||||||
Framework which lets you access and manipulate bookmarks stored using XBEL format
|
Framework which lets you access and manipulate bookmarks stored using XBEL format
|
||||||
@ -61,7 +66,7 @@ Summary: Lets you access and manipulate bookmarks stored using XBEL forma
|
|||||||
Group: Development/Libraries/KDE
|
Group: Development/Libraries/KDE
|
||||||
Requires: %lname = %{version}
|
Requires: %lname = %{version}
|
||||||
Requires: extra-cmake-modules
|
Requires: extra-cmake-modules
|
||||||
Requires: kwidgetsaddons-devel >= %{kf5_version}
|
Requires: kwidgetsaddons-devel >= %{_tar_path}
|
||||||
Requires: pkgconfig(Qt5Widgets) >= 5.2.0
|
Requires: pkgconfig(Qt5Widgets) >= 5.2.0
|
||||||
Requires: pkgconfig(Qt5Xml) >= 5.2.0
|
Requires: pkgconfig(Qt5Xml) >= 5.2.0
|
||||||
|
|
||||||
@ -79,19 +84,19 @@ Development files
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%kf5_makeinstall -C build
|
%kf5_makeinstall -C build
|
||||||
%fdupes %{buildroot}%{_kf5_sharedir}
|
%fdupes -s %{buildroot}
|
||||||
|
|
||||||
if [ -e po ]; then
|
%if %{with lang}
|
||||||
%find_lang %{name}5 --with-qt --without-mo
|
%find_lang %{name}5 --with-qt --without-mo
|
||||||
else
|
%endif
|
||||||
touch %{name}5.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 -n %lname-lang -f %{name}5.lang
|
%files -n %lname-lang -f %{name}5.lang
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %lname
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user