Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
This commit is contained in:
parent
9eee6d2954
commit
6d8f355237
14
sqlite.spec
14
sqlite.spec
@ -12,7 +12,7 @@
|
|||||||
Summary: Library that implements an embeddable SQL database engine
|
Summary: Library that implements an embeddable SQL database engine
|
||||||
Name: sqlite
|
Name: sqlite
|
||||||
Version: %{rpmver}
|
Version: %{rpmver}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
URL: http://www.sqlite.org/
|
URL: http://www.sqlite.org/
|
||||||
|
|
||||||
@ -162,21 +162,21 @@ export CFLAGS="$RPM_OPT_FLAGS $RPM_LD_FLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
|||||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
%make_build %{?_smp_mflags}
|
||||||
|
|
||||||
# Build sqlite3_analyzer
|
# Build sqlite3_analyzer
|
||||||
# depends on tcl
|
# depends on tcl
|
||||||
%if %{with tcl}
|
%if %{with tcl}
|
||||||
make %{?_smp_mflags} sqlite3_analyzer
|
%make_build %{?_smp_mflags} sqlite3_analyzer
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Build sqldiff
|
# Build sqldiff
|
||||||
%if %{with tcl}
|
%if %{with tcl}
|
||||||
make %{?_smp_mflags} sqldiff
|
%make_build %{?_smp_mflags} sqldiff
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
%make_install
|
||||||
|
|
||||||
install -D -m0644 sqlite3.1 $RPM_BUILD_ROOT/%{_mandir}/man1/sqlite3.1
|
install -D -m0644 sqlite3.1 $RPM_BUILD_ROOT/%{_mandir}/man1/sqlite3.1
|
||||||
install -D -m0755 lemon $RPM_BUILD_ROOT/%{_bindir}/lemon
|
install -D -m0755 lemon $RPM_BUILD_ROOT/%{_bindir}/lemon
|
||||||
@ -257,6 +257,10 @@ make test
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 3.32.3-2
|
||||||
|
- Use make macros
|
||||||
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||||
|
|
||||||
* Fri Jun 19 2020 Ondrej Dubaj <odubaj@redhat.com> - 3.32.3-1
|
* Fri Jun 19 2020 Ondrej Dubaj <odubaj@redhat.com> - 3.32.3-1
|
||||||
- Updated to version 3.32.3 (https://sqlite.org/releaselog/3_32_3.html)
|
- Updated to version 3.32.3 (https://sqlite.org/releaselog/3_32_3.html)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user