]> git.pld-linux.org Git - packages/crossmingw32-cairomm.git/blob - crossmingw32-cairomm.spec
6a03d1d4c3d01535aeadf4f27e211881faa80a47
[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.6.0
6 Release:        1
7 License:        LGPL v2+
8 Group:          Development/Libraries
9 Source0:        http://cairographics.org/releases/%{realname}-%{version}.tar.gz
10 # Source0-md5:  549b0c9eaa25d61c4dd92d2de1cb4a46
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)
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         _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++
33
34 %description
35 C++ wrapper for cairo (cross mingw32 version).
36
37 %description -l pl.UTF-8
38 Interfejs C++ do cairo (wersja skrośna mingw32).
39
40 %package static
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}
45
46 %description static
47 Static cairomm library (cross mingw32 version).
48
49 %description static -l pl.UTF-8
50 Statyczna biblioteka cairomm (wersja skrośna mingw32).
51
52 %package dll
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
57
58 %description dll
59 DLL cairomm library for Windows.
60
61 %description dll -l pl.UTF-8
62 Biblioteka DLL cairomm dla Windows.
63
64 %prep
65 %setup -q -n %{realname}-%{version}
66
67 %build
68 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
69 %{__libtoolize}
70 %{__aclocal} -I m4
71 %{__automake}
72 %{__autoconf}
73 %configure \
74         --target=%{target} \
75         --host=%{target} \
76         --disable-docs
77
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 install -d $RPM_BUILD_ROOT%{_dlldir}
87 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
88
89 %if 0%{!?debug:1}
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
92 %endif
93
94 rm -rf $RPM_BUILD_ROOT%{_docdir}/libcairomm-1.0
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %files
100 %defattr(644,root,root,755)
101 %doc AUTHORS ChangeLog
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
107
108 %files static
109 %defattr(644,root,root,755)
110 %{_libdir}/libcairomm-1.0.a
111
112 %files dll
113 %defattr(644,root,root,755)
114 %{_dlldir}/libcairomm-1.0-*.dll
This page took 0.114121 seconds and 2 git commands to generate.