Accepting request 87282 from devel:libraries:c_c++
Resubmit for 87174, %makeinstall (forwarded request 87248 from jengelh) OBS-URL: https://build.opensuse.org/request/show/87282 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/freetds?expand=0&rev=4
This commit is contained in:
commit
19fc018b00
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 9 13:49:44 UTC 2011 - jengelh@medozas.de
|
||||||
|
|
||||||
|
- Add missing "Group" for libfreetds and change %make_install,
|
||||||
|
resolving build failure for SLE11
|
||||||
|
- Remove redundant sections (cf. specfile guidelines)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Oct 1 05:39:08 UTC 2011 - coolo@suse.com
|
Sat Oct 1 05:39:08 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
15
freetds.spec
15
freetds.spec
@ -24,7 +24,7 @@ Release: 1
|
|||||||
%define filever 0.91rc
|
%define filever 0.91rc
|
||||||
License: LGPL
|
License: LGPL
|
||||||
Summary: A free re-implementation of the TDS (Tabular DataStream) protocol
|
Summary: A free re-implementation of the TDS (Tabular DataStream) protocol
|
||||||
Url: http://www.freetds.org/
|
URL: http://www.freetds.org/
|
||||||
Group: Productivity/Databases/Clients
|
Group: Productivity/Databases/Clients
|
||||||
Source: %{name}-%{filever}.tar.bz2
|
Source: %{name}-%{filever}.tar.bz2
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -45,8 +45,8 @@ communications. FreeTDS includes call level interfaces for DB-Lib, CT-Lib,
|
|||||||
and ODBC.
|
and ODBC.
|
||||||
|
|
||||||
%package -n libfreetds
|
%package -n libfreetds
|
||||||
|
|
||||||
Summary: A free re-implementation of the TDS (Tabular DataStream) protocol
|
Summary: A free re-implementation of the TDS (Tabular DataStream) protocol
|
||||||
|
Group: System/Libraries
|
||||||
Provides: %{name} = %{version}
|
Provides: %{name} = %{version}
|
||||||
Obsoletes: %{name} < %{version}
|
Obsoletes: %{name} < %{version}
|
||||||
|
|
||||||
@ -71,7 +71,6 @@ and ODBC.
|
|||||||
This package provides application to allow users to make use of the protocol
|
This package provides application to allow users to make use of the protocol
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
|
|
||||||
Summary: Include files needed for development with FreeTDS
|
Summary: Include files needed for development with FreeTDS
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
@ -81,7 +80,6 @@ The freetds-devel package contains the files necessary for development with
|
|||||||
the FreeTDS libraries.
|
the FreeTDS libraries.
|
||||||
|
|
||||||
%package -n libtdsodbc0
|
%package -n libtdsodbc0
|
||||||
|
|
||||||
Summary: FreeTDS ODBC Driver for unixODBC
|
Summary: FreeTDS ODBC Driver for unixODBC
|
||||||
Group: Productivity/Databases/Clients
|
Group: Productivity/Databases/Clients
|
||||||
Requires: unixODBC >= 2.0.0
|
Requires: unixODBC >= 2.0.0
|
||||||
@ -90,7 +88,6 @@ Requires: unixODBC >= 2.0.0
|
|||||||
The freetds-unixodbc package contains ODBC driver build for unixODBC.
|
The freetds-unixodbc package contains ODBC driver build for unixODBC.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
|
|
||||||
Summary: User documentation for FreeTDS
|
Summary: User documentation for FreeTDS
|
||||||
Group: Productivity/Databases/Clients
|
Group: Productivity/Databases/Clients
|
||||||
|
|
||||||
@ -122,7 +119,7 @@ autoreconf --force --install
|
|||||||
make %{?_smp_flags} RPM_OPT_FLAGS="%{optflags}"
|
make %{?_smp_flags} RPM_OPT_FLAGS="%{optflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%makeinstall
|
||||||
mkdir -p %{buildroot}%{_docdir}/freetds/
|
mkdir -p %{buildroot}%{_docdir}/freetds/
|
||||||
mv %{buildroot}%{_datadir}/doc/freetds-*/* %{buildroot}%{_docdir}/freetds/
|
mv %{buildroot}%{_datadir}/doc/freetds-*/* %{buildroot}%{_docdir}/freetds/
|
||||||
rm -rf %{buildroot}%{_docdir}/freetds-* %{buildroot}/%{_datadir}/doc/freetds-*
|
rm -rf %{buildroot}%{_docdir}/freetds-* %{buildroot}/%{_datadir}/doc/freetds-*
|
||||||
@ -143,16 +140,12 @@ Driver = %{_libdir}/libtdsodbc.so.0
|
|||||||
Setup = %{_libdir}/libtdsodbc.so.0" | odbcinst -i -d -r > /dev/null 2>&1 || true
|
Setup = %{_libdir}/libtdsodbc.so.0" | odbcinst -i -d -r > /dev/null 2>&1 || true
|
||||||
/sbin/ldconfig 2> /dev/null
|
/sbin/ldconfig 2> /dev/null
|
||||||
|
|
||||||
%postun -n libtdsodbc0
|
%postun -n libtdsodbc0 -p /sbin/ldconfig
|
||||||
/sbin/ldconfig 2> /dev/null
|
|
||||||
|
|
||||||
%preun -n libtdsodbc0
|
%preun -n libtdsodbc0
|
||||||
odbcinst -u -d -n 'FreeTDS' > /dev/null 2>&1 || true
|
odbcinst -u -d -n 'FreeTDS' > /dev/null 2>&1 || true
|
||||||
odbcinst -u -d -n 'SQL Server' > /dev/null 2>&1 || true
|
odbcinst -u -d -n 'SQL Server' > /dev/null 2>&1 || true
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files -n libfreetds
|
%files -n libfreetds
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS BUGS COPYING* ChangeLog INSTALL NEWS README TODO
|
%doc AUTHORS BUGS COPYING* ChangeLog INSTALL NEWS README TODO
|
||||||
|
Loading…
Reference in New Issue
Block a user