Spec cleanup

- Use automatic mingw dep extraction
- Cleaned up the spec file for modern rpmbuild
This commit is contained in:
Kalev Lember 2011-07-16 14:19:42 +03:00
parent ba2fb1beb3
commit f3a65ca14e

View File

@ -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}
Name: mingw32-pixman Name: mingw32-pixman
@ -17,10 +14,9 @@ Group: Development/Libraries
Source0: http://cairographics.org/releases/pixman-%{version}.tar.gz Source0: http://cairographics.org/releases/pixman-%{version}.tar.gz
Source1: make-pixman-snapshot.sh Source1: make-pixman-snapshot.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: mingw32-filesystem >= 52 BuildRequires: mingw32-filesystem >= 68
BuildRequires: mingw32-gcc BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils BuildRequires: mingw32-binutils
BuildRequires: mingw32-dlfcn BuildRequires: mingw32-dlfcn
@ -55,17 +51,10 @@ make %{?_smp_mflags} V=1
%install %install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-)
%doc COPYING %doc COPYING
%{_mingw32_bindir}/libpixman-1-0.dll %{_mingw32_bindir}/libpixman-1-0.dll
%{_mingw32_includedir}/pixman-1 %{_mingw32_includedir}/pixman-1
@ -75,13 +64,14 @@ rm -rf $RPM_BUILD_ROOT
%files static %files static
%defattr(-,root,root,-)
%{_mingw32_libdir}/libpixman-1.a %{_mingw32_libdir}/libpixman-1.a
%changelog %changelog
* Sat Jul 16 2011 Kalev Lember <kalevlember@gmail.com> - 0.22.2-1 * Sat Jul 16 2011 Kalev Lember <kalevlember@gmail.com> - 0.22.2-1
- Update to 0.22.2 - Update to 0.22.2
- Use automatic mingw dep extraction
- Cleaned up the spec file for modern rpmbuild
* Sun May 08 2011 Kalev Lember <kalev@smartlink.ee> - 0.22.0-1 * Sun May 08 2011 Kalev Lember <kalev@smartlink.ee> - 0.22.0-1
- Update to 0.22.0 - Update to 0.22.0