Dan Vrátil fdc2f2
%global framework kservice
Dan Vrátil b1f74a
Rex Dieter 333c94
Name:    kf5-%{framework}
Rex Dieter 333c94
Summary: KDE Frameworks 5 Tier 3 solution for advanced plugin and service introspection
3ff646
Version: 5.25.0
Rex Dieter 6c2742
Release: 1%{?dist}
Dan Vrátil b1f74a
Rex Dieter 333c94
# mixture of LGPLv2 and LGPLv2+ (mostly the latter)
Rex Dieter 333c94
License: LGPLv2
Rex Dieter 47b0e3
URL:     https://quickgit.kde.org/?p=%{framework}.git
Dan Vrátil 830663
Dan Vrátil 57c44b
%global versiondir %(echo %{version} | cut -d. -f1-2)
Dan Vrátil 830663
%global revision %(echo %{version} | cut -d. -f3)
Dan Vrátil 830663
%if %{revision} >= 50
Dan Vrátil 830663
%global stable unstable
Dan Vrátil 830663
%else
Dan Vrátil 830663
%global stable stable
Dan Vrátil 830663
%endif
Rex Dieter 58aa8a
Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz
Dan Vrátil b1f74a
Rex Dieter 0c51e9
## upstream patches
Rex Dieter 0c51e9
Rex Dieter 58aa8a
## downstream patches
Rex Dieter e175d5
# Fedora customizations to the menu categories
Rex Dieter e175d5
# adds the Administration menu from redhat-menus which equals System + Settings
Rex Dieter e175d5
# This prevents the stuff getting listed twice, under both System and Settings.
Rex Dieter 0c51e9
Patch100:  kservice-5.15.0-xdg-menu.patch
Rex Dieter e175d5
Rex Dieter bd7da7
# kbuildsycoca5 always gives:
Rex Dieter bd7da7
# kf5.kservice.sycoca: Parse error in  "$HOME/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu" , line  1 , col  1 :  "unexpected end of file"
Rex Dieter bd7da7
# hide that by default, make it qCDebug instead (of qCWarning)
Rex Dieter 0c51e9
Patch101:  kservice-5.17.0-vfolder_spam.patch
Rex Dieter bd7da7
6dad25
# Workaround flex bug (https://bugzilla.redhat.com/show_bug.cgi?id=1364943)
6dad25
Patch102:  kservice-5.25-fix-build-with-flex-2.6.0.patch
6dad25
Daniel Vrátil b0aa9d
BuildRequires:  extra-cmake-modules >= %{version}
Daniel Vrátil b0aa9d
BuildRequires:  kf5-kconfig-devel >= %{version}
Daniel Vrátil b0aa9d
BuildRequires:  kf5-kcoreaddons-devel >= %{version}
Daniel Vrátil b0aa9d
BuildRequires:  kf5-kcrash-devel >= %{version}
Daniel Vrátil b0aa9d
BuildRequires:  kf5-kdbusaddons-devel >= %{version}
Daniel Vrátil b0aa9d
BuildRequires:  kf5-kdoctools-devel >= %{version}
Daniel Vrátil b0aa9d
BuildRequires:  kf5-ki18n-devel >= %{version}
Daniel Vrátil b0aa9d
BuildRequires:  kf5-rpm-macros >= %{version}
Rex Dieter 333c94
BuildRequires:  qt5-qtbase-devel
Dan Vrátil b1f74a
9b3716
BuildRequires:  flex
9b3716
BuildRequires:  bison
9b3716
Daniel Vrátil b0aa9d
Requires:       kf5-filesystem >= %{version}
Rex Dieter e175d5
# for the Administration category
Rex Dieter e175d5
Requires:       redhat-menus
Kevin Kofler 294397
Dan Vrátil b1f74a
%description
Dan Vrátil b1f74a
KDE Frameworks 5 Tier 3 solution for advanced plugin and service
Dan Vrátil b1f74a
introspection.
Dan Vrátil b1f74a
Dan Vrátil b1f74a
%package        devel
Dan Vrátil b1f74a
Summary:        Development files for %{name}
Dan Vrátil b1f74a
Requires:       %{name}%{?_isa} = %{version}-%{release}
Daniel Vrátil b0aa9d
Requires:       kf5-kconfig-devel >= %{version}
Daniel Vrátil b0aa9d
Requires:       kf5-kcoreaddons-devel >= %{version}
Dan Vrátil b1f74a
%description    devel
Dan Vrátil b1f74a
The %{name}-devel package contains libraries and header files for
Dan Vrátil b1f74a
developing applications that use %{name}.
Dan Vrátil b1f74a
Dan Vrátil 830663
Dan Vrátil b1f74a
%prep
Rex Dieter 71a60d
%autosetup -n %{framework}-%{version} -p1
Rex Dieter e175d5
Rex Dieter f1f30d
Dan Vrátil b1f74a
%build
Rex Dieter f1f30d
mkdir %{_target_platform}
Dan Vrátil b1f74a
pushd %{_target_platform}
Dan Vrátil b1f74a
%{cmake_kf5} ..
Dan Vrátil b1f74a
popd
Dan Vrátil b1f74a
Dan Vrátil b1f74a
make %{?_smp_mflags} -C %{_target_platform}
Dan Vrátil b1f74a
Rex Dieter f1f30d
Dan Vrátil b1f74a
%install
Dan Vrátil d580e5
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
Rex Dieter 58aa8a
Rex Dieter c1ede1
%find_lang kservice5_qt --with-man --with-qt --all-name
Dan Vrátil b1f74a
Rex Dieter f1f30d
mv %{buildroot}%{_kf5_sysconfdir}/xdg/menus/applications.menu %{buildroot}/%{_kf5_sysconfdir}/xdg/menus/kf5-applications.menu
Dan Vrátil b1f74a
Rex Dieter f1f30d
mkdir -p %{buildroot}%{_kf5_datadir}/kservices5
Rex Dieter f1f30d
mkdir -p %{buildroot}%{_kf5_datadir}/kservicetypes5
Dan Vrátil 6dfe5f
Dan Vrátil b1f74a
Dan Vrátil 830663
%post -p /sbin/ldconfig
Dan Vrátil b1f74a
%postun -p /sbin/ldconfig
Dan Vrátil b1f74a
Dan Vrátil b1f74a
%files -f kservice5_qt.lang
Rex Dieter 333c94
%doc README.md
Rex Dieter 333c94
%license COPYING.LIB
Rex Dieter f1f30d
# this is not a config file, despite rpmlint complaining otherwise -- rex
Rex Dieter f1f30d
%{_kf5_sysconfdir}/xdg/menus/kf5-applications.menu
Dan Vrátil b1f74a
%{_kf5_bindir}/kbuildsycoca5
Rex Dieter 333c94
%{_kf5_libdir}/libKF5Service.so.5*
Rex Dieter f1f30d
%{_kf5_datadir}/kservicetypes5/
Rex Dieter f1f30d
%{_kf5_datadir}/kservices5/
Rex Dieter c1ede1
%{_kf5_mandir}/man8/*.8*
Dan Vrátil b1f74a
Dan Vrátil b1f74a
%files devel
Dan Vrátil b1f74a
%{_kf5_includedir}/kservice_version.h
Rex Dieter f1f30d
%{_kf5_includedir}/KService/
Dan Vrátil b1f74a
%{_kf5_libdir}/libKF5Service.so
Rex Dieter f1f30d
%{_kf5_libdir}/cmake/KF5Service/
Dan Vrátil b1f74a
%{_kf5_archdatadir}/mkspecs/modules/qt_KService.pri
Dan Vrátil b1f74a
Dan Vrátil b1f74a
Dan Vrátil b1f74a
%changelog
3ff646
* Mon Aug 08 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.25.0-1
3ff646
- KDE Frameworks 5.25.0
3ff646
Daniel Vrátil dafd9f
* Wed Jul 06 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.24.0-1
Daniel Vrátil dafd9f
- KDE Frameworks 5.24.0
Daniel Vrátil dafd9f
Rex Dieter 6c2742
* Tue Jun 07 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.23.0-1
Rex Dieter 6c2742
- KDE Frameworks 5.23.0
Rex Dieter 6c2742
Rex Dieter 47b0e3
* Tue Jun 07 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.22.0-2
Rex Dieter 47b0e3
- update URL
Rex Dieter 47b0e3
Rex Dieter 7c519c
* Mon May 16 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.22.0-1
Rex Dieter 7c519c
- KDE Frameworks 5.22.0
Rex Dieter 7c519c
Rex Dieter 346ac3
* Mon Apr 04 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.21.0-1
Rex Dieter 346ac3
- KDE Frameworks 5.21.0
Rex Dieter 346ac3
Daniel Vrátil 0a6f78
* Mon Mar 14 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.20.0-1
Daniel Vrátil 0a6f78
- KDE Frameworks 5.20.0
Daniel Vrátil 0a6f78
Rex Dieter 0c51e9
* Mon Mar 07 2016 Rex Dieter <rdieter@fedoraproject.org> 5.19.0-2
Rex Dieter 0c51e9
- backport ktraderclient5 fix for x-scheme-handler's (#1308384,kde#358159)
Rex Dieter 0c51e9
Daniel Vrátil b4273a
* Thu Feb 11 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.19.0-1
Daniel Vrátil b4273a
- KDE Frameworks 5.19.0
Daniel Vrátil b4273a
f74968
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.18.0-3
f74968
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f74968
Rex Dieter 58aa8a
* Thu Jan 14 2016 Rex Dieter <rdieter@fedoraproject.org> 5.18.0-2
Rex Dieter 58aa8a
- cosmetics, -BR: cmake, update URL
Rex Dieter 58aa8a
Daniel Vrátil b0aa9d
* Sun Jan 03 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.18.0-1
Daniel Vrátil b0aa9d
- KDE Frameworks 5.18.0
Daniel Vrátil b0aa9d
Rex Dieter bd7da7
* Wed Dec 09 2015 Rex Dieter <rdieter@fedoraproject.org> 5.17.0-2
Rex Dieter bd7da7
- reduce kbuildsycoca5 warning(spam) output
Rex Dieter bd7da7
Dan Vrátil fbb15c
* Tue Dec 08 2015 Daniel Vrátil <dvratil@fedoraproject.org> - 5.17.0-1
Dan Vrátil fbb15c
- KDE Frameworks 5.17.0
Dan Vrátil fbb15c
Dan Vrátil 43bd31
* Sun Nov 08 2015 Daniel Vrátil <dvratil@fedoraproject.org> - 5.16.0-1
Dan Vrátil 43bd31
- KDE Frameworks 5.16.0
Dan Vrátil 43bd31
Rex Dieter 71a60d
* Tue Oct 27 2015 Rex Dieter <rdieter@fedoraproject.org> 5.15.0-2
Rex Dieter 71a60d
- backport 'kbuildsysoca always save' commit
Rex Dieter 71a60d
Dan Vrátil 724dfc
* Thu Oct 08 2015 Daniel Vrátil <dvratil@redhat.com> - 5.15.0-1
Dan Vrátil 724dfc
- KDE Frameworks 5.15.0
Dan Vrátil 724dfc
Rex Dieter e175d5
* Thu Oct 08 2015 Rex Dieter <rdieter@fedoraproject.org> 5.14.3-3
Rex Dieter e175d5
- restore xdg-menu patch
Rex Dieter e175d5
Rex Dieter 333c94
* Wed Oct 07 2015 Rex Dieter <rdieter@fedoraproject.org> 5.14.3-2
Rex Dieter 333c94
- .spec cosmetics, update URL/License, use %%license
Rex Dieter 333c94
Rex Dieter 1f3458
* Tue Sep 22 2015 Rex Dieter <rdieter@fedoraproject.org> 5.14.3-1
Rex Dieter 1f3458
- kservice-5.14.3
Rex Dieter 1f3458
Dan Vrátil 52912e
* Wed Sep 16 2015 Daniel Vrátil <dvratil@redhat.com> - 5.14.0-1
Dan Vrátil 52912e
- KDE Frameworks 5.14.0
Dan Vrátil 52912e
Dan Vrátil c782b4
* Wed Aug 19 2015 Daniel Vrátil <dvratil@redhat.com> - 5.13.0-1
Dan Vrátil c782b4
- KDE Frameworks 5.13.0
Dan Vrátil c782b4
Dan Vrátil c782b4
* Wed Aug 19 2015 Daniel Vrátil <dvratil@redhat.com> - 5.13.0-1
Dan Vrátil c782b4
- KDE Frameworks 5.13.0
Kevin Kofler 294397
Dan Vrátil c782b4
* Tue Aug 11 2015 Daniel Vrátil <dvratil@redhat.com> - 5.13.0-0.1
Dan Vrátil c782b4
- KDE Frameworks 5.13
Kevin Kofler 6f662a
Rex Dieter be01de
* Fri Jul 10 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.12.0-1
Rex Dieter be01de
- 5.12.0
Rex Dieter be01de
3333a0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.11.0-2
3333a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3333a0
Dan Vrátil 172bf3
* Wed Jun 10 2015 Daniel Vrátil <dvratil@redhat.com> - 5.11.0-1
Dan Vrátil 172bf3
- KDE Frameworks 5.11.0
Dan Vrátil 172bf3
Rex Dieter d3216e
* Wed May 20 2015 Rex Dieter <rdieter@fedoraproject.org> 5.10.0-4
Rex Dieter d3216e
- drop no_debug patch, fixed better elsewhere (qt-settings)
Rex Dieter d3216e
Rex Dieter c1ede1
* Tue May 19 2015 Rex Dieter <rdieter@fedoraproject.org> 5.10.0-3
Rex Dieter c1ede1
- use %%find_lang --with-man for localized manpages
Rex Dieter c1ede1
Rex Dieter f1f30d
* Tue May 19 2015 Rex Dieter <rdieter@fedoraproject.org> 5.10.0-2
Rex Dieter f1f30d
- .spec cosmetics, disable debug output
Rex Dieter f1f30d
Dan Vrátil 09b8d2
* Mon May 11 2015 Daniel Vrátil <dvratil@redhat.com> - 5.10.0-1
Dan Vrátil 09b8d2
- KDE Frameworks 5.10.0
Dan Vrátil 09b8d2
4d7644
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.9.0-2
4d7644
- Rebuilt for GCC 5 C++11 ABI change
4d7644
Dan Vrátil 9757e1
* Tue Apr 07 2015 Daniel Vrátil <dvratil@redhat.com> - 5.9.0-1
Dan Vrátil 9757e1
- KDE Frameworks 5.9.0
Dan Vrátil 9757e1
Dan Vrátil 69ef0f
* Mon Mar 16 2015 Daniel Vrátil <dvratil@redhat.com> - 5.8.0-1
Dan Vrátil 69ef0f
- KDE Frameworks 5.8.0
Dan Vrátil 69ef0f
Dan Vrátil 41407f
* Fri Feb 27 2015 Daniel Vrátil <dvratil@redhat.com> - 5.7.0-2
Dan Vrátil 41407f
- Rebuild (GCC 5)
Dan Vrátil 41407f
Dan Vrátil e1d6b1
* Mon Feb 16 2015 Daniel Vrátil <dvratil@redhat.com> - 5.7.0-1
Dan Vrátil e1d6b1
- KDE Frameworks 5.7.0
Dan Vrátil e1d6b1
Dan Vrátil e1d6b1
* Mon Feb 09 2015 Daniel Vrátil <dvratil@redhat.com> - 5.7.0-1
Dan Vrátil e1d6b1
- KDE Frameworks 5.7.0
Dan Vrátil e1d6b1
Dan Vrátil 6dfe5f
* Thu Jan 08 2015 Daniel Vrátil <dvratil@redhat.com> - 5.6.0-1
Dan Vrátil 6dfe5f
- KDE Frameworks 5.6.0
Dan Vrátil 6dfe5f
Dan Vrátil 57c44b
* Mon Dec 08 2014 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-1
Dan Vrátil 57c44b
- KDE Frameworks 5.5.0
Dan Vrátil 57c44b
Dan Vrátil 1c9eee
* Mon Nov 03 2014 Daniel Vrátil <dvratil@redhat.com> - 5.4.0-1
Dan Vrátil 1c9eee
- KDE Frameworks 5.4.0
Dan Vrátil 1c9eee
Dan Vrátil cc1f4b
* Tue Oct 07 2014 Daniel Vrátil <dvratil@redhat.com> - 5.3.0-1
Dan Vrátil cc1f4b
- KDE Frameworks 5.3.0
Dan Vrátil cc1f4b
Dan Vrátil e15c44
* Mon Sep 15 2014 Daniel Vrátil <dvratil@redhat.com> - 5.2.0-1
Dan Vrátil e15c44
- KDE Frameworks 5.2.0
Dan Vrátil e15c44
d5381a
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.0-2
d5381a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d5381a
Dan Vrátil 93c589
* Wed Aug 06 2014 Daniel Vrátil <dvratil@redhat.com> - 5.1.0-1
Dan Vrátil 93c589
- KDE Frameworks 5.1.0
Dan Vrátil 93c589
Dan Vrátil 9d66ac
* Wed Jul 09 2014 Daniel Vrátil <dvratil@redhat.com> - 5.0.0-1
Dan Vrátil 9d66ac
- KDE Frameworks 5.0.0
Dan Vrátil 9d66ac
Dan Vrátil b1f74a
* Tue Jun 03 2014 Daniel Vrátil <dvratil@redhat.com> - 4.100.0-1
Dan Vrátil b1f74a
- KDE Frameworks 4.100.0
Dan Vrátil b1f74a
Dan Vrátil b1f74a
* Mon May 05 2014 Daniel Vrátil <dvratil@redhat.com> - 4.99.0
Dan Vrátil b1f74a
- KDE Frameworks 4.99.0
Dan Vrátil b1f74a
Dan Vrátil b1f74a
* Mon Mar 31 2014 Jan Grulich <jgrulich@redhat.com> 4.98.0-1
Dan Vrátil b1f74a
- Update to KDE Frameworks 5 Beta 1 (4.98.0)
Dan Vrátil b1f74a
Dan Vrátil b1f74a
* Wed Mar 05 2014 Jan Grulich <jgrulich@redhat.com> 4.97.0-1
Dan Vrátil b1f74a
- Update to KDE Frameworks 5 Alpha 1 (4.97.0)
Dan Vrátil b1f74a
Dan Vrátil b1f74a
* Wed Feb 12 2014 Daniel Vrátil <dvratil@redhat.com> 4.96.0-1
Dan Vrátil b1f74a
- Update to KDE Frameworks 5 Alpha 1 (4.96.0)
Dan Vrátil b1f74a
Dan Vrátil b1f74a
* Wed Feb 05 2014 Daniel Vrátil <dvratil@redhat.com> 4.96.0-0.1.20140205git
Dan Vrátil b1f74a
- Update to pre-relase snapshot of 4.96.0
Dan Vrátil b1f74a
Dan Vrátil b1f74a
* Thu Jan 16 2014 Daniel Vrátil <dvratil@redhat.com> 4.95.0-2
Dan Vrátil b1f74a
- rebuild against new kf5-filesystem
Dan Vrátil b1f74a
Dan Vrátil b1f74a
* Thu Jan 09 2014 Daniel Vrátil <dvratil@redhat.com> 4.95.0-1
Dan Vrátil b1f74a
- Update to KDE Frameworks 5 TP1 (4.95.0)
Dan Vrátil b1f74a
Dan Vrátil b1f74a
* Sat Jan  4 2014 Daniel Vrátil <dvratil@redhat.com>
Dan Vrátil b1f74a
- initial version