]> git.pld-linux.org Git - packages/crossmingw32-pangomm.git/blame - crossmingw32-pangomm.spec
- updated to 2.28.0
[packages/crossmingw32-pangomm.git] / crossmingw32-pangomm.spec
CommitLineData
d12a0496
JB
1Summary: A C++ interface for pango library - cross MinGW32 version
2Summary(pl.UTF-8): Interfejs C++ dla biblioteki pango - wersja skrośna MinGW32
7ef93766 3Name: crossmingw32-pangomm
b684277f 4Version: 2.28.0
7ef93766
JB
5Release: 1
6License: LGPL v2+
7Group: Development/Libraries
b684277f
JB
8Source0: http://ftp.gnome.org/pub/GNOME/sources/pangomm/2.28/pangomm-%{version}.tar.bz2
9# Source0-md5: 524c3c7da1c0b728970592880af36def
7ef93766
JB
10URL: http://www.gtkmm.org/
11BuildRequires: autoconf >= 2.59
b684277f 12BuildRequires: automake >= 1:1.11
7ef93766
JB
13BuildRequires: crossmingw32-cairomm >= 1.6.3
14BuildRequires: crossmingw32-gcc-c++
d12a0496 15BuildRequires: crossmingw32-glibmm >= 2.22.0
b5bb7627 16BuildRequires: crossmingw32-pango >= 1.24.0
7ef93766 17BuildRequires: libtool >= 2:1.5
b684277f 18BuildRequires: mm-common >= 0.9.4
7ef93766 19BuildRequires: pkgconfig >= 1:0.15
b684277f 20BuildRequires: rpmbuild(macros) >= 1.446
7ef93766
JB
21Requires: crossmingw32-cairomm >= 1.6.3
22Requires: crossmingw32-glibmm >= 2.16.0
b5bb7627 23Requires: crossmingw32-pango >= 1.24.0
7ef93766
JB
24Provides: crossmingw32-gtkmm-pango
25Obsoletes: crossmingw32-gtkmm-pango
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%define no_install_post_strip 1
29
30%define target i386-mingw32
31%define target_platform i386-pc-mingw32
32
33%define _sysprefix /usr
34%define _prefix %{_sysprefix}/%{target}
35%define _libdir %{_prefix}/lib
36%define _pkgconfigdir %{_prefix}/lib/pkgconfig
37%define _dlldir /usr/share/wine/windows/system
38%define __cc %{target}-gcc
39%define __cxx %{target}-g++
40
41%ifnarch %{ix86}
42# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
43%define optflags -O2
44%endif
45# -z options are invalid for mingw linker
46%define filterout_ld -Wl,-z,.*
47
48%description
d12a0496 49A C++ interface for pango library - cross MinGW32 version.
7ef93766
JB
50
51%description -l pl.UTF-8
d12a0496 52Interfejs C++ dla biblioteki pango - wersja skrośna MinGW32.
7ef93766
JB
53
54%package static
d12a0496
JB
55Summary: Static pangomm library (cross MinGW32 version)
56Summary(pl.UTF-8): Statyczna biblioteka pangomm (wersja skrośna MinGW32)
7ef93766
JB
57Group: Development/Libraries
58Requires: %{name} = %{version}-%{release}
59Provides: crossmingw32-gtkmm-pango-static
60Obsoletes: crossmingw32-gtkmm-pango-static
61
62%description static
d12a0496 63Static pangomm library (cross MinGW32 version).
7ef93766
JB
64
65%description static -l pl.UTF-8
d12a0496 66Statyczna biblioteka pangomm (wersja skrośna MinGW32).
7ef93766
JB
67
68%package dll
69Summary: DLL pangomm library for Windows
70Summary(pl.UTF-8): Biblioteka DLL pangomm dla Windows
71Group: Applications/Emulators
72Requires: crossmingw32-cairomm-dll >= 1.6.3
73Requires: crossmingw32-glibmm-dll >= 2.16.0
b5bb7627 74Requires: crossmingw32-pango-dll >= 1.24.0
7ef93766
JB
75Requires: wine
76Provides: crossmingw32-gtkmm-pango-dll
77Obsoletes: crossmingw32-gtkmm-pango-dll
78
79%description dll
80DLL pangomm library for Windows.
81
82%description dll -l pl.UTF-8
83Biblioteka DLL pangomm dla Windows.
84
85%prep
86%setup -q -n pangomm-%{version}
87
88%build
b684277f 89export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig:%{_npkgconfigdir}
7ef93766 90%{__libtoolize}
aa1fb165 91%{__aclocal} -I build
7ef93766
JB
92%{__autoconf}
93%{__autoheader}
94%{__automake}
95%configure \
96 --target=%{target} \
97 --host=%{target} \
aa1fb165 98 --disable-documentation \
7ef93766
JB
99 --enable-static
100
101%{__make}
102
103%install
104rm -rf $RPM_BUILD_ROOT
105
106%{__make} install \
107 DESTDIR=$RPM_BUILD_ROOT
108
109install -d $RPM_BUILD_ROOT%{_dlldir}
110mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
111
112%if 0%{!?debug:1}
113%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
114%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
115%endif
116
117%clean
118rm -rf $RPM_BUILD_ROOT
119
120%files
121%defattr(644,root,root,755)
122%doc AUTHORS ChangeLog NEWS README
123%{_libdir}/libpangomm-1.4.dll.a
124%{_libdir}/libpangomm-1.4.la
125%{_libdir}/pangomm-1.4
126%{_includedir}/pangomm-1.4
127%{_pkgconfigdir}/pangomm-1.4.pc
128
129%files static
130%defattr(644,root,root,755)
131%{_libdir}/libpangomm-1.4.a
132
133%files dll
134%defattr(644,root,root,755)
135%{_dlldir}/libpangomm-1.4-*.dll
This page took 0.121964 seconds and 4 git commands to generate.