Modernize the spec file
This commit is contained in:
parent
8256bba041
commit
8516e08e91
@ -1,8 +1,5 @@
|
|||||||
%global __strip %{_mingw32_strip}
|
%global __strip %{_mingw32_strip}
|
||||||
%global __objdump %{_mingw32_objdump}
|
%global __objdump %{_mingw32_objdump}
|
||||||
%global _use_internal_dependency_generator 0
|
|
||||||
%global __find_requires %{_mingw32_findrequires}
|
|
||||||
%global __find_provides %{_mingw32_findprovides}
|
|
||||||
%define __debug_install_post %{_mingw32_debug_install_post}
|
%define __debug_install_post %{_mingw32_debug_install_post}
|
||||||
|
|
||||||
%global name1 sqlite
|
%global name1 sqlite
|
||||||
@ -23,7 +20,6 @@ License: Public Domain
|
|||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
URL: http://www.sqlite.org/
|
URL: http://www.sqlite.org/
|
||||||
Source0: http://www.sqlite.org/%{name1}-src-%{realver}.zip
|
Source0: http://www.sqlite.org/%{name1}-src-%{realver}.zip
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -36,7 +32,7 @@ Patch2: sqlite-3.7.7.1-stupid-openfiles-test.patch
|
|||||||
# Patches for MinGW port.
|
# Patches for MinGW port.
|
||||||
Patch1000: mingw32-sqlite-3.7.9-no-undefined.patch
|
Patch1000: mingw32-sqlite-3.7.9-no-undefined.patch
|
||||||
|
|
||||||
BuildRequires: mingw32-filesystem >= 52
|
BuildRequires: mingw32-filesystem
|
||||||
BuildRequires: mingw32-gcc
|
BuildRequires: mingw32-gcc
|
||||||
BuildRequires: mingw32-binutils
|
BuildRequires: mingw32-binutils
|
||||||
|
|
||||||
@ -101,7 +97,7 @@ are named to permit each to be installed on a single host
|
|||||||
This package contains static cross-compiled library
|
This package contains static cross-compiled library
|
||||||
|
|
||||||
|
|
||||||
%{_mingw32_debug_package}
|
%{?_mingw32_debug_package}
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -142,7 +138,6 @@ make
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
|
||||||
chmod 0644 $RPM_BUILD_ROOT%{_mingw32_libdir}/libsqlite3.dll.a
|
chmod 0644 $RPM_BUILD_ROOT%{_mingw32_libdir}/libsqlite3.dll.a
|
||||||
@ -154,12 +149,8 @@ install -d -m755 $RPM_BUILD_ROOT%{_mingw32_datadir}/tcl%{tclversion}/sqlite3/
|
|||||||
mv $RPM_BUILD_ROOT%{_datadir}/tcl%{tclversion}/sqlite3/pkgIndex.tcl $RPM_BUILD_ROOT%{_mingw32_datadir}/tcl%{tclversion}/sqlite3/
|
mv $RPM_BUILD_ROOT%{_datadir}/tcl%{tclversion}/sqlite3/pkgIndex.tcl $RPM_BUILD_ROOT%{_mingw32_datadir}/tcl%{tclversion}/sqlite3/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
%files -n mingw32-%{name1}
|
%files -n mingw32-%{name1}
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc README VERSION
|
%doc README VERSION
|
||||||
%{_mingw32_bindir}/sqlite3.exe
|
%{_mingw32_bindir}/sqlite3.exe
|
||||||
%{_mingw32_bindir}/libsqlite3-0.dll
|
%{_mingw32_bindir}/libsqlite3-0.dll
|
||||||
@ -175,12 +166,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n mingw32-%{name1}-static
|
%files -n mingw32-%{name1}-static
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_mingw32_libdir}/libsqlite3.a
|
%{_mingw32_libdir}/libsqlite3.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Mar 06 2012 Kalev Lember <kalevlember@gmail.com> - 3.7.9-3
|
* Tue Mar 06 2012 Kalev Lember <kalevlember@gmail.com> - 3.7.9-3
|
||||||
- Renamed the source package to mingw-sqlite (#800450)
|
- Renamed the source package to mingw-sqlite (#800450)
|
||||||
|
- Modernize the spec file
|
||||||
|
|
||||||
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.7.9-2
|
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.7.9-2
|
||||||
- Rebuild against the mingw-w64 toolchain
|
- Rebuild against the mingw-w64 toolchain
|
||||||
|
Loading…
Reference in New Issue
Block a user