Spec file clean-up

This commit is contained in:
Honza Horák 2013-07-04 13:08:23 +02:00
parent 60c81d6a00
commit 6665c249a2

View File

@ -1,7 +1,7 @@
Summary: A complete ODBC driver manager for Linux Summary: A complete ODBC driver manager for Linux
Name: unixODBC Name: unixODBC
Version: 2.3.1 Version: 2.3.1
Release: 5%{?dist} Release: 6%{?dist}
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://www.unixODBC.org/ URL: http://www.unixODBC.org/
# Programs are GPL, libraries are LGPL, except News Server library is GPL. # Programs are GPL, libraries are LGPL, except News Server library is GPL.
@ -23,8 +23,6 @@ Conflicts: iodbc
BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex
BuildRequires: readline-devel BuildRequires: readline-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description %description
Install unixODBC if you want to access databases through ODBC. Install unixODBC if you want to access databases through ODBC.
You will also need the mysql-connector-odbc package if you want to access You will also need the mysql-connector-odbc package if you want to access
@ -77,8 +75,6 @@ export CFLAGS CXXFLAGS
make all make all
%install %install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
@ -129,11 +125,7 @@ do
mv -f devel-so-list.x devel-so-list mv -f devel-so-list.x devel-so-list
done done
%clean
rm -rf $RPM_BUILD_ROOT
%files -f base-so-list %files -f base-so-list
%defattr(-,root,root)
%doc README COPYING AUTHORS ChangeLog NEWS doc %doc README COPYING AUTHORS ChangeLog NEWS doc
%doc README.fedora %doc README.fedora
%config(noreplace) %{_sysconfdir}/odbc* %config(noreplace) %{_sysconfdir}/odbc*
@ -144,13 +136,15 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/odbc_config %{_bindir}/odbc_config
%files devel -f devel-so-list %files devel -f devel-so-list
%defattr(-,root,root)
%{_includedir}/* %{_includedir}/*
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%changelog %changelog
* Thu Jul 4 2013 Honza Horak <hhorak@redhat.com> 2.3.1-6
- Spec file clean-up
* Thu Jul 4 2013 Honza Horak <hhorak@redhat.com> 2.3.1-5 * Thu Jul 4 2013 Honza Horak <hhorak@redhat.com> 2.3.1-5
- Fix Coverity patch - Fix Coverity patch
Resolves: #981060 Resolves: #981060