Dan Vrátil e13a4e2
%define framework kunitconversion
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
Name:           kf5-%{framework}
Dan Vrátil ce39260
Version:        5.4.0
Dan Vrátil f8c9688
Release:        1%{?dist}
Dan Vrátil e13a4e2
Summary:        KDE Frameworks 5 Tier 2 addon for unit conversions
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
License:        LGPLv2+
Dan Vrátil e13a4e2
URL:            http://www.kde.org
Dan Vrátil c9a8fa2
Dan Vrátil c9a8fa2
%global revision %(echo %{version} | cut -d. -f3)
Dan Vrátil c9a8fa2
%if %{revision} >= 50
Dan Vrátil c9a8fa2
%global stable unstable
Dan Vrátil c9a8fa2
%else
Dan Vrátil c9a8fa2
%global stable stable
Dan Vrátil c9a8fa2
%endif
Dan Vrátil c9a8fa2
Source0:        http://download.kde.org/%{stable}/frameworks/%{version}/%{framework}-%{version}.tar.xz
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
BuildRequires:  kf5-rpm-macros
Dan Vrátil e13a4e2
BuildRequires:  extra-cmake-modules
Dan Vrátil e13a4e2
BuildRequires:  qt5-qtbase-devel
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
BuildRequires:  kf5-ki18n-devel
Dan Vrátil e13a4e2
BuildRequires:  kf5-kconfig-devel
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
Requires:       kf5-filesystem
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
%description
Dan Vrátil e13a4e2
KDE Frameworks 5 Tier 2 addon for unit conversions.
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
%package        devel
Dan Vrátil e13a4e2
Summary:        Development files for %{name}
Dan Vrátil e13a4e2
Requires:       %{name}%{?_isa} = %{version}-%{release}
Dan Vrátil e13a4e2
Requires:       kf5-ki18n-devel
Dan Vrátil e13a4e2
Requires:       kf5-kconfig-devel
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
%description    devel
Dan Vrátil e13a4e2
The %{name}-devel package contains libraries and header files for
Dan Vrátil e13a4e2
developing applications that use %{name}.
Dan Vrátil e13a4e2
Dan Vrátil c9a8fa2
Dan Vrátil e13a4e2
%prep
Dan Vrátil e13a4e2
%setup -q -n %{framework}-%{version}
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
%build
Dan Vrátil e13a4e2
mkdir -p %{_target_platform}
Dan Vrátil e13a4e2
pushd %{_target_platform}
Dan Vrátil e13a4e2
%{cmake_kf5} ..
Dan Vrátil e13a4e2
popd
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
make %{?_smp_mflags} -C %{_target_platform}
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
%install
Dan Vrátil e13a4e2
%make_install -C %{_target_platform}
Dan Vrátil e13a4e2
%find_lang kunitconversion5_qt --with-qt --all-name
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
%post -p /sbin/ldconfig
Dan Vrátil e13a4e2
%postun -p /sbin/ldconfig
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
%files -f kunitconversion5_qt.lang
Dan Vrátil e13a4e2
%doc COPYING.LIB README.md
Dan Vrátil e13a4e2
%{_kf5_libdir}/libKF5UnitConversion.so.*
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
%files devel
Dan Vrátil e13a4e2
%{_kf5_includedir}/kunitconversion_version.h
Dan Vrátil e13a4e2
%{_kf5_includedir}/KUnitConversion
Dan Vrátil e13a4e2
%{_kf5_libdir}/libKF5UnitConversion.so
Dan Vrátil e13a4e2
%{_kf5_libdir}/cmake/KF5UnitConversion
Dan Vrátil e13a4e2
%{_kf5_archdatadir}/mkspecs/modules/qt_KUnitConversion.pri
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
%changelog
Dan Vrátil ce39260
* Mon Nov 03 2014 Daniel Vrátil <dvratil@redhat.com> - 5.4.0-1
Dan Vrátil ce39260
- KDE Frameworks 5.4.0
Dan Vrátil ce39260
Dan Vrátil eb9384e
* Tue Oct 07 2014 Daniel Vrátil <dvratil@redhat.com> - 5.3.0-1
Dan Vrátil eb9384e
- KDE Frameworks 5.3.0
Dan Vrátil eb9384e
Dan Vrátil f8c9688
* Mon Sep 15 2014 Daniel Vrátil <dvratil@redhat.com> - 5.2.0-1
Dan Vrátil f8c9688
- KDE Frameworks 5.2.0
Dan Vrátil f8c9688
7f71b09
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.0-2
7f71b09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7f71b09
Dan Vrátil 3f80c0b
* Wed Aug 06 2014 Daniel Vrátil <dvratil@redhat.com> - 5.1.0-1
Dan Vrátil 3f80c0b
- KDE Frameworks 5.1.0
Dan Vrátil 3f80c0b
Dan Vrátil 8cd2fc3
* Wed Jul 09 2014 Daniel Vrátil <dvratil@redhat.com> - 5.0.0-1
Dan Vrátil 8cd2fc3
- KDE Frameworks 5.0.0
Dan Vrátil 8cd2fc3
Dan Vrátil e13a4e2
* Thu Jun 12 2014 Daniel Vrátil <dvratil@redhat.com> - 4.100.0-2
Dan Vrátil e13a4e2
- Upgrade to Tier2 framework
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
* Tue Jun 03 2014 Daniel Vrátil <dvratil@redhat.com> - 4.100.0-1
Dan Vrátil e13a4e2
- KDE Frameworks 4.100.0
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
* Mon May 05 2014 Daniel Vrátil <dvratil@redhat.com> - 4.99.0
Dan Vrátil e13a4e2
- KDE Frameworks 4.99.0
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
* Mon Mar 31 2014 Jan Grulich <jgrulich@redhat.com> 4.98.0-1
Dan Vrátil e13a4e2
- Update to KDE Frameworks 5 Beta 1 (4.98.0)
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
* Wed Mar 05 2014 Jan Grulich <jgrulich@redhat.com> 4.97.0-1
Dan Vrátil e13a4e2
- Update to KDE Frameworks 5 Alpha 1 (4.97.0)
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
* Wed Feb 12 2014 Daniel Vrátil <dvratil@redhat.com> 4.96.0-1
Dan Vrátil e13a4e2
- Update to KDE Frameworks 5 Alpha 1 (4.96.0)
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
* Wed Feb 05 2014 Daniel Vrátil <dvratil@redhat.com> 4.96.0-0.1.20140205git
Dan Vrátil e13a4e2
- Update to pre-relase snapshot of 4.96.0
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
* Thu Jan 09 2014 Daniel Vrátil <dvratil@redhat.com> 4.95.0-1
Dan Vrátil e13a4e2
- Update to KDE Frameworks 5 TP1 (4.95.0)
Dan Vrátil e13a4e2
Dan Vrátil e13a4e2
* Sat Jan  4 2014 Daniel Vrátil <dvratil@redhat.com>
Dan Vrátil e13a4e2
- initial version