move librecoll to lib/recoll
This commit is contained in:
parent
a23e38602c
commit
aa06cd13f8
9 changed files with 24 additions and 27 deletions
|
@ -1,5 +1,5 @@
|
||||||
%define name recoll
|
%define name recoll
|
||||||
%define version 1.17.2
|
%define version 3152
|
||||||
%define release 0
|
%define release 0
|
||||||
|
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -40,6 +40,7 @@ make %{?_smp_mflags}
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
%{__chmod} 0755 $RPM_BUILD_ROOT/%{_libdir}/%{name}/lib%{name}.so.%{version}
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -52,6 +53,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{python_sitearch}/
|
%{python_sitearch}/
|
||||||
|
%{_libdir}/%{name}
|
||||||
|
%{_libdir}/%{name}/lib%{name}.so.%{version}
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
%{_datadir}/applications/recoll-searchgui.desktop
|
%{_datadir}/applications/recoll-searchgui.desktop
|
||||||
%{_datadir}/icons/hicolor/48x48/apps/recoll.png
|
%{_datadir}/icons/hicolor/48x48/apps/recoll.png
|
||||||
|
|
|
@ -35,7 +35,7 @@ export QMAKE=qmake-qt4
|
||||||
%install
|
%install
|
||||||
%{__rm} -rf %{buildroot}
|
%{__rm} -rf %{buildroot}
|
||||||
%{__make} install DESTDIR=%{buildroot} STRIP=/bin/true INSTALL='install -p'
|
%{__make} install DESTDIR=%{buildroot} STRIP=/bin/true INSTALL='install -p'
|
||||||
%{__chmod} 0755 %{buildroot}/%{_libdir}/lib%{name}.so.%{version}
|
%{__chmod} 0755 %{buildroot}/%{_libdir}/%{name}/lib%{name}.so.%{version}
|
||||||
|
|
||||||
desktop-file-install --delete-original \
|
desktop-file-install --delete-original \
|
||||||
--dir=%{buildroot}/%{_datadir}/applications \
|
--dir=%{buildroot}/%{_datadir}/applications \
|
||||||
|
@ -72,7 +72,8 @@ exit 0
|
||||||
%doc COPYING ChangeLog README
|
%doc COPYING ChangeLog README
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_bindir}/%{name}index
|
%{_bindir}/%{name}index
|
||||||
%{_libdir}/lib%{name}.so.%{version}
|
%{_libdir}/%{name}
|
||||||
|
%{_libdir}/%{name}/lib%{name}.so.%{version}
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
%{_datadir}/applications/%{name}-searchgui.desktop
|
%{_datadir}/applications/%{name}-searchgui.desktop
|
||||||
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
||||||
|
|
|
@ -17,7 +17,7 @@ all: mk/sysconf
|
||||||
${MAKE} -C index recollindex
|
${MAKE} -C index recollindex
|
||||||
@NOQTMAKE@(cd $(QTGUI); ${QMAKE} recoll.pro)
|
@NOQTMAKE@(cd $(QTGUI); ${QMAKE} recoll.pro)
|
||||||
@NOQTMAKE@${MAKE} -C $(QTGUI) depth=..
|
@NOQTMAKE@${MAKE} -C $(QTGUI) depth=..
|
||||||
@NOPYTHON@${MAKE} -C python/recoll
|
@NOPYTHON@${MAKE} -C python/recoll libdir=$(libdir)
|
||||||
${MAKE} -C query recollq xadump
|
${MAKE} -C query recollq xadump
|
||||||
|
|
||||||
mk/sysconf:
|
mk/sysconf:
|
||||||
|
|
|
@ -54,7 +54,7 @@ add_custom_target(rcllib
|
||||||
)
|
)
|
||||||
add_dependencies(kio_recoll rcllib)
|
add_dependencies(kio_recoll rcllib)
|
||||||
|
|
||||||
target_link_libraries(kio_recoll recoll xapian z ${EXTRA_LIBS} ${KDE4_KIO_LIBS})
|
target_link_libraries(kio_recoll recoll ${EXTRA_LIBS} ${KDE4_KIO_LIBS})
|
||||||
|
|
||||||
install(TARGETS kio_recoll DESTINATION ${PLUGIN_INSTALL_DIR})
|
install(TARGETS kio_recoll DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ COMMONCXXFLAGS = -I. \
|
||||||
# the sys file or localdefs
|
# the sys file or localdefs
|
||||||
SYSPICFLAGS = -fPIC -DPIC
|
SYSPICFLAGS = -fPIC -DPIC
|
||||||
|
|
||||||
LIBRECOLL = -L $(depth)/lib -lrecoll -Wl,-rpath=$(libdir)
|
LIBRECOLL = -L $(depth)/lib -lrecoll -Wl,-rpath=$(libdir)/recoll
|
||||||
|
|
||||||
RANLIB = test -f
|
RANLIB = test -f
|
||||||
AR=ar
|
AR=ar
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
all:
|
all:
|
||||||
python setup.py build
|
echo libdir: $(libdir)
|
||||||
|
libdir=$(libdir) python setup.py build
|
||||||
install:
|
install:
|
||||||
sudo python setup.py install
|
sudo python setup.py install
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -5,18 +5,9 @@ import sys
|
||||||
sysname = os.uname()[0]
|
sysname = os.uname()[0]
|
||||||
top = os.path.join('..', '..')
|
top = os.path.join('..', '..')
|
||||||
|
|
||||||
libiconv = "@LIBICONV@"
|
library_dirs = [os.path.join(top, 'lib')]
|
||||||
|
libraries = ['recoll']
|
||||||
if libiconv.find("-liconv") != -1:
|
runtime_library_dirs = [os.path.join(os.environ['libdir'], 'recoll')]
|
||||||
libs = ['recoll', 'xapian', 'iconv']
|
|
||||||
else:
|
|
||||||
libs = ['recoll', 'xapian']
|
|
||||||
|
|
||||||
libxapiandir="@LIBXAPIANDIR@"
|
|
||||||
if libxapiandir != "":
|
|
||||||
libdirs = [os.path.join(top, 'lib'), libxapiandir, '/usr/local/lib']
|
|
||||||
else:
|
|
||||||
libdirs = [os.path.join(top, 'lib'), '/usr/local/lib']
|
|
||||||
|
|
||||||
# Verify that the Recoll library was compiled with the PIC options
|
# Verify that the Recoll library was compiled with the PIC options
|
||||||
localdefs = os.path.join(top, 'mk', 'localdefs')
|
localdefs = os.path.join(top, 'mk', 'localdefs')
|
||||||
|
@ -48,9 +39,9 @@ module1 = Extension('recoll',
|
||||||
os.path.join(top, 'query'),
|
os.path.join(top, 'query'),
|
||||||
os.path.join(top, 'unac')
|
os.path.join(top, 'unac')
|
||||||
],
|
],
|
||||||
libraries = libs,
|
libraries = libraries,
|
||||||
library_dirs = libdirs,
|
library_dirs = library_dirs,
|
||||||
runtime_library_dirs = libdirs,
|
runtime_library_dirs = runtime_library_dirs,
|
||||||
sources = ['pyrecoll.cpp'])
|
sources = ['pyrecoll.cpp'])
|
||||||
|
|
||||||
module2 = Extension('rclextract',
|
module2 = Extension('rclextract',
|
||||||
|
@ -65,9 +56,9 @@ module2 = Extension('rclextract',
|
||||||
os.path.join(top, 'internfile'),
|
os.path.join(top, 'internfile'),
|
||||||
os.path.join(top, 'rcldb'),
|
os.path.join(top, 'rcldb'),
|
||||||
],
|
],
|
||||||
libraries = libs,
|
libraries = libraries,
|
||||||
library_dirs = libdirs,
|
library_dirs = library_dirs,
|
||||||
runtime_library_dirs = libdirs,
|
runtime_library_dirs = runtime_library_dirs,
|
||||||
sources = ['pyrclextract.cpp'])
|
sources = ['pyrclextract.cpp'])
|
||||||
|
|
||||||
setup (name = 'Recoll',
|
setup (name = 'Recoll',
|
||||||
|
|
|
@ -82,7 +82,7 @@ unix {
|
||||||
OBJECTS_DIR = .obj
|
OBJECTS_DIR = .obj
|
||||||
# Expanding prefix here is not good as it means that it can't be
|
# Expanding prefix here is not good as it means that it can't be
|
||||||
# redefined at make time.
|
# redefined at make time.
|
||||||
LIBS += $(BSTATIC) -L../lib -lrecoll -Wl,-rpath=@prefix@/lib \
|
LIBS += $(BSTATIC) -L../lib -lrecoll -Wl,-rpath=@prefix@/lib/recoll \
|
||||||
@LIBXAPIAN@ $(LIBXAPIANSTATICEXTRA) \
|
@LIBXAPIAN@ $(LIBXAPIANSTATICEXTRA) \
|
||||||
@LIBICONV@ $(BDYNAMIC) @LIBQZEITGEIST@ -lz
|
@LIBICONV@ $(BDYNAMIC) @LIBQZEITGEIST@ -lz
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,7 @@ test -x $TESTPROG || fatal "$TESTPROG does not exist." \
|
||||||
for d in \
|
for d in \
|
||||||
${bindir} \
|
${bindir} \
|
||||||
${libdir} \
|
${libdir} \
|
||||||
|
${libdir}/recoll \
|
||||||
${mandir}/man1 \
|
${mandir}/man1 \
|
||||||
${mandir}/man5 \
|
${mandir}/man5 \
|
||||||
${datadir}/icons \
|
${datadir}/icons \
|
||||||
|
@ -116,7 +117,7 @@ ${INSTALL} -m 0444 doc/man/recoll.conf.5 ${mandir}/man5/
|
||||||
${INSTALL} -m 0755 index/recollindex ${bindir} || exit 1
|
${INSTALL} -m 0755 index/recollindex ${bindir} || exit 1
|
||||||
${STRIP} ${bindir}/recollindex
|
${STRIP} ${bindir}/recollindex
|
||||||
|
|
||||||
${INSTALL} -m 0644 lib/librecoll.so.${RCLLIBVERSION} ${libdir} || exit 1
|
${INSTALL} -m 0644 lib/librecoll.so.${RCLLIBVERSION} ${libdir}/recoll/ || exit 1
|
||||||
|
|
||||||
${INSTALL} -m 0755 filters/rcl* ${datadir}/recoll/filters/ || exit 1
|
${INSTALL} -m 0755 filters/rcl* ${datadir}/recoll/filters/ || exit 1
|
||||||
for f in rclexecm.py rcllatinstops.zip;do
|
for f in rclexecm.py rcllatinstops.zip;do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue