1 | %if %{?_dist_release} != "vl5" |
---|
2 | %define kde KDE |
---|
3 | %else |
---|
4 | %define kde KDE4 |
---|
5 | %endif |
---|
6 | |
---|
7 | Summary: Choqok %{kde} Micro-Blogging Client |
---|
8 | Summary(ja): %{kde} マイクロブログクライアント |
---|
9 | Name: choqok |
---|
10 | Version: 1.2 |
---|
11 | Release: 1%{?_dist_release} |
---|
12 | |
---|
13 | License: GPLv3 |
---|
14 | Group: Applications/Internet |
---|
15 | URL: http://choqok.gnufolks.org/ |
---|
16 | |
---|
17 | Source0: http://choqok.gnufolks.org/pkgs/%{name}-%{version}.tar.bz2 |
---|
18 | |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
20 | BuildRequires: cmake >= 2.6 |
---|
21 | BuildRequires: desktop-file-utils |
---|
22 | BuildRequires: kdelibs4-devel |
---|
23 | BuildRequires: gettext |
---|
24 | BuildRequires: qjson-devel |
---|
25 | BuildRequires: qoauth-devel |
---|
26 | BuildRequires: attica-devel |
---|
27 | BuildRequires: soprano-devel |
---|
28 | %if %{?_dist_release} != "vl5" |
---|
29 | BuildRequires: libindicate-qt-devel |
---|
30 | %endif |
---|
31 | |
---|
32 | Requires: %{name}-libs = %{version}-%{release} |
---|
33 | |
---|
34 | %description |
---|
35 | A Free/Open Source micro-blogging client for %{kde}. |
---|
36 | The name comes from an ancient Persian word, which means Sparrow! |
---|
37 | Choqok currently supports Twitter.com and Identi.ca services. |
---|
38 | |
---|
39 | %package libs |
---|
40 | Summary: Runtime libraries for %{name} |
---|
41 | Summary(ja): %{name} のランタイムライブラリ |
---|
42 | Group: System Environment/Libraries |
---|
43 | # Requires: %{name} = %{version}-%{release} |
---|
44 | # for kwallet, among other goodies |
---|
45 | Requires: kdebase-runtime |
---|
46 | |
---|
47 | %description libs |
---|
48 | %{summary} |
---|
49 | |
---|
50 | %package devel |
---|
51 | Summary: Development files for %{name} |
---|
52 | Summary(ja): %{name} の開発用ファイル |
---|
53 | Group: Development/Libraries |
---|
54 | Requires: %{name}-libs = %{version}-%{release} |
---|
55 | Requires: kdelibs4-devel |
---|
56 | |
---|
57 | %description devel |
---|
58 | %{summary} |
---|
59 | |
---|
60 | |
---|
61 | %prep |
---|
62 | %setup -q |
---|
63 | |
---|
64 | %build |
---|
65 | mkdir -p %{_target_platform} |
---|
66 | pushd %{_target_platform} |
---|
67 | PATH=$PATH:%{_prefix}/kerberos/bin \ |
---|
68 | %cmake \ |
---|
69 | -DCMAKE_BUILD_TYPE=release \ |
---|
70 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
71 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
72 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
73 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
74 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
75 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
76 | .. |
---|
77 | popd |
---|
78 | |
---|
79 | make %{?_smp_mflags} -C %{_target_platform} |
---|
80 | |
---|
81 | %install |
---|
82 | rm -rf %{buildroot} |
---|
83 | |
---|
84 | make install/fast DESTDIR=%{buildroot} -C %{_target_platform} |
---|
85 | |
---|
86 | %find_lang %{name} |
---|
87 | |
---|
88 | %check |
---|
89 | desktop-file-validate %{buildroot}%{_datadir}/applications/kde4/choqok.desktop |
---|
90 | |
---|
91 | %clean |
---|
92 | rm -rf %{buildroot} |
---|
93 | |
---|
94 | %post |
---|
95 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
96 | |
---|
97 | %postun |
---|
98 | if [ $1 -eq 0 ] ; then |
---|
99 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null |
---|
100 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
101 | fi |
---|
102 | |
---|
103 | %posttrans |
---|
104 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
105 | |
---|
106 | |
---|
107 | %files -f %{name}.lang |
---|
108 | %defattr(-,root,root,-) |
---|
109 | %doc COPYING README AUTHORS changelog TODO |
---|
110 | %{_bindir}/choqok |
---|
111 | %{_libdir}/kde4/choqok_*.so |
---|
112 | %{_libdir}/kde4/kcm_choqok_*.so |
---|
113 | %{_libdir}/kde4/konqchoqokplugin.so |
---|
114 | %{_datadir}/icons/hicolor/*/actions/retweet.png |
---|
115 | %{_datadir}/icons/hicolor/*/apps/*.png |
---|
116 | %{_datadir}/applications/kde4/choqok.desktop |
---|
117 | %{_datadir}/config.kcfg/*.kcfg |
---|
118 | %{_datadir}/kde4/services/choqok_*.desktop |
---|
119 | %{_datadir}/kde4/apps/choqok |
---|
120 | %{_datadir}/kde4/apps/choqok_*/*.rc |
---|
121 | %{_datadir}/kde4/apps/dbus-1/services/* |
---|
122 | %{_datadir}/kde4/apps/khtml/kpartplugins/* |
---|
123 | %{_datadir}/kde4/services/ServiceMenus/*.desktop |
---|
124 | %{_datadir}/kde4/servicetypes/choqok*.desktop |
---|
125 | %doc %{_docdir}/HTML/* |
---|
126 | |
---|
127 | %files libs |
---|
128 | %defattr(-,root,root,-) |
---|
129 | %{_libdir}/lib*.so.* |
---|
130 | |
---|
131 | %files devel |
---|
132 | %defattr(-,root,root,-) |
---|
133 | %{_includedir}/kde4/choqok |
---|
134 | %{_libdir}/lib*.so |
---|
135 | %{_datadir}/kde4/apps/cmake/* |
---|
136 | |
---|
137 | |
---|
138 | %changelog |
---|
139 | * Fri Feb 03 2012 NAKAMURA Kenta <kenta@vinelinux.org> - 1.2-1 |
---|
140 | - new upstream release |
---|
141 | - added BR: soprano-devel |
---|
142 | |
---|
143 | * Sat Feb 26 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0-1 |
---|
144 | - new upstream release |
---|
145 | |
---|
146 | * Thu Jan 13 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.98-1 |
---|
147 | - new upstream release |
---|
148 | - added BR: qjson-devel, qoauth-devel |
---|
149 | |
---|
150 | * Sat May 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.55-15 |
---|
151 | - initial build for Vine Linux |
---|
152 | |
---|
153 | * Tue Mar 09 2010 Tejas Dinkar <tejas@gja.in> - 0.9.55-14 |
---|
154 | - Add dependency from -libs to choqok |
---|
155 | |
---|
156 | * Tue Mar 09 2010 Rex Dieter <rdieter@fedoraprojecdt.org> - 0.9.55-13 |
---|
157 | - Requires: kdebase-runtime (not kdeutils) |
---|
158 | |
---|
159 | * Tue Mar 09 2010 Tejas Dinkar <tejas@gja.in> - 0.9.55-12 |
---|
160 | - choqok 1.0-beta |
---|
161 | |
---|
162 | * Wed Sep 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.6.6-9 |
---|
163 | - add icon/desktop-file scriptlets |
---|
164 | |
---|
165 | * Sun Aug 16 2009 Tejas Dinkar <tejas@gja.in> - 0.6.6-8 |
---|
166 | - Added Dependency on kdeutils |
---|
167 | - Choqok 0.6.6 is out |
---|
168 | |
---|
169 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-8 |
---|
170 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
171 | |
---|
172 | * Sun Jun 14 2009 Tejas Dinkar <tejas@gja.in> - 0.6.1-7 |
---|
173 | - Choqok 0.6.1 is out with the below two patches |
---|
174 | |
---|
175 | * Sat Jun 13 2009 Tejas Dinkar <tejas@gja.in> - 0.6-6 |
---|
176 | - Fixed the inreplyto (via patch) |
---|
177 | |
---|
178 | * Sat Jun 13 2009 Tejas Dinkar <tejas@gja.in> - 0.6-5 |
---|
179 | - Fixed the twitpocalypse (via patch) |
---|
180 | |
---|
181 | * Wed May 27 2009 Tejas Dinkar <tejas@gja.in> - 0.6-4 |
---|
182 | - Changed to 0.6 |
---|
183 | |
---|
184 | * Fri Apr 10 2009 Tejas Dinkar <tejas@gja.in> - 0.5-3 |
---|
185 | - Added the TweetAll patch, remove this by 0.6 |
---|
186 | |
---|
187 | * Fri Mar 27 2009 Tejas Dinkar <tejas@gja.in> - 0.5-2 |
---|
188 | - Added AUTHORS changelog and TODO to doc |
---|
189 | |
---|
190 | * Fri Mar 27 2009 Tejas Dinkar <tejas@gja.in> - 0.5-1 |
---|
191 | - Initial Version for Fedora |
---|