[kremotecontrol] %check: use desktop-file-validate use %find_lang

Rex Dieter rdieter at fedoraproject.org
Mon Dec 19 16:21:25 UTC 2011


commit d2c310944d2cf0f7302811cc76e21d5bbe819ad1
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Mon Dec 19 10:21:22 2011 -0600

    %check: use desktop-file-validate
    use %find_lang

 .gitignore                                |    1 +
 kremotecontrol-4.7.90-namelink_skip.patch |   12 +++
 kremotecontrol.spec                       |  114 +++++++++++++++++++++++++++++
 sources                                   |    1 +
 4 files changed, 128 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a92491f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/kremotecontrol-4.7.90.tar.bz2
diff --git a/kremotecontrol-4.7.90-namelink_skip.patch b/kremotecontrol-4.7.90-namelink_skip.patch
new file mode 100644
index 0000000..8d7741c
--- /dev/null
+++ b/kremotecontrol-4.7.90-namelink_skip.patch
@@ -0,0 +1,12 @@
+diff -up kremotecontrol-4.7.90/libkremotecontrol/CMakeLists.txt.namelink_skip kremotecontrol-4.7.90/libkremotecontrol/CMakeLists.txt
+--- kremotecontrol-4.7.90/libkremotecontrol/CMakeLists.txt.namelink_skip	2011-09-26 04:46:44.000000000 -0500
++++ kremotecontrol-4.7.90/libkremotecontrol/CMakeLists.txt	2011-12-08 12:10:07.003458850 -0600
+@@ -42,7 +42,7 @@ set_target_properties(libkremotecontrol
+ target_link_libraries(libkremotecontrol ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${QT_QTXMLPATTERNS_LIBRARY} ${QT_QTSCRIPT_LIBRARY} ${X11_X11_LIB} ${X11_XTest_LIB})
+ 
+ 
+-install(TARGETS libkremotecontrol ${INSTALL_TARGETS_DEFAULT_ARGS})
++install(TARGETS libkremotecontrol ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
+ install( FILES kremotecontrolmanager.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR}  )
+ 
+ add_subdirectory(backends)
diff --git a/kremotecontrol.spec b/kremotecontrol.spec
new file mode 100644
index 0000000..9b5dd93
--- /dev/null
+++ b/kremotecontrol.spec
@@ -0,0 +1,114 @@
+
+Name:    kremotecontrol 
+Summary: KDE frontend for your remote controls 
+Version: 4.7.90
+Release: 2%{?dist}
+
+License: GPLv2+
+URL: http://utils.kde.org/projects/%{name}
+Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.bz2
+
+## upstreamable patches
+# lib namelink_skip
+Patch50: kremotecontrol-4.7.90-namelink_skip.patch
+
+BuildRequires: desktop-file-utils
+BuildRequires: kdelibs4-devel >= %{version}
+BuildRequires: kdebase-workspace-devel >= %{version}
+BuildRequires: pkgconfig(QtXmlPatterns)
+
+# when split occured
+Conflicts: kdeutils-common < 6:4.7.80
+
+Obsoletes: kdeutils-kremotecontrol < 6:4.7.80
+Provides:  kdeutils-kremotecontrol = 6:%{version}-%{release}
+
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
+
+%description
+KRemoteControl (formerly known as KDELirc) is a KDE frontend for your
+remote controls. It allows to configure actions for button presses on
+remotes. All types of remotes supported by the Solid module in the KDE
+platform are also supported by KRemoteControl (e.g. with the Linux
+Infrared Remote Control system (LIRC) as backend).
+
+%package libs
+Summary: Runtime libraries for %{name} 
+Requires: %{name} = %{version}-%{release}
+Obsoletes: kdeutils-kremotecontrol-libs < 6:4.7.80
+Provides:  kdeutils-kremotecontrol-libs = 6:%{version}-%{release}
+%description libs
+%{summary}.
+
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%patch50 -p1 -b .namelink_skip
+
+
+%build
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%{cmake_kde4} ..
+popd
+
+make %{?_smp_mflags} -C %{_target_platform}
+
+
+%install
+make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+
+%find_lang %{name} --with-kde --without-mo --all-name
+
+
+%check
+desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/krcdnotifieritem.desktop
+
+
+%post
+touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
+
+%posttrans
+gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
+
+%postun
+if [ $1 -eq 0 ] ; then
+touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
+gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
+fi
+
+%files -f %{name}.lang
+%doc COPYING
+%doc AUTHORS ChangeLog README
+%{_kde4_appsdir}/kremotecontrol/
+%{_kde4_appsdir}/kremotecontroldaemon/
+%{_kde4_datadir}/kde4/services/plasma-engine-kremotecontrol.desktop
+%{_kde4_datadir}/kde4/services/kcm_remotecontrol.desktop
+%{_kde4_datadir}/kde4/services/kded/kremotecontroldaemon.desktop
+%{_kde4_iconsdir}/hicolor/*/devices/infrared-remote.*
+%{_kde4_libdir}/kde4/kcm_remotecontrol.so
+%{_kde4_libdir}/kde4/kded_kremotecontroldaemon.so
+%{_kde4_libdir}/kde4/plasma_engine_kremoteconrol.so
+%{_kde4_datadir}/kde4/services/kremotecontrolbackends/
+%{_kde4_datadir}/kde4/servicetypes/kremotecontrolmanager.desktop
+%{_kde4_libdir}/kde4/kremotecontrol_lirc.so
+%{_kde4_bindir}/krcdnotifieritem
+%{_kde4_datadir}/applications/kde4/krcdnotifieritem.desktop
+%{_kde4_iconsdir}/hicolor/*/*/krcd*.*
+
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
+%files libs
+%{_kde4_libdir}/liblibkremotecontrol.so.1*
+
+
+%changelog
+* Mon Dec 19 2011 Rex Dieter <rdieter at fedoraproject.org> 4.7.90-2
+- %%check: use desktop-file-validate
+- use %%find_lang
+
+* Thu Dec 08 2011 Rex Dieter <rdieter at fedoraproject.org> 4.7.90-1
+- first try
diff --git a/sources b/sources
index e69de29..2699c0f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dd40c0202f16310349b8b6f4df9ee81b  kremotecontrol-4.7.90.tar.bz2


More information about the scm-commits mailing list