~ubuntu-branches/debian/sid/unixodbc/sid

« back to all changes in this revision

Viewing changes to Drivers/MySQL/myodbc3.spec.sh

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2004-10-15 03:07:52 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041015030752-dzw4vhxlgycz3woj
Tags: 2.2.4-11
Brown paper bag me: conflicts do not write themselves just because
you add a line to the changelog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%define myodbc_version          @MYODBC_VERSION@
 
2
%define release                 1
 
3
 
 
4
Name:           MyODBC
 
5
Summary:        An ODBC 3.51 driver for MySQL
 
6
Group:          Applications/Databases
 
7
Version:        %{myodbc_version}
 
8
Release:        %{release}
 
9
Copyright:      Public Domain, GPL
 
10
Source0:        MyODBC-%{myodbc_version}.tar.gz
 
11
URL:            http://www.mysql.com/
 
12
Vendor:         MySQL AB
 
13
Packager:       Venu Anuganti<venu@mysql.com>
 
14
 
 
15
# Think about what you use here since the first step is to
 
16
# run a rm -rf
 
17
BuildRoot:      /var/tmp/myodbc3
 
18
 
 
19
# From the manual
 
20
%description
 
21
MyODBC 3.51 is a enhanced version of MyODBC 2.50, with the ODBC 3.51 compliant from MySQL AB to access MySQL. The driver is commonly referred as 'MySQL ODBC 3.51 Driver'.
 
22
 
 
23
%prep
 
24
%setup -n MyODBC-%{myodbc_version}
 
25
 
 
26
%build
 
27
./configure \
 
28
        --prefix=${RPM_BUILD_ROOT}/usr/local \
 
29
        --with-iodbc=/usr/local
 
30
make
 
31
 
 
32
%clean 
 
33
rm -rf $RPM_BUILD_ROOT
 
34
 
 
35
%install
 
36
make PREFIX=$RPM_BUILD_ROOT install
 
37
 
 
38
find ${RPM_BUILD_ROOT}/usr/local -type f -print | sed "s@^${RPM_BUILD_ROOT}@@g" > myodbc-filelist
 
39
find ${RPM_BUILD_ROOT}/usr/local -type l -print | sed "s@^${RPM_BUILD_ROOT}@@g" >> myodbc-filelist
 
40
 
 
41
%files -f myodbc-filelist
 
42
%defattr(-,root,root)
 
43
 
 
44
%doc INSTALL
 
45
%doc ChangeLog
 
46
%doc odbc.ini
 
47
%doc README
 
48
%doc RELEASE-NOTES