source: projects/specs/trunk/x/xapian-core/xapian-core-vl.spec @ 9560

Revision 9560, 4.6 KB checked in by Takemikaduchi, 9 years ago (diff)

ImageMagick?: new upstream release
others: remove *.la files

Line 
1Summary: The Xapian Probabilistic Information Retrieval Library
2Name: xapian-core
3Version: 1.2.20
4Release: 1%{_dist_release}
5License: GPL
6Group: Applications/Databases
7Source: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.xz
8URL: http://xapian.org/
9
10BuildRequires: gcc-c++ zlib-devel libuuid-devel
11
12Requires: %{name}-libs = %{version}
13
14BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15
16
17Vendor:         Project Vine
18Distribution:   Vine Linux
19Packager:       Takemikaduchi
20
21%description
22Xapian is an Open Source Probabilistic Information Retrieval Library. It
23offers a highly adaptable toolkit that allows developers to easily add advanced
24indexing and search facilities to applications.
25
26%package libs
27Summary: Xapian search engine libraries.
28Group: System Environment/Libraries
29
30%description libs
31Xapian is an Open Source Probabilistic Information Retrieval framework. It
32offers a highly adaptable toolkit that allows developers to easily add advanced
33indexing and search facilities to applications. This package provides the
34libraries for applications using Xapian functionality.
35
36%package devel
37Group: Development/Libraries
38Summary: Files needed for building packages which use Xapian.
39Requires: %{name}-libs = %{version}
40Requires: pkgconfig
41
42%description devel
43Xapian is an Open Source Probabilistic Information Retrieval framework. It
44offers a highly adaptable toolkit that allows developers to easily add advanced
45indexing and search facilities to applications. This package provides the
46files needed for building packages which use Xapian.
47
48%prep
49%setup -q -n %{name}-%{version}
50
51%build
52# As of 1.1.0, Xapian uses libtool 2.2.x which allows us to override libtool's
53# sometimes conservative take on which directories are in the default dynamic
54# linker search path, so we no longer incorrectly try to set rpath for
55# /usr/lib64.  Hence there's no longer a need to run "autoreconf --force" here
56# and it's better not to as it avoids having to cope with incompatibilities
57# with older versions of the autotools which older distros have.
58#autoreconf --force
59%configure
60make
61
62%install
63[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
64mkdir -p %{buildroot}
65# makeinstall doesn't work properly with libtool built libraries
66make DESTDIR=%{buildroot} install
67# Move the docs to the right place
68mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}
69# Copy HACKING now, as "%doc HACKING" would overwrite everything
70cp HACKING %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}
71# Copy the rest while we are in this directory
72mkdir -p %{buildroot}%{_datadir}/doc/%{name}-%{version}
73cp AUTHORS ChangeLog ChangeLog.examples COPYING NEWS PLATFORMS README %{buildroot}%{_datadir}/doc/%{name}-%{version}
74
75find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
76
77
78%clean
79[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
80
81
82%post libs -p /sbin/ldconfig
83
84%postun libs -p /sbin/ldconfig
85
86%files
87%defattr(-, root, root)
88%{_bindir}/xapian-tcpsrv
89%{_bindir}/xapian-progsrv
90%{_bindir}/quest
91%{_bindir}/delve
92%{_bindir}/copydatabase
93%{_bindir}/simpleindex
94%{_bindir}/simplesearch
95%{_bindir}/simpleexpand
96%{_bindir}/xapian-check
97%{_bindir}/xapian-chert-update
98%{_bindir}/xapian-compact
99%{_bindir}/xapian-inspect
100%{_bindir}/xapian-replicate
101%{_bindir}/xapian-replicate-server
102%{_bindir}/xapian-metadata
103%doc %{_datadir}/doc/%{name}-%{version}
104# man pages may be gzipped, hence the trailing wildcard.
105%{_mandir}/man1/xapian-tcpsrv.1*
106%{_mandir}/man1/xapian-progsrv.1*
107%{_mandir}/man1/quest.1*
108%{_mandir}/man1/delve.1*
109%{_mandir}/man1/copydatabase.1*
110%{_mandir}/man1/xapian-check.1*
111%{_mandir}/man1/xapian-chert-update.1*
112%{_mandir}/man1/xapian-compact.1*
113%{_mandir}/man1/xapian-inspect.1*
114%{_mandir}/man1/xapian-replicate.1*
115%{_mandir}/man1/xapian-replicate-server.1*
116%{_mandir}/man1/xapian-metadata.1*
117
118%files libs
119%defattr(-, root, root)
120%{_libdir}/libxapian*.so.*
121%{_libdir}/pkgconfig/xapian-core.pc
122
123%files devel
124%defattr(-, root, root)
125%{_bindir}/xapian-config
126%{_includedir}/xapian
127%{_includedir}/xapian.h
128%{_libdir}/libxapian*.so
129%{_libdir}/libxapian*.a
130%{_libdir}/cmake/xapian
131%{_datadir}/aclocal/xapian*.m4
132%doc %{_datadir}/doc/%{name}-devel-%{version}
133# man pages may be gzipped, hence the trailing wildcard.
134%{_mandir}/man1/xapian-config.1*
135
136%changelog
137* Sun May 10 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp>  1.2.20-1
138- new upstream release
139- remove *.la files
140
141* Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp>  1.2.19-1
142- new upstream release
143
144* Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp>  1.2.16-1
145- new upstream release
146
147* Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp>  1.2.12-1
148- initial build
Note: See TracBrowser for help on using the repository browser.