/[smecontribs]/rpms/PyLucene/contribs8/pylucene.spec
ViewVC logotype

Annotation of /rpms/PyLucene/contribs8/pylucene.spec

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


Revision 1.1 - (hide annotations) (download)
Thu Mar 27 14:37:58 2008 UTC (16 years, 2 months ago) by slords
Branch: MAIN
CVS Tags: PyLucene-2_2_0-2_svn338_el5_sme
Import on branch contribs8 of package PyLucene-2.2.0-2.svn338.el5.sme.src.rpm

1 slords 1.1
2     %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
3    
4     %define rev 338
5    
6     # How to fetch the sources from svn:
7     #
8     # svn checkout --revision=%{rev} http://svn.osafoundation.org/pylucene/trunk
9     # svn export trunk PyLucene-svn%{rev}
10     # tar -czf PyLucene-svn%{rev}.tar.gz PyLucene-svn%{rev}
11     # rm -rf trunk PyLucene-svn%{rev}
12     #
13     # svn checkout --revision=549438 http://svn.apache.org/repos/asf/lucene/java/trunk
14     # svn export trunk lucene-java-2.2.0-549438
15     # tar -czf lucene-java-2.2.0-549438.tar.gz lucene-java-2.2.0-549438
16     # rm -rf trunk lucene-java-2.2.0-549438
17    
18     Name: PyLucene
19     Version: 2.2.0
20     Release: 2.svn%{rev}%{?dist}
21     Summary: Python search engine library
22    
23     Group: Development/Languages
24     License: MIT license
25     URL: http://pylucene.osafoundation.org
26     Source0: %{name}-svn%{rev}.tar.gz
27     Source1: lucene-java-2.2.0-549438.tar.gz
28     Patch0: pylucene_dev-config.patch
29    
30     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
31     BuildRequires: ant python-devel
32    
33     %description
34     PyLucene is a GCJ-compiled version of Java Lucene integrated with Python. Its
35     goal is to allow you to use Lucene's text indexing and searching capabilities
36     from Python. It is designed to be API compatible with the latest version of
37     Java Lucene.
38    
39     %package docs
40     Summary: PyLucene documentation
41     Group: Documentation
42    
43     %description docs
44     PyLucene is a GCJ-compiled version of Java Lucene integrated with Python. Its
45     goal is to allow you to use Lucene's text indexing and searching capabilities
46     from Python.
47    
48     This package contains the documentation and samples for PyLucene.
49    
50    
51     %prep
52     # PyLucene does not use autoconf, so we need a custom mechanism to tell the
53     # Makefile if it should use 'lib' oder 'lib64'.
54     export LIBDIR_NAME=`echo %{_libdir} | sed -e "s/^.*\/\(lib6\?4\?\).*$/\1/"`
55     %setup -q -n %{name}-svn%{rev}
56     # -D Do not delete the directory before unpacking.
57     # -a # will untar Source# after cd'ing into the directory.
58     %setup -D -a 1 -n %{name}-svn%{rev}
59     %patch0
60    
61     %build
62     export LIBDIR_NAME=`echo %{_libdir} | sed -e "s/^.*\/\(lib6\?4\?\).*$/\1/"`
63     make
64    
65    
66     %install
67     rm -rf $RPM_BUILD_ROOT
68     export LIBDIR_NAME=`echo %{_libdir} | sed -e "s/^.*\/\(lib6\?4\?\).*$/\1/"`
69     make install DESTDIR=%{buildroot}
70    
71     %clean
72     rm -rf $RPM_BUILD_ROOT
73    
74     %files
75     %defattr(-,root,root,-)
76     %doc CHANGES LICENSE README
77     # For arch-specific packages: sitearch
78     %{python_sitearch}/*
79    
80     %files docs
81     %doc samples
82    
83     %changelog
84     * Sat Sep 22 2007 Felix Schwarz <felix.schwarz@web.de> - 2.2.0-2.svn338
85     - (build) requirements corrected
86     - package will built correctly on i386 and x86_64
87    
88     * Fri Sep 21 2007 Felix Schwarz <felix.schwarz@web.de> - 2.2.0-1.svn338
89     - switched to latest trunk version (r338) because stable version does not work
90     with gcj 4.1
91    
92     * Thu Sep 20 2007 Felix Schwarz <felix.schwarz@web.de> - 2.2.0-1.1
93     - initial spec file creation
94    

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