From b5417c9becc9374970044acacb2f7d733dd378b0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 1 Jul 2010 07:03:02 -0400 Subject: [PATCH] Add pazpar2.spec.in (not working at all) --- configure.ac | 1 + pazpar2.spec.in | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 pazpar2.spec.in diff --git a/configure.ac b/configure.ac index a02bb8e..bc0966b 100644 --- a/configure.ac +++ b/configure.ac @@ -51,6 +51,7 @@ AC_DEFINE_UNQUOTED([PAZPAR2_VERSION_SHA1], ["$sha"], [Git SHA1]) AC_CONFIG_FILES([ Doxyfile Makefile + pazpar2.spec src/Makefile test/Makefile js/Makefile diff --git a/pazpar2.spec.in b/pazpar2.spec.in new file mode 100644 index 0000000..8683174 --- /dev/null +++ b/pazpar2.spec.in @@ -0,0 +1,62 @@ +Summary: Metasearcher +Name: pazpar2 +Version: @VERSION@ +Release: 1 +License: BSD +Group: Applications/Internet +Vendor: Index Data ApS +Source: pazpar2-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildRequires: libyaz4-devel +Packager: Adam Dickmeiss +URL: http://www.indexdata.com/pazpar2 + +%description +Pazpar2 is a high-performance, user interface-independent, data +model-independent metasearching middleware featuring merging, relevance +ranking, record sorting, and faceted results. + +%package -n pazpar2 +Summary: pazpar2 daemon +Group: Applications/Internet +Requires: libyaz4 + +%description -n pazpar2-js +This package includes the Java Script library pz2.js. It also adds an +Alias for Apache2 so that this library and other demo portals are +available. + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%prep +%setup + +%build + +CFLAGS="$RPM_OPT_FLAGS" \ + ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \ + --with-yaz=/usr/bin +make CFLAGS="$RPM_OPT_FLAGS" + +%install +rm -fr ${RPM_BUILD_ROOT} +make prefix=${RPM_BUILD_ROOT}/%{_prefix} mandir=${RPM_BUILD_ROOT}/%{_mandir} \ + libdir=${RPM_BUILD_ROOT}/%{_libdir} install +rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la + +%clean +rm -fr ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root) +%doc README LICENSE NEWS +%{_sbindir}/pazpar2 +%{_etcdir}/pazpar2 +%{_mandir}/man5/pazpar2* +%{_mandir}/man7/pazpar2* +%{_mandir}/man8/pazpar2* + +%files -n pazpar2-js +%defattr(-,root,root) +%{_datadir}/js/pz2.js -- 1.7.10.4