projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
metaproxy program: set file path to "." if empty
[metaproxy-moved-to-github.git]
/
metaproxy.spec
diff --git
a/metaproxy.spec
b/metaproxy.spec
index
dc541c5
..
1f05bb7
100644
(file)
--- a/
metaproxy.spec
+++ b/
metaproxy.spec
@@
-1,13
+1,15
@@
Summary: Z39.50/SRU router
Name: metaproxy
Summary: Z39.50/SRU router
Name: metaproxy
-Version: 1.2.1
-Release: 1
+Version: 1.2.9
+Release: 1indexdata
License: GPL
Group: Applications/Internet
Vendor: Index Data ApS <info@indexdata.dk>
Source: metaproxy-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
License: GPL
Group: Applications/Internet
Vendor: Index Data ApS <info@indexdata.dk>
Source: metaproxy-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: pkgconfig, libyazpp4, libxslt-devel, boost-devel
+Prefix: %{_prefix} /etc/metaproxy
+BuildRequires: pkgconfig, libyaz4-devel >= 4.2.3, libyazpp4-devel >= 1.2.6
+BuildRequires: libxslt-devel, boost-devel
Packager: Adam Dickmeiss <adam@indexdata.dk>
URL: http://www.indexdata.com/metaproxy
Group: Applications/Internet
Packager: Adam Dickmeiss <adam@indexdata.dk>
URL: http://www.indexdata.com/metaproxy
Group: Applications/Internet
@@
-23,20
+25,21
@@
Group: Documentation
%description doc
Metaproxy documentation.
%description doc
Metaproxy documentation.
-%package -n libmetaproxy3
+%package -n libmetaproxy4
Summary: Metaproxy library
Group: Libraries
Requires: libyazpp4
Summary: Metaproxy library
Group: Libraries
Requires: libyazpp4
-%description -n libmetaproxy3
+%description -n libmetaproxy4
The Metaproxy libraries.
The Metaproxy libraries.
-%package -n libmetaproxy3-devel
+%package -n libmetaproxy4-devel
Summary: Metaproxy development package
Group: Development/Libraries
Summary: Metaproxy development package
Group: Development/Libraries
-Requires: libmetaproxy3 = %{version} libyazpp4-devel
+Requires: libmetaproxy4 = %{version}, libyazpp4-devel, boost-devel
+Conflicts: libmetaproxy3-devel
-%description -n libmetaproxy3-devel
+%description -n libmetaproxy4-devel
Development libraries and include files for the Metaproxy package.
%prep
Development libraries and include files for the Metaproxy package.
%prep
@@
-60,29
+63,32
@@
mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/metaproxy/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/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/rc.d/init.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 644 rpm/metaproxy.xml ${RPM_BUILD_ROOT}/etc/metaproxy/metaproxy.xml
-install -m 755 rpm/metaproxy.init ${RPM_BUILD_ROOT}/etc/rc.d/init.d/metaproxy
+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}
install -m 644 rpm/metaproxy.logrotate ${RPM_BUILD_ROOT}/etc/logrotate.d/metaproxy
%clean
rm -fr ${RPM_BUILD_ROOT}
-%files -n libmetaproxy3
+%files -n libmetaproxy4
%doc README LICENSE NEWS
%defattr(-,root,root)
%{_libdir}/*.so.*
%dir %{_libdir}/metaproxy/modules
%doc README LICENSE NEWS
%defattr(-,root,root)
%{_libdir}/*.so.*
%dir %{_libdir}/metaproxy/modules
-%post -n libmetaproxy3 -p /sbin/ldconfig
+%post -n libmetaproxy4 -p /sbin/ldconfig
-%postun -n libmetaproxy3 -p /sbin/ldconfig
+%postun -n libmetaproxy4 -p /sbin/ldconfig
-%files -n libmetaproxy3-devel
+%files -n libmetaproxy4-devel
%defattr(-,root,root)
%{_includedir}/metaproxy
%{_libdir}/*.so
%{_libdir}/*.a
%defattr(-,root,root)
%{_includedir}/metaproxy
%{_libdir}/*.so
%{_libdir}/*.a
+%{_bindir}/metaproxy-config
%files doc
%defattr(-,root,root)
%files doc
%defattr(-,root,root)
@@
-92,11
+98,12
@@
rm -fr ${RPM_BUILD_ROOT}
%defattr(-,root,root)
%{_bindir}/metaproxy
%{_mandir}/man?/*
%defattr(-,root,root)
%{_bindir}/metaproxy
%{_mandir}/man?/*
-%config /etc/rc.d/init.d/metaproxy
+%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/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
%post
if [ $1 = 1 ]; then