Switch to unified view

a/packaging/rpm/recoll.spec b/packaging/rpm/recoll.spec
1
%define name recoll
1
Summary:        Desktop full text search tool with Qt GUI
2
%define version 3152
3
%define release 0
4
5
Name:           %{name}
2
Name:           recoll
6
Version:        %{version}
3
Version:        1.20.6
7
Release:        %{release}
4
Release:        1%{?dist}
8
9
Summary:  Desktop Full Text Search Tool with a QT Gui
10
Source0:  http://www.recoll.org/%{name}-%{version}.tar.gz
11
URL:            http://www.recoll.org/
12
Group:          Applications/Databases
5
Group:          Applications/Databases
13
6
License:        GPLv2+
14
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
7
URL:            http://www.lesbonscomptes.com/recoll/
15
License:  GPL
8
Source0:        http://www.lesbonscomptes.com/recoll/recoll-%{version}.tar.gz
16
9
BuildRequires:  qt-devel
17
# libxapian-devel or xapian-core-devel?
10
BuildRequires:  qtwebkit-devel
18
BuildRequires: libqt4-devel zlib-devel libxapian-devel libuuid-devel python-devel
11
BuildRequires:  python-devel
12
BuildRequires:  zlib-devel
13
BuildRequires:  aspell-devel
14
BuildRequires:  xapian-core-devel
15
BuildRequires:  desktop-file-utils
16
Requires:       xdg-utils
19
17
20
%description
18
%description
21
Recoll is a personal full text search package for Linux, FreeBSD and
19
Recoll is a personal full text search package for Linux, FreeBSD and
22
other Unix systems. It is based on a very strong backend (Xapian), for
20
other Unix systems. It is based on a very strong back end (Xapian), for
23
which it provides an easy to use, feature-rich, easy administration
21
which it provides an easy to use, feature-rich, easy administration
24
interface.
22
interface.
25
23
%global __provides_exclude_from ^%{_libdir}/recoll/librecoll\\.so.*$
26
# ---------------------------------------------------------------------------
24
%global __requires_exclude      ^librecoll\\.so.*$
27
25
28
%prep
26
%prep
29
%setup -q
27
%setup -q -n %{name}-%{version}
30
28
chmod 0644 utils/{conftree.cpp,conftree.h,debuglog.cpp,debuglog.h}
31
# ---------------------------------------------------------------------------
32
29
33
%build
30
%build
34
31
export QMAKE=qmake-qt4
35
%configure
32
%configure
36
make %{?_smp_mflags} 
33
make %{?_smp_mflags}
37
38
# ---------------------------------------------------------------------------
39
34
40
%install
35
%install
41
rm -rf $RPM_BUILD_ROOT
36
make install DESTDIR=%{buildroot} STRIP=/bin/true INSTALL='install -p'
42
%makeinstall
43
%{__chmod} 0755 $RPM_BUILD_ROOT/%{_libdir}/%{name}/lib%{name}.so.%{version}
44
37
45
# ---------------------------------------------------------------------------
38
desktop-file-install --delete-original \
39
  --dir=%{buildroot}/%{_datadir}/applications \
40
  %{buildroot}/%{_datadir}/applications/%{name}-searchgui.desktop
46
41
47
%clean
42
# use /usr/bin/xdg-open
48
rm -rf $RPM_BUILD_ROOT
43
rm -f %{buildroot}/usr/share/recoll/filters/xdg-open
49
44
50
# ---------------------------------------------------------------------------
45
# fix perms
46
chmod 0755 %{buildroot}/usr/share/recoll/filters/rclexecm.py
47
chmod 0755 %{buildroot}%{_libdir}/recoll/librecoll.so.*
48
49
%post
50
touch --no-create %{_datadir}/icons/hicolor
51
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
52
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
53
fi
54
if [ -x %{_bindir}/update-desktop-database ] ; then
55
  %{_bindir}/update-desktop-database &> /dev/null
56
fi
57
exit 0
58
59
%postun
60
touch --no-create %{_datadir}/icons/hicolor 
61
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
62
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
63
fi
64
if [ -x %{_bindir}/update-desktop-database ] ; then
65
  %{_bindir}/update-desktop-database &> /dev/null
66
fi
67
exit 0
51
68
52
%files
69
%files
53
%defattr(-,root,root,-)
70
%doc COPYING ChangeLog README
54
%{_bindir}/*
55
%{python_sitearch}/
56
%{_libdir}/%{name}
71
%{_bindir}/%{name}
57
%{_libdir}/%{name}/lib%{name}.so.%{version}
72
%{_bindir}/%{name}index
58
%{_datadir}/%{name}
73
%{_datadir}/%{name}
74
%{_datadir}/appdata/%{name}.appdata.xml
59
%{_datadir}/applications/recoll-searchgui.desktop
75
%{_datadir}/applications/%{name}-searchgui.desktop
60
%{_datadir}/icons/hicolor/48x48/apps/recoll.png
76
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
61
%{_datadir}/pixmaps/recoll.png
77
%{_datadir}/pixmaps/%{name}.png
78
%{_libdir}/recoll
79
%{python_sitearch}/recoll
80
%{python_sitearch}/Recoll*.egg-info
81
%{_mandir}/man1/%{name}.1*
62
%{_mandir}/man1/recoll*
82
%{_mandir}/man1/recollq.1*
83
%{_mandir}/man1/%{name}index.1*
63
%{_mandir}/man5/recoll*
84
%{_mandir}/man5/%{name}.conf.5*
64
%if 0%{?suse_version} > 1120
65
%dir %{_datadir}/applications
66
%dir %{_datadir}/pixmaps
67
%endif
68
%dir %{_datadir}/icons/hicolor/48x48/apps
69
%dir %{_datadir}/icons/hicolor/48x48
70
%dir %{_datadir}/icons/hicolor
71
72
# ---------------------------------------------------------------------------
73
85
74
%changelog
86
%changelog
75
* Thu May 17 2012 Jean-Francois Dockes <jfd@recoll.org> 1.17.2-0
87
* Sat Apr 25 2015 Jean-Francois Dockes <jf@dockes.org> - 1.20.6-1
76
 Update to release 1.17.2
88
- 1.20.6
77
* Sun Mar 18 2012 Jean-Francois Dockes <jfd@recoll.org> 1.17.0-0
89
78
 Update to release 1.17.0
90
* Fri Dec 19 2014 Jean-Francois Dockes <jf@dockes.org> - 1.20.1-1
91
- 1.20.1
92
79
* Mon Nov 07 2011 Jean-Francois Dockes <jfd@recoll.org> 1.16.2-0
93
* Sun Nov 09 2014 Jean-Francois Dockes <jf@dockes.org> - 1.19.14p2-1
80
 Update to release 1.16.2
94
- 1.19.14p2
81
* Mon May 02 2011 Jean-Francois Dockes <jfd@recoll.org> 1.15.8-0
95
82
 Update to release 1.15.8
96
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19.13-3
83
* Fri Mar 04 2011 Jean-Francois Dockes <jfd@recoll.org> 1.15.5-0
97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
84
 Update to release 1.15.2
98
85
* Thu Feb 15 2011 Jean-Francois Dockes <jfd@recoll.org> 1.15.2-0
99
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19.13-2
86
 Update to release 1.15.2
100
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
87
* Thu Feb 2 2011 Jean-Francois Dockes <jfd@recoll.org> 1.15.0-0
101
102
* Tue May 06 2014 Terje Rosten <terje.rosten@ntnu.no> - 1.19.13-1
103
- 1.19.13
104
105
* Mon Jan 20 2014 Terje Rosten <terje.rosten@ntnu.no> - 1.19.11-1
106
- 1.19.11
107
108
* Mon Nov 11 2013 Terje Rosten <terje.rosten@ntnu.no> - 1.19.9-1
109
- 1.19.9
110
111
* Tue Nov 05 2013 Terje Rosten <terje.rosten@ntnu.no> - 1.19.8-1
112
- 1.19.8
113
114
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19.4-3
115
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
116
117
* Wed Jun 12 2013 Terje Rosten <terje.rosten@ntnu.no> - 1.19.4-2
118
- Fix filter setup
119
120
* Mon Jun 10 2013 Terje Rosten <terje.rosten@ntnu.no> - 1.19.4-1
121
- 1.19.4
122
123
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18.1-2
124
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
125
126
* Mon Nov 19 2012 Terje Rosten <terje.rosten@ntnu.no> - 1.18.1-1
127
- 1.18.1
128
129
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17.3-2
130
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
131
132
* Wed May 30 2012 Terje Rosten <terje.rosten@ntnu.no> - 1.17.3-1
133
- 1.17.3
134
135
* Sat Mar 31 2012 Terje Rosten <terje.rosten@ntnu.no> - 1.17.1-1
136
- 1.17.1
137
138
* Sun Mar 25 2012 Terje Rosten <terje.rosten@ntnu.no> - 1.17-1
139
- 1.17
140
141
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16.2-3
142
- Rebuilt for c++ ABI breakage
143
144
* Wed Feb 15 2012 Terje Rosten <terje.rosten@ntnu.no> - 1.16.2-2
145
- Add patch to build with gcc 4.7
146
147
* Wed Feb 01 2012 Terje Rosten <terje.rosten@ntnu.no> - 1.16.2-1
148
- 1.16.2
149
150
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16.1-3
151
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
152
153
* Mon Oct 24 2011 Terje Rosten <terje.rosten@ntnu.no> - 1.16.1-2
154
- Add patch to fix crash (bz #747472)
155
156
* Tue Oct 18 2011 Terje Rosten <terje.rosten@ntnu.no> - 1.16.1-1
157
- 1.16.1
158
159
* Tue May 24 2011 Terje Rosten <terje.rosten@ntnu.no> - 1.15.8-2
160
- add patch from upstream to fix crash.
161
162
* Sun May 08 2011 Terje Rosten <terje.rosten@ntnu.no> - 1.15.8-1
163
- 1.15.8
164
165
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.4-2
166
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
167
168
* Fri Jan 28 2011 Terje Rosten <terje.rosten@ntnu.no> - 1.14.4-1
169
- 1.14.4
170
171
* Mon Nov 15 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.14.2-2
172
- Add patch to fix #631704
173
174
* Sun Nov  7 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.14.2-1
175
- 1.14.2
176
177
* Thu Jul 15 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.13.04-6
178
- add patch to build with xapian 1.2 (from J.F. Dockes, thanks)
179
180
* Sat Jul 10 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.13.04-5
181
- use system xdg-open
182
- trim chagenlog
183
184
* Fri Jul  9 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.13.04-4
185
- fix some review comments
186
187
* Mon May 10 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.13.04-3
188
- use version macro in source url
189
- don't strip bins, giving non empty debuginfo package
190
- more explicit file listing
191
- try to preserve timestamps 
192
- use proper name for spec file
193
- fix changelog
194
- license seems to be GPLv2+
195
- include some %%doc files
196
- add buildroot tag
197
- some source add execute bit set
198
- explicit enable inotify
199
- add aspell-devel to bulldreq
200
- make with _smp_mflags seems to work
201
- add post scripts
202
- add patch to build gui with correct flags (ref: 338791)
203
204
* Sun May  9 2010  J.F. Dockes <jfd@recoll.org> 1.13.04-2
205
- bumped the release number to issue new rpms for fc10
206
207
* Sun May  9 2010  J.F. Dockes 1.13.04
88
- Update to release 1.15.0
208
- updated to recoll release 1.13.04 
89
* Thu Oct 28 2010 Jean-Francois Dockes <jfd@recoll.org> 1.14.3-1
209
90
 Update to release 1.14.3
210
* Fri Feb 12 2010 Terry Duell 1.13.02
91
* Thu Oct 28 2010 Jean-Francois Dockes <jfd@recoll.org> 1.14.2-1
92
 Rebuilt with a Xapian built with --disable-sse
93
* Sat Sep 24 2010 Jean-Francois Dockes <jfd@recoll.org> 1.14.2-0
94
 Update to release 1.14.2
95
* Thu Apr 14 2010 Jean-Francois Dockes <jfd@recoll.org> 1.13.04-1
96
- Update to release 1.13.04
211
- updated to release 1.13.02
212
213
* Tue Jan 12 2010 Terry Duell  1.13.01-3
214
- updated to fix Fedora desktop-file-install and install icon
215
216
* Sun Jan 10 2010 Jean-Francois Dockes <jfd@recoll.org> 1.13.01-2
217
- updated for recent fedoras: depend on xapian packages, use qt4
218
97
* Thu Jan 07 2010 Jean-Francois Dockes <jfd@recoll.org> 1.13.01-1
219
* Thu Jan 07 2010 Jean-Francois Dockes <jfd@recoll.org> 1.13.01-1
98
- Update to release 1.13.01
220
- update to release 1.13.01
99
* Thu Dec 10 2009 Jean-Francois Dockes <jfd@recoll.org> 1.12.4-1
221
100
 Update to release 1.12.4
101
* Wed Oct 28 2009 Jean-Francois Dockes <jfd@recoll.org> 1.12.3-1
102
 Update to release 1.12.3
103
* Tue Sep 20 2009 Jean-Francois Dockes <jfd@recoll.org> 1.12.2-1
104
 Update to release 1.12.0
105
* Thu Jan 29 2009 Jean-Francois Dockes <jfd@recoll.org> 1.12.0-1
106
 Update to release 1.12.0
107
* Mon Oct 13 2008 Jean-Francois Dockes <jfd@recoll.org> 1.11.0-1
108
 Update to release 1.11.0
109
* Thu Sep 11 2008 Jean-Francois Dockes <jfd@recoll.org> 1.10.6-1
110
 Update to release 1.10.6
111
* Thu May 27 2008 Jean-Francois Dockes <jfd@recoll.org> 1.10.2-1
112
 Update to release 1.10.2
113
* Thu Jan 31 2008 Jean-Francois Dockes <jfd@recoll.org> 1.10.1-1
114
 Update to release 1.10.1
115
* Wed Nov 21 2007 Jean-Francois Dockes <jfd@recoll.org> 1.10.0-1
116
 Update to release 1.10.0
117
* Tue Sep 11 2007 Jean-Francois Dockes <jfd@recoll.org> 1.9.0-1
118
 Update to release 1.9.0
119
* Tue Mar 6 2007 Jean-Francois Dockes <jfd@recoll.org> 1.8.1-1
120
 Update to release 1.8.1
121
* Mon Jan 15 2007 Jean-Francois Dockes <jfd@recoll.org> 1.7.5-1
122
 Update to release 1.7.5
123
* Mon Jan 08 2007 Jean-Francois Dockes <jfd@recoll.org> 1.7.3-1
124
 Update to release 1.7.3
125
* Tue Nov 28 2006 Jean-Francois Dockes <jfd@recoll.org> 1.6.1-1
126
 Update to release 1.6.1
127
* Mon Oct 2 2006 Jean-Francois Dockes <jfd@recoll.org> 1.4.3-1
128
 Update to release 1.5.3
129
* Sun May 7 2006 Jean-Francois Dockes <jfd@recoll.org> 1.4.3-1
130
 Update to release 1.4.3
131
* Fri Mar 31 2006 Jean-Francois Dockes <jfd@recoll.org> 1.3.3-1
132
 Update to release 1.3.3
133
* Thu Feb  2 2006 Jean-Francois Dockes <jfd@recoll.org> 1.2.2-1
222
* Wed Feb  1 2006 Jean-Francois Dockes <jfd@recoll.org> 1.2.0-1
134
 Update to release 1.2.2
135
* Thu Jan 10 2006 Jean-Francois Dockes <jfd@recoll.org> 1.1.0-1
136
- Initial packaging
223
- initial packaging
224