Summary: Z39.50/SRU router Name: metaproxy Version: 1.3.5 Release: 1indexdata License: GPL Group: Applications/Internet Vendor: Index Data ApS Source: metaproxy-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root Prefix: %{_prefix} /etc/metaproxy BuildRequires: pkgconfig, libyaz4-devel >= 4.2.8, libyazpp4-devel >= 1.2.7 BuildRequires: libxslt-devel, boost-devel Packager: Adam Dickmeiss URL: http://www.indexdata.com/metaproxy Group: Applications/Internet Requires: libmetaproxy4 = %{version} %description Metaproxy daemon. %package doc Summary: Metaproxy documentation Group: Documentation %description doc Metaproxy documentation. %package -n libmetaproxy4 Summary: Metaproxy library Group: Libraries Requires: libyazpp4 %description -n libmetaproxy4 The Metaproxy libraries. %package -n libmetaproxy4-devel Summary: Metaproxy development package Group: Development/Libraries Requires: libmetaproxy4 = %{version}, libyazpp4-devel, boost-devel Conflicts: libmetaproxy3-devel %description -n libmetaproxy4-devel Development libraries and include files for the Metaproxy package. %prep %setup %build CFLAGS="$RPM_OPT_FLAGS" \ ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \ --enable-shared --with-yazpp=/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 rm -fr ${RPM_BUILD_ROOT}/%{_prefix}/share/metaproxy rm -f ${RPM_BUILD_ROOT}/%{_libdir}/metaproxy/* mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/metaproxy4/modules mkdir -p ${RPM_BUILD_ROOT}/etc/metaproxy/filters-enabled mkdir -p ${RPM_BUILD_ROOT}/etc/metaproxy/filters-available mkdir -p ${RPM_BUILD_ROOT}/etc/logrotate.d mkdir -p ${RPM_BUILD_ROOT}/etc/init.d mkdir -p ${RPM_BUILD_ROOT}/etc/sysconfig install -m 644 rpm/metaproxy.xml ${RPM_BUILD_ROOT}/etc/metaproxy/metaproxy.xml install -m 755 rpm/metaproxy.init ${RPM_BUILD_ROOT}/etc/init.d/metaproxy install -m 644 rpm/metaproxy.sysconfig ${RPM_BUILD_ROOT}/etc/sysconfig/metaproxy install -m 644 rpm/metaproxy.logrotate ${RPM_BUILD_ROOT}/etc/logrotate.d/metaproxy %clean rm -fr ${RPM_BUILD_ROOT} %files -n libmetaproxy4 %doc README LICENSE NEWS %defattr(-,root,root) %{_libdir}/*.so.* %dir %{_libdir}/metaproxy4/modules %post -n libmetaproxy4 -p /sbin/ldconfig %postun -n libmetaproxy4 -p /sbin/ldconfig %files -n libmetaproxy4-devel %defattr(-,root,root) %{_includedir}/metaproxy %{_libdir}/*.so %{_libdir}/*.a %{_bindir}/metaproxy-config %files doc %defattr(-,root,root) %{_prefix}/share/doc/metaproxy %files %defattr(-,root,root) %{_bindir}/metaproxy %{_mandir}/man?/* %config /etc/init.d/metaproxy %config(noreplace) /etc/metaproxy/metaproxy.xml %dir /etc/metaproxy/filters-available %dir /etc/metaproxy/filters-enabled %config(noreplace) /etc/logrotate.d/metaproxy %config(noreplace) /etc/sysconfig/metaproxy %post if [ $1 = 1 ]; then /sbin/chkconfig --add metaproxy /sbin/service metaproxy start > /dev/null 2>&1 else /sbin/service metaproxy restart > /dev/null 2>&1 fi %preun if [ $1 = 0 ]; then /sbin/service metaproxy stop > /dev/null 2>&1 /sbin/chkconfig --del metaproxy fi