Clean up spec file, autodetect stable/unstable download folder

epel9
Dan Vrátil 10 years ago
parent c85434ec30
commit 0adf1a8069

@ -1,4 +1,3 @@
#%define snapshot 20140205
%define framework kemoticons
Name: kf5-%{framework}
@ -8,11 +7,14 @@ Summary: KDE Frameworks 5 Tier 3 module with support for emoticons and em
License: GPLv2+ and LGPLv2+
URL: http://www.kde.org
# git archive --format=tar --prefix=%{framework}-%{version}/ \
# --remote=git://anongit.kde.org/%{framework}.git master | \
# bzip2 -c > %{name}-%{version}-%{snapshot}git.tar.bz2
#Source0: %{name}-%{version}-%{snapshot}git.tar.bz2
Source0: http://download.kde.org/stable/frameworks/%{version}/%{framework}-%{version}.tar.xz
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/frameworks/%{version}/%{framework}-%{version}.tar.xz
BuildRequires: kf5-rpm-macros
BuildRequires: extra-cmake-modules
@ -28,7 +30,6 @@ Requires: kf5-filesystem
KDE Frameworks 5 Tier 3 module that provides emoticons themes as well as
helper classes to automatically convert text emoticons to graphical emoticons.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -40,6 +41,7 @@ Requires: kf5-kservice-devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n %{framework}-%{version}
@ -54,11 +56,10 @@ make %{?_smp_mflags} -C %{_target_platform}
%install
%make_install -C %{_target_platform}
%post -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc COPYING COPYING.LIB README.md
%{_kf5_libdir}/libKF5Emoticons.so.*

Loading…
Cancel
Save