OSDN Git Service

Update COPYING
[kita/kita.git] / kita.spec.cmake
1 Summary: 2ch client for KDE
2 Summary(ja): KDE 用 2ch ブラウザ
3 Name: kita
4 Version: @VERSION@
5 Release: 1
6 URL: http://sourceforge.jp/projects/kita/
7 Source: kita-%{version}.tar.bz2
8 License: GPL
9 Group: Application/Internet
10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
11 %if 0%{?suse_version}
12 BuildRequires: libkde4-devel
13 %kde4_runtime_requires
14 %else
15 BuildRequires: gcc-c++
16 BuildRequires: kdelibs-devel >= 4.2
17 Requires: kdelibs >= 4.2
18 %endif
19
20 %description
21 Kita is a 2ch client for KDE.
22
23 %description -l ja
24 Kita は KDE 用 2ch ブラウザです。
25
26 %prep
27 %setup -q
28
29 %build
30 %if 0%{?suse_version}
31 %cmake_kde4 -d build
32 %make_jobs
33 %else
34 mkdir -p %{_target_platform}
35 pushd %{_target_platform}
36 %cmake_kde4 ..
37 popd
38 make %{?_smp_mflags} -C %{_target_platform}
39 %endif
40
41 %install
42 %if 0%{?suse_version}
43 cd build
44 %makeinstall
45 %else
46 make install DESTDIR=%{buildroot} -C %{_target_platform}
47 %endif
48 strip --strip-unneeded %{buildroot}/%{_libdir}/lib%{name}*.so*.*.*
49 strip %{buildroot}/%{_bindir}/%{name}
50 rm %{buildroot}/%{_libdir}/lib%{name}*.so
51
52 %if 0%{?suse_version}
53 %suse_update_desktop_file %{name}
54 %kde_post_install
55 %endif
56
57 %clean
58 rm -rf %{buildroot}
59
60 %post -p /sbin/ldconfig
61 %postun -p /sbin/ldconfig
62 %files
63 %defattr(-, root, root)
64 #%doc AUTHORS COPYING ChangeLog NEWS README README.2ch TODO
65 %{_bindir}/%{name}
66 %{_libdir}/lib%{name}*.so*
67 %{_datadir}/applications/kde4/%{name}.desktop
68 %dir %{_datadir}/kde4/apps/%{name}
69 %{_datadir}/kde4/apps/%{name}/*ui.rc
70 %if 0%{?suse_version}
71 %{_datadir}/kde4/config.kcfg/*.kcfg
72 %else
73 %{_kde4_datadir}/config.kcfg/*.kcfg
74 %endif
75 %{_datadir}/icons/hicolor/16x16/actions/*.png
76 %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
77 %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/%{name}.mo
78 %if 0%{?suse_version}
79 %dir %{_datadir}/doc/kde/HTML/en/%{name}
80 %{_datadir}/doc/kde/HTML/en/%{name}/common
81 %{_datadir}/doc/kde/HTML/en/%{name}/index.cache.bz2
82 %{_datadir}/doc/kde/HTML/en/%{name}/index.docbook
83 %else
84 %dir %{_kde4_docdir}/HTML/en/%{name}
85 %{_kde4_docdir}/HTML/en/%{name}/common
86 %{_kde4_docdir}/HTML/en/%{name}/index.cache.bz2
87 %{_kde4_docdir}/HTML/en/%{name}/index.docbook
88 %endif
89
90 %changelog
91 * Sun Nov 21 2004 Hideki Ikemoto<ikemo@users.sourceforge.jp> - 0.173.0 
92 - remove kitapart/kita*ui.rc
93
94 * Sat Oct 07 2004 Hideki Ikemoto<ikemo@users.sourceforge.jp>
95 - set %%{_prefix} if SuSE
96
97 * Sat May 15 2004 Hideki Ikemoto<ikemo@users.sourceforge.jp>
98 - add 'Serial' field (comment)
99
100 * Sat Dec 13 2003 Hideki Ikemoto<ikemo@users.sourceforge.jp>
101 - don't use %%configure
102
103 * Mon Oct 13 2003 Hideki Ikemoto<ikemo@users.sourceforge.jp>
104 - add files
105
106 * Wed Mar 03 2003 Hideki Ikemoto<ikemo@users.sourceforge.jp>
107 - initial release.