Warning, /RDBC/RDBC.spec.in is written in an unsupported language. File is not indexed.
0001 # $Id: RDBC.spec.in,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
0002 #
0003 # RPM Spec file for RDBC library
0004 #
0005
0006 %define rootsys @ROOTSYS@
0007 %define root_version @ROOT_VER@
0008 %define gcc_version @GCC_VER@
0009
0010 %define name @PACKAGE@
0011 %define version @VERSION@
0012
0013 %define full_version %{version}_root%{root_version}_gcc%{gcc_version}
0014 %define full_name %{name}-%{full_version}
0015
0016 Name: %{name}
0017 Summary: ROOT class library that emulates JDBC API
0018 Version: %{version}
0019 Release: 1
0020 Source: http:/www.phenix.bnl.gov/WWW/publish/onuchin/RDBC/download/%{name}-%{version}.tar.gz
0021 Group: Development/Libraries
0022 Copyright: GPL
0023 #Requires: root >= 3.00
0024 Distribution: RDBC
0025 Vendor: Valeriy Onuchin <onuchin@sirius.ihep.su>
0026 Packager: Valeriy Onuchin <onuchin@sirius.ihep.su>
0027
0028 requires: unixODBC
0029 requires: root >= 3.0
0030 #BuildPreReq: unixODBC-devel
0031 #BuildPreReq: root >= 3.0
0032
0033 Url: myhost
0034 BuildRoot: /var/tmp/%{name}-root
0035 Prefix: %{rootsys}
0036
0037
0038 %description
0039 The library provides an interface between ROOT <root.cern.ch>
0040 and Relational Databases based on the JDBC API.
0041
0042 To install %{name} use: rpm -i --prefix=$ROOTSYS %{full_name}.i386.rpm
0043
0044
0045 %prep
0046 rm -rf $RPM_BUILD_ROOT
0047
0048 %setup -n %{name}-%{version}
0049
0050 %build
0051 ./configure \
0052 --prefix=${RPM_BUILD_ROOT}/%{rootsys} \
0053 --with-odbc --enable-threads \
0054 --with-gnu-ld --without-tests
0055 gmake clean
0056 gmake all
0057
0058 %clean
0059 rm -rf $RPM_BUILD_ROOT
0060 rm -rf /usr/src/redhat/BUILD/%{name}-%{version}
0061
0062 %install
0063 gmake install
0064
0065 %post
0066 ldconfig -n %{rootsys}/lib
0067 ldconfig -n /usr/lib
0068
0069 %postun
0070 ldconfig -n %{rootsys}/lib
0071 ldconfig -n /usr/lib
0072
0073 %files
0074 %doc AUTHORS
0075 %doc COPYING
0076 %doc ChangeLog
0077 %doc INSTALL
0078 %doc INSTALL.local
0079 %doc NEWS
0080 %doc TODO
0081 %doc BUGS
0082 %doc README
0083
0084 %defattr(-,root,root)
0085 %attr(0755,root,root) %{rootsys}/lib/libRDBC*.so.*
0086 %attr(0644,root,root) %{rootsys}/include/RDBC/*.h
0087
0088 %attr(0755,root,root) %{rootsys}/macros/RDBC/README.RDBC
0089 %attr(0755,root,root) %{rootsys}/macros/RDBC/*sql
0090 %attr(0755,root,root) %{rootsys}/macros/RDBC/*.C
0091
0092