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.
|
# --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
|
Summary: Library that implements an embeddable SQL database engine
|
||||||
Name: sqlite
|
Name: sqlite
|
||||||
@ -12,7 +12,7 @@ Source: http://www.sqlite.org/sqlite-%{version}.tar.gz
|
|||||||
Obsoletes: sqlite3 sqlite3-devel
|
Obsoletes: sqlite3 sqlite3-devel
|
||||||
BuildRequires: ncurses-devel readline-devel
|
BuildRequires: ncurses-devel readline-devel
|
||||||
BuildRequires: /usr/bin/tclsh
|
BuildRequires: /usr/bin/tclsh
|
||||||
%if %{with tcl}
|
%if %{tcl}
|
||||||
BuildRequires: tcl-devel
|
BuildRequires: tcl-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-root
|
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},
|
documentation for %{name}. If you like to develop programs using %{name},
|
||||||
you will need to install %{name}-devel.
|
you will need to install %{name}-devel.
|
||||||
|
|
||||||
%if %{with tcl}
|
%if %{tcl}
|
||||||
%package tcl
|
%package tcl
|
||||||
Summary: Tcl module for the sqlite3 embeddable SQL database engine.
|
Summary: Tcl module for the sqlite3 embeddable SQL database engine.
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -61,7 +61,7 @@ make DESTDIR=${RPM_BUILD_ROOT} install
|
|||||||
|
|
||||||
%{__install} -D -m0644 sqlite3.1 %{buildroot}%{_mandir}/man1/sqlite3.1
|
%{__install} -D -m0644 sqlite3.1 %{buildroot}%{_mandir}/man1/sqlite3.1
|
||||||
|
|
||||||
%if %{with tcl}
|
%if %{tcl}
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
%endif
|
%endif
|
||||||
@ -89,7 +89,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
%if %{with tcl}
|
%if %{tcl}
|
||||||
%files tcl
|
%files tcl
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_datadir}/tcl*/sqlite3
|
%{_datadir}/tcl*/sqlite3
|
||||||
|
Loading…
Reference in New Issue
Block a user