[Kita-svn] [2525] add support for Fedora 11

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 8月 6日 (木) 22:45:21 JST


Revision: 2525
          http://sourceforge.jp/projects/kita/svn/view?view=rev&revision=2525
Author:   nogu
Date:     2009-08-06 22:45:21 +0900 (Thu, 06 Aug 2009)

Log Message:
-----------
add support for Fedora 11

Modified Paths:
--------------
    kita/branches/KITA-KDE4/kita.spec

Modified: kita/branches/KITA-KDE4/kita.spec
===================================================================
--- kita/branches/KITA-KDE4/kita.spec	2009-08-06 10:33:04 UTC (rev 2524)
+++ kita/branches/KITA-KDE4/kita.spec	2009-08-06 13:45:21 UTC (rev 2525)
@@ -8,8 +8,14 @@
 License: GPL
 Group: Application/Internet
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
+%if 0%{?suse_version}
 BuildRequires: libkde4-devel
 %kde4_runtime_requires
+%else
+BuildRequires: gcc-c++
+BuildRequires: kdelibs-devel >= 4.2
+Requires: kdelibs >= 4.2
+%endif
 
 %description
 Kita is a 2ch client for KDE.
@@ -21,20 +27,32 @@
 %setup -q
 
 %build
+%if 0%{?suse_version}
 %cmake_kde4 -d build
 %make_jobs
+%else
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%cmake_kde4 ..
+popd
+make %{?_smp_mflags} -C %{_target_platform}
+%endif
 
 %install
+%if 0%{?suse_version}
 cd build
 %makeinstall
+%else
+make install DESTDIR=%{buildroot} -C %{_target_platform}
+%endif
 strip --strip-unneeded %{buildroot}/%{_libdir}/lib%{name}*.so*.*.*
 strip %{buildroot}/%{_bindir}/%{name}
 rm %{buildroot}/%{_libdir}/lib%{name}*.so
 
 %if 0%{?suse_version}
 %suse_update_desktop_file %{name}
+%kde_post_install
 %endif
-%kde_post_install
 
 %clean
 rm -rf %{buildroot}
@@ -49,14 +67,25 @@
 %{_datadir}/applications/kde4/%{name}.desktop
 %dir %{_datadir}/kde4/apps/%{name}
 %{_datadir}/kde4/apps/%{name}/*ui.rc
+%if 0%{?suse_version}
 %{_datadir}/kde4/config.kcfg/*.kcfg
+%else
+%{_kde4_datadir}/config.kcfg/*.kcfg
+%endif
 %{_datadir}/icons/hicolor/16x16/actions/*.png
 %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
 %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/%{name}.mo
+%if 0%{?suse_version}
 %dir %{_datadir}/doc/kde/HTML/en/%{name}
 %{_datadir}/doc/kde/HTML/en/%{name}/common
 %{_datadir}/doc/kde/HTML/en/%{name}/index.cache.bz2
 %{_datadir}/doc/kde/HTML/en/%{name}/index.docbook
+%else
+%dir %{_kde4_docdir}/HTML/en/%{name}
+%{_kde4_docdir}/HTML/en/%{name}/common
+%{_kde4_docdir}/HTML/en/%{name}/index.cache.bz2
+%{_kde4_docdir}/HTML/en/%{name}/index.docbook
+%endif
 
 %changelog
 * Sun Nov 21 2004 Hideki Ikemoto<ikemo****@users*****> - 0.173.0 




Kita-svn メーリングリストの案内
Back to archive index