]> git.pld-linux.org Git - packages/crossmingw32-cairomm.git/blob - crossmingw32-cairomm.spec
c6a9e902329bd2e60dadbafdab44def5d361708a
[packages/crossmingw32-cairomm.git] / crossmingw32-cairomm.spec
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}
5 Version:        1.4.6
6 Release:        1
7 License:        LGPL v2+
8 Group:          Development/Libraries
9 Source0:        http://cairographics.org/releases/%{realname}-%{version}.tar.gz
10 # Source0-md5:  8f5a63f01fb4c52a731a27dd0a521413
11 URL:            http://cairographics.org/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  crossmingw32-cairo >= 1.4.0
15 BuildRequires:  crossmingw32-gcc-c++
16 BuildRequires:  libtool >= 2:1.5
17 BuildRequires:  pkgconfig >= 1:0.15
18 Requires:       crossmingw32-cairo >= 1.4.0
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         no_install_post_strip   1
22
23 %define         target                  i386-mingw32
24 %define         target_platform         i386-pc-mingw32
25
26 %define         _sysprefix              /usr
27 %define         _prefix                 %{_sysprefix}/%{target}
28 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
29 %define         _dlldir                 /usr/share/wine/windows/system
30 %define         __cc                    %{target}-gcc
31 %define         __cxx                   %{target}-g++
32
33 %description
34 C++ wrapper for cairo (cross mingw32 version).
35
36 %description -l pl.UTF-8
37 Interfejs C++ do cairo (wersja skrośna mingw32).
38
39 %package static
40 Summary:        Static cairomm library (cross mingw32 version)
41 Summary(pl.UTF-8):      Statyczna biblioteka cairomm (wersja skrośna mingw32)
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44
45 %description static
46 Static cairomm library (cross mingw32 version).
47
48 %description static -l pl.UTF-8
49 Statyczna biblioteka cairomm (wersja skrośna mingw32).
50
51 %package dll
52 Summary:        DLL cairomm library for Windows
53 Summary(pl.UTF-8):      Biblioteka DLL cairomm dla Windows
54 Group:          Applications/Emulators
55 Requires:       crossmingw32-cairo-dll >= 1.4.0
56
57 %description dll
58 DLL cairomm library for Windows.
59
60 %description dll -l pl.UTF-8
61 Biblioteka DLL cairomm dla Windows.
62
63 %prep
64 %setup -q -n %{realname}-%{version}
65
66 %build
67 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
68 %{__libtoolize}
69 %{__aclocal} -I m4
70 %{__automake}
71 %{__autoconf}
72 %configure \
73         --target=%{target} \
74         --host=%{target} \
75         --disable-docs
76
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 install -d $RPM_BUILD_ROOT%{_dlldir}
86 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
87
88 %if 0%{!?debug:1}
89 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
90 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
91 %endif
92
93 rm -rf $RPM_BUILD_ROOT%{_docdir}/libcairomm-1.0
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %files
99 %defattr(644,root,root,755)
100 %doc AUTHORS ChangeLog
101 %{_libdir}/libcairomm-1.0.dll.a
102 %{_libdir}/libcairomm-1.0.la
103 %dir %{_includedir}/cairomm-1.0
104 %{_includedir}/cairomm-1.0/*
105 %{_pkgconfigdir}/cairomm-1.0.pc
106
107 %files static
108 %defattr(644,root,root,755)
109 %{_libdir}/libcairomm-1.0.a
110
111 %files dll
112 %defattr(644,root,root,755)
113 %{_dlldir}/libcairomm-1.0-*.dll
This page took 0.080254 seconds and 3 git commands to generate.