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


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