1 | %define qtversion 3.3.8 |
---|
2 | |
---|
3 | %define with_kontact 1 |
---|
4 | |
---|
5 | Name: basket |
---|
6 | Version: 1.0.3.1 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | Summary: Taking care of your ideas |
---|
9 | |
---|
10 | Group: Applications/Productivity |
---|
11 | License: GPLv2+ |
---|
12 | URL: http://basket.kde.org/ |
---|
13 | Packager: tomop |
---|
14 | Source0: http://basket.kde.org/downloads/%{name}-%{version}.tar.gz |
---|
15 | # Make it appear in Kontact from enterprise branch |
---|
16 | Patch0: basket-1.0.2-kdepimenterprise.patch |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
18 | BuildRequires: kdelibs-devel gpgme-devel gettext desktop-file-utils arts-devel |
---|
19 | BuildRequires: jack-audio-connection-kit |
---|
20 | %if 0%{?with_kontact} |
---|
21 | BuildRequires: kdepim-devel |
---|
22 | %endif |
---|
23 | Requires: arts jack-audio-connection-kit |
---|
24 | |
---|
25 | %description |
---|
26 | A multi-purpose note-taking application that makes it easy to write down ideas |
---|
27 | as you think, and quickly find them later. You can collect, import or share |
---|
28 | any data, tag your notes and secure it some or all of it with passwords and/or |
---|
29 | encryption. |
---|
30 | |
---|
31 | %if 0%{?with_kontact} |
---|
32 | %package kontact |
---|
33 | Group: Applications/Productivity |
---|
34 | Summary: Basket plugin for Kontact |
---|
35 | Requires: %{name} = %{version}-%{release} |
---|
36 | Requires: kdepim |
---|
37 | |
---|
38 | %description kontact |
---|
39 | This package contains the kontact plugin for BasKet. |
---|
40 | %endif |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -q |
---|
44 | iconv -f ISO_8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp |
---|
45 | touch -r AUTHORS AUTHORS.tmp |
---|
46 | mv AUTHORS.tmp AUTHORS |
---|
47 | %patch0 -p0 -b .kdepimenterprise |
---|
48 | |
---|
49 | %build |
---|
50 | unset QTDIR && . %{_sysconfdir}/profile.d/qt.sh |
---|
51 | %configure --disable-rpath --disable-debug --with-qt-libraries=%{_libdir}/qt-%{qtversion}/lib |
---|
52 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
53 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
54 | make %{?_smp_mflags} |
---|
55 | |
---|
56 | %install |
---|
57 | rm -rf $RPM_BUILD_ROOT |
---|
58 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
59 | |
---|
60 | # Icons: use hicolor instead of crystalsvg |
---|
61 | mv $RPM_BUILD_ROOT%{_datadir}/icons/{crystalsvg,hicolor} |
---|
62 | |
---|
63 | # Menu |
---|
64 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications |
---|
65 | desktop-file-install --vendor fedora \ |
---|
66 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
67 | --delete-original \ |
---|
68 | --add-category Utility \ |
---|
69 | --add-category Qt \ |
---|
70 | --add-category KDE \ |
---|
71 | $RPM_BUILD_ROOT%{_datadir}/applications/kde/%{name}.desktop |
---|
72 | |
---|
73 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
---|
74 | # Removing a random sym link created during the build process |
---|
75 | # This will be needed again when/if basket ever provides HTML docs -- Rex |
---|
76 | rm -f $RPM_BUILD_ROOT%{_docdir}/HTML/en/basket/common |
---|
77 | |
---|
78 | %{find_lang} %{name} |
---|
79 | # HTML |
---|
80 | for lang_dir in $RPM_BUILD_ROOT%{_docdir}/HTML/* ; do |
---|
81 | lang=$(basename $lang_dir) |
---|
82 | [ "$lang" == "en" ] && d=en/%{name} || d=$lang |
---|
83 | echo "%lang($lang) %doc %{_docdir}/HTML/$d" >> %{name}.lang |
---|
84 | done |
---|
85 | |
---|
86 | %clean |
---|
87 | rm -rf $RPM_BUILD_ROOT |
---|
88 | |
---|
89 | %files -f %{name}.lang |
---|
90 | %defattr(-,root,root,-) |
---|
91 | %doc README AUTHORS COPYING ChangeLog NEWS TODO |
---|
92 | %{_bindir}/basket |
---|
93 | %{_datadir}/applications/*.desktop |
---|
94 | %{_datadir}/icons/hicolor/*/actions/*.png |
---|
95 | %{_datadir}/icons/hicolor/*/mimetypes/*.png |
---|
96 | %{_datadir}/icons/hicolor/*/apps/%{name}.* |
---|
97 | %{_datadir}/apps/basket |
---|
98 | %{_libdir}/kde3/kcm_basket.* |
---|
99 | %{_libdir}/kde3/libbasketpart.* |
---|
100 | %{_libdir}/kde3/basketthumbcreator.* |
---|
101 | %{_libdir}/libbasketcommon.so |
---|
102 | %{_datadir}/services/*.desktop |
---|
103 | %{_datadir}/config/magic/basket.magic |
---|
104 | %{_datadir}/mimelnk/application/*.desktop |
---|
105 | |
---|
106 | %if 0%{?with_kontact} |
---|
107 | %files kontact |
---|
108 | %defattr(-,root,root,-) |
---|
109 | %{_datadir}/apps/kontact/ksettingsdialog/kontact_basketplugin.setdlg |
---|
110 | %{_datadir}/services/kontact/*.desktop |
---|
111 | %{_libdir}/kde3/libkontact_basket.* |
---|
112 | %endif |
---|
113 | |
---|
114 | %post |
---|
115 | /sbin/ldconfig |
---|
116 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
117 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then |
---|
118 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
119 | fi |
---|
120 | update-desktop-database &> /dev/null || : |
---|
121 | |
---|
122 | %postun |
---|
123 | /sbin/ldconfig |
---|
124 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
125 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then |
---|
126 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
127 | fi |
---|
128 | update-desktop-database &> /dev/null || : |
---|
129 | |
---|
130 | %changelog |
---|
131 | * Mon Jun 8 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3.1-1 |
---|
132 | - built for Vine Linux. |
---|
133 | |
---|
134 | * Thu Dec 04 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.3.1-4 |
---|
135 | - fix ->F-10+ upgrade path |
---|
136 | - Cannot configure basket, kcm_basket.la missing (#474425) |
---|
137 | - drop needless Requires: hicolor-icon-theme |
---|
138 | |
---|
139 | * Sat Nov 15 2008 Christopher D. Stover <quantumburnz@hotmail.com> 1.0.3.1-3 |
---|
140 | - resolved kontact broken dependency |
---|
141 | |
---|
142 | * Mon Nov 10 2008 Christopher D. Stover <quantumburnz@hotmail.com> 1.0.3.1-2 |
---|
143 | - added a requires for hicolor-icon-theme |
---|
144 | - removed -p from the main package /sbin/ldconfig |
---|
145 | |
---|
146 | * Sat Oct 25 2008 Christopher D. Stover <quantumburnz@hotmail.com> 1.0.3.1-1 |
---|
147 | - version 1.0.3.1 |
---|
148 | - gcc43 patch is no longer needed |
---|
149 | |
---|
150 | * Sat Jun 07 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 1.0.2-7 |
---|
151 | - disable -kontact for F10+ (can't integrate KDE 3 app into KDE 4 Kontact) |
---|
152 | |
---|
153 | * Sun Jun 01 2008 Aurelien Bompard <abompard@fedoraproject.org> 1.0.2-6 |
---|
154 | - rebuild |
---|
155 | |
---|
156 | * Wed Mar 02 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.2-5 |
---|
157 | - fix rawhide build (#433960) |
---|
158 | - summary: s/for KDE// |
---|
159 | |
---|
160 | * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> 1.0.2-4 |
---|
161 | - Autorebuild for GCC 4.3 |
---|
162 | |
---|
163 | * Sat Oct 27 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.0.2-3 |
---|
164 | - fix kontact plugin for kdepim-enterprise (bug 354771) |
---|
165 | |
---|
166 | * Sat Aug 25 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.0.2-2 |
---|
167 | - rebuild for BuildID |
---|
168 | - fix license tag |
---|
169 | |
---|
170 | * Tue Apr 24 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.0.2-1 |
---|
171 | - version 1.0.2 (bug 237660) |
---|
172 | |
---|
173 | * Sun Mar 18 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.0.1-1 |
---|
174 | - version 1.0.1 |
---|
175 | |
---|
176 | * Sat Feb 17 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.0-2 |
---|
177 | - split off the kontact plugin, patch by Laurent Rineau (see bug 228966) |
---|
178 | |
---|
179 | * Mon Feb 12 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.0-1 |
---|
180 | - version 1.0 |
---|
181 | |
---|
182 | * Wed Oct 25 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.6.0-1 |
---|
183 | - version 0.6.0 |
---|
184 | |
---|
185 | * Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.5.0-10 |
---|
186 | - rebuilt for unwind info generation, broken in gcc-4.1.1-21 |
---|
187 | |
---|
188 | * Tue Sep 19 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.5.0-9 |
---|
189 | - add explicit linking to libfam |
---|
190 | |
---|
191 | * Tue Sep 19 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.5.0-8 |
---|
192 | - rebuild |
---|
193 | |
---|
194 | * Wed Aug 30 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.5.0-7 |
---|
195 | - BR: gamin-devel |
---|
196 | |
---|
197 | * Wed Aug 30 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.5.0-6 |
---|
198 | - rebuild |
---|
199 | |
---|
200 | * Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.5.0-5 |
---|
201 | - rebuild for FC5 |
---|
202 | |
---|
203 | * Mon Oct 17 2005 Aurelien Bompard <gauret[AT]free.fr> 0.5.0-4 |
---|
204 | - add patch for 64 bits |
---|
205 | |
---|
206 | * Fri Oct 14 2005 Aurelien Bompard <gauret[AT]free.fr> 0.5.0-3 |
---|
207 | - don't add the extension to the icon, it's useless |
---|
208 | - touch the icon dir in post and postun |
---|
209 | |
---|
210 | * Fri Oct 14 2005 Aurelien Bompard <gauret[AT]free.fr> 0.5.0-2 |
---|
211 | - own the doc dir |
---|
212 | - use hicolor instead of crystalsvg as icon theme |
---|
213 | - add extension to the icon in the desktop file |
---|
214 | |
---|
215 | * Wed Oct 12 2005 Aurelien Bompard <gauret[AT]free.fr> 0.5.0-1 |
---|
216 | - port to Fedora from Mandriva (release 3) |
---|