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