1 Summary: C++ wrapper for cairo - cross Mingw32 version
2 Summary(pl.UTF-8): Interfejs C++ do cairo - wersja skrośna dla Mingw32
3 %define realname cairomm
4 Name: crossmingw32-%{realname}
8 Group: Development/Libraries
9 Source0: http://cairographics.org/releases/%{realname}-%{version}.tar.gz
10 # Source0-md5: eac5d159e4cba98e32ea174483dee24e
11 URL: http://cairographics.org/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: crossmingw32-cairo >= 1.6.0
15 BuildRequires: crossmingw32-gcc-c++
16 BuildRequires: libtool >= 2:1.5
17 BuildRequires: pkgconfig >= 1:0.15
18 Requires: crossmingw32-cairo >= 1.6.0
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define no_install_post_strip 1
23 %define target i386-mingw32
24 %define target_platform i386-pc-mingw32
26 %define _sysprefix /usr
27 %define _prefix %{_sysprefix}/%{target}
28 %define _libdir %{_prefix}/lib
29 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
30 %define _dlldir /usr/share/wine/windows/system
31 %define __cc %{target}-gcc
32 %define __cxx %{target}-g++
35 C++ wrapper for cairo (cross mingw32 version).
37 %description -l pl.UTF-8
38 Interfejs C++ do cairo (wersja skrośna mingw32).
41 Summary: Static cairomm library (cross mingw32 version)
42 Summary(pl.UTF-8): Statyczna biblioteka cairomm (wersja skrośna mingw32)
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Static cairomm library (cross mingw32 version).
49 %description static -l pl.UTF-8
50 Statyczna biblioteka cairomm (wersja skrośna mingw32).
53 Summary: DLL cairomm library for Windows
54 Summary(pl.UTF-8): Biblioteka DLL cairomm dla Windows
55 Group: Applications/Emulators
56 Requires: crossmingw32-cairo-dll >= 1.6.0
59 DLL cairomm library for Windows.
61 %description dll -l pl.UTF-8
62 Biblioteka DLL cairomm dla Windows.
65 %setup -q -n %{realname}-%{version}
68 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
81 rm -rf $RPM_BUILD_ROOT
84 DESTDIR=$RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT%{_dlldir}
87 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
90 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
91 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
94 rm -rf $RPM_BUILD_ROOT%{_docdir}/libcairomm-1.0
97 rm -rf $RPM_BUILD_ROOT
100 %defattr(644,root,root,755)
101 %doc AUTHORS ChangeLog MAINTAINERS NEWS README
102 %{_libdir}/libcairomm-1.0.dll.a
103 %{_libdir}/libcairomm-1.0.la
104 %dir %{_includedir}/cairomm-1.0
105 %{_includedir}/cairomm-1.0/*
106 %{_pkgconfigdir}/cairomm-1.0.pc
109 %defattr(644,root,root,755)
110 %{_libdir}/libcairomm-1.0.a
113 %defattr(644,root,root,755)
114 %{_dlldir}/libcairomm-1.0-*.dll