]> git.pld-linux.org Git - packages/freetds.git/blob - freetds.spec
- new
[packages/freetds.git] / freetds.spec
1 # Conditional build:
2 # _with_msdblib - use MS-style dblib
3 #
4 # %%define tdsver - protocol version; valid versions:
5 # 4.2 (used by MS SQL Server 6.0)
6 # 4.6
7 # 5.0 (used by Sybase only)
8 # 7.0 (used by MS SQL Server 7.0) [default]
9 # 8.0 [only login works now]
10
11 %{!?tdsver:%define tdsver 7.0}
12
13 Summary:        Free implementation of Sybase's db-lib
14 Summary(pl):    Wolnodostêpna implementacja db-lib firmy Sybase
15 Name:           freetds
16 Version:        0.53
17 Release:        1
18 License:        LGPL
19 Group:          Libraries
20 Source0:        ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/%{name}-%{version}.tgz
21 URL:            http://www.freetds.org/
22 BuildRequires:  autoconf
23 BuildRequires:  glib-devel
24 BuildRequires:  unixODBC-devel
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 FreeTDS is a free (open source) implementation of Sybase's db-lib,
29 ct-lib, and ODBC libraries (which can be used also to work with MS SQL
30 databases). Currently, dblib and ctlib are most mature. Both of these
31 libraries have several programs known to compile and run against them.
32 ODBC is not quite as mature, but may work depending on your needs.
33
34 %description -l pl
35 FreeTDS to wolnodostêpna (z otwartymi ¼ród³ami) implementacja
36 bibliotek db-lib, ct-lib i ODBC firmy Sybase (których mo¿na u¿ywaæ
37 tak¿e do pracy z bazami MS SQL). Aktualnie najlepiej dzia³aj± dblib i
38 ctlib - istnieje trochê programów, o których wiadomo, ¿e kompiluj± siê
39 i dzia³aj± z tymi bibliotekami. ODBC nie jest jeszcze na tyle
40 skoñczony, ale mo¿e dzia³aæ w zale¿no¶ci od potrzeb.
41
42 %package devel
43 Summary:        FreeTDS header files
44 Summary(pl):    Pliki nag³ówkowe FreeTDS
45 Group:          Development/Libraries
46 Requires:       %{name} = %{version}
47
48 %description devel
49 FreeTDS header files.
50
51 %description devel -l pl
52 Pliki nag³ówkowe FreeTDS.
53
54 %package static
55 Summary:        FreeTDS static libraries
56 Summary(pl):    Statyczne biblioteki FreeTDS
57 Group:          Development/Libraries
58 Requires:       %{name}-devel = %{version}
59
60 %description static
61 FreeTDS static libraries.
62
63 %description static -l pl
64 Statyczne biblioteki FreeTDS.
65
66 %prep
67 %setup -q
68
69 %build
70 autoconf
71 %configure \
72         --with-tdsver=%{tdsver} \
73         %{?_with_msdblib:--with-msdblib} \
74         --with-unixodbc
75
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT \
82         ETC=$RPM_BUILD_ROOT%{_sysconfdir}
83
84 gzip -9nf AUTHORS BUGS NEWS README TODO
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post   -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files
93 %defattr(644,root,root,755)
94 %doc *.gz
95 %attr(755,root,root) %{_libdir}/lib*.so.*.*
96 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/freetds.conf
97
98 %files devel
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/lib*.so
101 %attr(755,root,root) %{_libdir}/lib*.la
102 %{_includedir}/*
103
104 %files static
105 %defattr(644,root,root,755)
106 %{_libdir}/lib*.a
This page took 0.043738 seconds and 4 git commands to generate.