diff --git a/.cvsignore b/.cvsignore index e69de29..bbfcda8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +unixODBC-1.8.12.tar.gz diff --git a/DataManager.desktop b/DataManager.desktop new file mode 100644 index 0000000..e324138 --- /dev/null +++ b/DataManager.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=DataManager +Comment=Application finder +Exec=DataManager +Icon=LinuxODBC.xpm +MiniIcon=smallLinuxODBC.xpm +Type=Application +Terminal=0 diff --git a/ODBCConfig.desktop b/ODBCConfig.desktop new file mode 100644 index 0000000..33877e5 --- /dev/null +++ b/ODBCConfig.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=ODBCConfig +Comment=Application finder +Exec=ODBCConfig +Icon=LinuxODBC.xpm +MiniIcon=smallLinuxODBC.xpm +Type=Application +Terminal=0 diff --git a/odbcinst.ini b/odbcinst.ini new file mode 100644 index 0000000..ae15e04 --- /dev/null +++ b/odbcinst.ini @@ -0,0 +1,5 @@ +[PostgreSQL] +Description = ODBC for PostgreSQL +Driver = /usr/lib/libodbcpsql.so +Setup = /usr/lib/libodbcpsqlS.so +FileUsage = 1 \ No newline at end of file diff --git a/sources b/sources index e69de29..2a8f72d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +cbd336f24048e1000874452cd13054c2 unixODBC-1.8.12.tar.gz diff --git a/unixODBC.spec b/unixODBC.spec new file mode 100644 index 0000000..ea258df --- /dev/null +++ b/unixODBC.spec @@ -0,0 +1,161 @@ +Summary: A complete ODBC Driver Manager for Linux +Name: unixODBC +Version: 1.8.12 +Release: 2 +Copyright: LGPL +Group: System Environment/Libraries +Source: http://www.unixODBC.org/%{name}-%{version}.tar.gz +Source1: odbcinst.ini +Source2: ODBCConfig.desktop +Source3: DataManager.desktop +URL: http://www.unixODBC.org/ +Conflicts: iodbc +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The unixODBC Project goals are to develop and promote unixODBC to +be the definitive standard for ODBC on the Linux platform. This is to +include GUI support for KDE. + +Install unixODBC if you'd like to access databases through ODBC. This +package include drivers for PostgreSQL and local files. + +If you want to develop programs that will access data through ODBC, +you'll also need to have the unixODBC package installed. + +%package devel +Summary: Development files for programs which will use the unixODBC library. +Group: Development/Libraries +Requires: unixODBC = %{version} + +%description devel +Install unixODBC if you'd like to access databases through ODBC drivers. + +If you want to develop programs that will access data through ODBC, +you'll also need to install the unixODBC-devel (this) package. + +#%package kde +#Summary: KDE DriverManager components for ODBC +#Group: System Environment/Libraries +#requires: qt >= 2.1 + +#%description kde +#Components for the ODBCConfig and DataManager (KDE) Components of unixODBC. + +%prep +%setup -q + +%build +# pick up qt path +export QTDIR= +. /etc/profile.d/qt.sh +# clean up old moc files +(cd ODBCConfig && rm -f mclass*.cpp) +(cd DataManager && rm -f mclass*.cpp) +%configure --with-gnu-ld=yes --enable-threads=yes +make all + +%install +# pick up qt path +export QTDIR= +. /etc/profile.d/qt.sh + +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/System +mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons + +%makeinstall +cp %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} +cp ODBCConfig/LinuxODBC.xpm $RPM_BUILD_ROOT%{_datadir}/icons +cp ODBCConfig/smallLinuxODBC.xpm $RPM_BUILD_ROOT%{_datadir}/icons +install -m755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/System +install -m755 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/System + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc README COPYING AUTHORS ChangeLog NEWS INSTALL doc +%config %{_sysconfdir}/* +%{_libdir}/libodbcinst.so.1* +%{_libdir}/libodbc.so.1* +%{_libdir}/libodbccr.so.1* +%{_libdir}/libodbcdrvcfg1S.so.1* +%{_libdir}/libodbcdrvcfg2S.so.1* +%{_libdir}/libodbcpsql.so.1* +%{_libdir}/libodbcpsqlS.so.1* +%{_libdir}/libodbcminiS.so.1* +%{_libdir}/libodbcmyS.so.1* +%{_libdir}/liboraodbcS.so.1* +%{_libdir}/libodbcnnS.so.1* +%{_libdir}/libesoobS.so.1* +%{_libdir}/liboplodbcS.so.1* +%{_libdir}/libtdsS.so.1* +%{_libdir}/libtemplate.so.1* +%{_libdir}/libodbcextras.so.1* +%{_libdir}/libodbctxt.so.1* +%{_libdir}/libnn.so.1* +%{_bindir}/odbcinst +%{_bindir}/isql +%{_bindir}/dltest + +%files devel +%defattr(-,root,root) +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/*.la +%{_libdir}/*.a + +#%files kde +#%defattr(-,root,root) +#%{_bindir}/ODBCConfig +#%{_bindir}/DataManager + +#%post kde -p /sbin/ldconfig +#%postun kde -p /sbin/ldconfig + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%changelog +* Thu Aug 24 2000 Nalin Dahyabhai +- add the missing shared libs to the non-devel package + +* Wed Aug 23 2000 Preston Brown +- 1.8.12 fixes problems with the postgresql driver + +* Mon Jul 31 2000 Trond Eivind Glomsrød +- disable KDE subpackage to avoid the mess that is C++ binary + compatibility + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Fri Jun 30 2000 Florian La Roche +- improved QTDIR detection + +* Thu Jun 28 2000 Trond Eivind Glomsrød +- 1.8.10 +- use %%{_tmppath} +- update URL +- including two missing libraries + +* Tue Jun 13 2000 Preston Brown +- 1.8.9 + +* Fri Jun 09 2000 Preston Brown +- adopted for Winston, changed to Red Hat packaging standards + +* Tue Apr 18 2000 Murray Todd Williams +- added a unixODBC-devel RPM to the group, added KDE links and icons to system +- all of which came from recommendations from Fredrick Meunier +- + +* Mon Apr 17 2000 Murray Todd Williams +- unixODBC-1.8.7 +- moved install to $RPM_BUILD_ROOT so it didn't overrun existing files. + +