Punt newfangled rpm macros.
This commit is contained in:
parent
2abe2302a9
commit
4a178f7306
10
sqlite.spec
10
sqlite.spec
@ -1,5 +1,5 @@
|
||||
# --with-tcl enables sqlite-tcl subpackage, and also makes %%check possible.
|
||||
%bcond_with tcl
|
||||
%define tcl 0%{?_with_tcl:1}
|
||||
|
||||
Summary: Library that implements an embeddable SQL database engine
|
||||
Name: sqlite
|
||||
@ -12,7 +12,7 @@ Source: http://www.sqlite.org/sqlite-%{version}.tar.gz
|
||||
Obsoletes: sqlite3 sqlite3-devel
|
||||
BuildRequires: ncurses-devel readline-devel
|
||||
BuildRequires: /usr/bin/tclsh
|
||||
%if %{with tcl}
|
||||
%if %{tcl}
|
||||
BuildRequires: tcl-devel
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-root
|
||||
@ -36,7 +36,7 @@ This package contains the header files, static libraries and development
|
||||
documentation for %{name}. If you like to develop programs using %{name},
|
||||
you will need to install %{name}-devel.
|
||||
|
||||
%if %{with tcl}
|
||||
%if %{tcl}
|
||||
%package tcl
|
||||
Summary: Tcl module for the sqlite3 embeddable SQL database engine.
|
||||
Group: Development/Languages
|
||||
@ -61,7 +61,7 @@ make DESTDIR=${RPM_BUILD_ROOT} install
|
||||
|
||||
%{__install} -D -m0644 sqlite3.1 %{buildroot}%{_mandir}/man1/sqlite3.1
|
||||
|
||||
%if %{with tcl}
|
||||
%if %{tcl}
|
||||
%check
|
||||
make test
|
||||
%endif
|
||||
@ -89,7 +89,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%if %{with tcl}
|
||||
%if %{tcl}
|
||||
%files tcl
|
||||
%defattr(-, root, root)
|
||||
%{_datadir}/tcl*/sqlite3
|
||||
|
Loading…
Reference in New Issue
Block a user