/[smecontribs]/rpms/xapian-bindings/contribs8/xapian-bindings.spec
ViewVC logotype

Diff of /rpms/xapian-bindings/contribs8/xapian-bindings.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.3 by slords, Tue Nov 25 16:20:36 2008 UTC Revision 1.4 by slords, Wed Feb 24 17:37:52 2010 UTC
# Line 1  Line 1 
1  # $Id: xapian-bindings.spec,v 1.1 2008/10/20 02:01:36 slords Exp $  %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
2  # Authority: slords  %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
3  # Name: Shad L. Lords  %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
4    
5  %define python_ver %(%{__python} -c "import sys; print sys.version[:3]")  Name:          xapian-bindings
6    Version:       1.0.17
7  Summary: Bindings for the Xapian Probabilistic Information Retrieval Library  Release:       3%{?dist}
8  Name: xapian-bindings  Summary:       Bindings for the Xapian Probabilistic Information Retrieval Library
9  Version: 1.0.6  
10  Release: 1%{?dist}  Group:         Development/Libraries
11  License: GPLv2+  License:       GPLv2+
12  Group: Development/Libraries  URL:           http://www.xapian.org/
13  URL: http://www.xapian.org/  Source0:       http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.gz
14    Buildroot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15    
16  BuildRequires: python-devel >= 2.2  BuildRequires: python-devel >= 2.2
17  BuildRequires: autoconf automake libtool  BuildRequires: ruby-devel ruby
18  BuildRequires: xapian-core-devel == %{version}  BuildRequires: xapian-core-devel == %{version}
 Source0: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.gz  
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)  
19    
20  %description  %description
21  Xapian is an Open Source Probabilistic Information Retrieval Library. It  Xapian is an Open Source Probabilistic Information Retrieval Library. It
# Line 24  indexing and search facilities to applic Line 24  indexing and search facilities to applic
24  files needed for scripts which use Xapian  files needed for scripts which use Xapian
25    
26  %package python  %package python
27  Group: Development/Libraries  Group:         Development/Libraries
28  Summary: Files needed for developing Python scripts which use Xapian  Summary:       Files needed for developing Python scripts which use Xapian
29    Obsoletes:     pyxapian
30    
31  %description python  %description python
32  Xapian is an Open Source Probabilistic Information Retrieval framework. It  Xapian is an Open Source Probabilistic Information Retrieval framework. It
# Line 33  offers a highly adaptable toolkit that a Line 34  offers a highly adaptable toolkit that a
34  indexing and search facilities to applications. This package provides the  indexing and search facilities to applications. This package provides the
35  files needed for developing Python scripts which use Xapian  files needed for developing Python scripts which use Xapian
36    
37    %package ruby
38    Group:         Development/Libraries
39    Summary:       Files needed for developing Ruby scripts which use Xapian
40    
41    %description ruby
42    Xapian is an Open Source Probabilistic Information Retrieval framework. It
43    offers a highly adaptable toolkit that allows developers to easily add advanced
44    indexing and search facilities to applications. This package provides the
45    files needed for developing Ruby scripts which use Xapian
46    
47  %prep  %prep
48  %setup -q -n %{name}-%{version}  %setup -q
49    
50  %build  %build
51  %configure --with-python  %configure --with-python --with-ruby
52  make %{?_smp_mflags}  make %{?_smp_mflags} V=1
53    
54  %install  %install
55  rm -rf %{buildroot}  rm -rf %{buildroot}
56  mkdir -p %{buildroot}  make install DESTDIR=%{buildroot} INSTALL='install -p'
57  # Installation of some files does not obey prefix, DESTDIR is required  
58  %makeinstall DESTDIR=%{buildroot}  # Remove the dev docs, we pick them up below
59  # Move the docs to the right place, and correct the effects of prefix+DESTDIR  rm -rf %{buildroot}%{_datadir}/doc/%{name}
 mkdir -p %{buildroot}/usr/share/doc/  
 mv %{buildroot}%{buildroot}/usr/share/doc/%{name}/python %{buildroot}/usr/share/doc/%{name}-python-%{version}  
 rm -rf %{buildroot}%{buildroot}/usr/share/doc/%{name}/  
60    
61  %clean  %clean
62  [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}  rm -rf %{buildroot}
63    
64  %files python  %files python
65  %defattr(-, root, root)  %defattr(-, root, root)
66  %doc AUTHORS ChangeLog COPYING NEWS README  %doc AUTHORS ChangeLog COPYING NEWS README
67  %{_libdir}/python%{python_ver}/site-packages/_xapian.so  %doc python/docs/examples
68  %{_libdir}/python%{python_ver}/site-packages/xapian.py  %{python_sitearch}/*
 %{_libdir}/python%{python_ver}/site-packages/xapian.pyc  
 %{_libdir}/python%{python_ver}/site-packages/xapian.pyo  
   
69    
70    %files ruby
71    %defattr(-, root, root)
72    %doc AUTHORS ChangeLog COPYING NEWS README
73    %doc ruby/docs/rdocs ruby/docs/examples
74    %{ruby_sitearch}/_xapian.so
75    %{ruby_sitelib}/xapian.rb
76    
77  %changelog  %changelog
78    * Sat Jan  9 2010 Peter Robinson <pbrobinson@gmail.com> 1.0.17-3
79    - Updated to the new python sysarch spec file reqs
80    
81    * Wed Dec  2 2009 Peter Robinson<pbrobinson@gmail.com> 1.0.17-2
82    - Drop upstreamed patch
83    
84    * Wed Dec  2 2009 Peter Robinson<pbrobinson@gmail.com> 1.0.17-1
85    - Update to 1.0.17
86    
87    * Sat Sep 19 2009 Peter Robinson<pbrobinson@gmail.com> 1.0.16-1
88    - Update to 1.0.16, some spec file cleanups
89    
90    * Sun Sep  6 2009 Peter Robinson<pbrobinson@gmail.com> 1.0.15-2
91    - Patch to fix python bindings build
92    
93    * Thu Aug 27 2009 Peter Robinson<pbrobinson@gmail.com> 1.0.15-1
94    - Update to 1.0.15
95    
96    * Wed Jul 29 2009 Peter Robinson<pbrobinson@gmail.com> 1.0.14-1
97    - Update to 1.0.14
98    
99    * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-2
100    - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
101    
102    * Fri Jun  5 2009 Peter Robinson<pbrobinson@gmail.com> 1.0.13-1
103    - Update to 1.0.13
104    
105    * Sun Apr 19 2009 Peter Robinson<pbrobinson@gmail.com> 1.0.12-1
106    - Update to 1.0.12
107    
108    * Tue Apr 07 2009 Peter Robinson<pbrobinson@gmail.com> 1.0.11-2
109    - Obsolete pyxapian
110    
111    * Mon Apr 06 2009 Peter Robinson<pbrobinson@gmail.com> 1.0.11-1
112    - Update to 1.0.11
113    
114    * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-3
115    - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
116    
117    * Sun Nov 30 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 1.0.9-2
118    - Rebuild for Python 2.6
119    
120    * Sat Nov 29 2008 Adel Gadllah <adel.gadllah@gmail.com> 1.0.9-1
121    - Update to 1.0.9
122    
123    * Sat Oct 11 2008 Adel Gadllah <adel.gadllah@gmail.com> 1.0.8-1
124    - Update to 1.0.8
125    
126    * Mon Jul 28 2008 Adel Gadllah <adel.gadllah@gmail.com> 1.0.7-2
127    - Enable ruby bindings RH #456951, patch by Scott Seago
128    
129    * Sun Jul 20 2008 Adel Gadllah <adel.gadllah@gmail.com> 1.0.7-1
130    - Update to 1.0.7
131    
132  * Sun Mar 30 2008 Adel Gadllah <adel.gadllah@gmail.com> 1.0.6-1  * Sun Mar 30 2008 Adel Gadllah <adel.gadllah@gmail.com> 1.0.6-1
133  - Update to 1.0.6  - Update to 1.0.6
134    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed