]> git.pld-linux.org Git - packages/crossmingw32-pangomm.git/blame - crossmingw32-pangomm.spec
- drop .la file; release 3
[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
96a2f5e4 4Version: 2.42.0
12affd2e 5Release: 3
7ef93766
JB
6License: LGPL v2+
7Group: Development/Libraries
96a2f5e4
JB
8Source0: http://ftp.gnome.org/pub/GNOME/sources/pangomm/2.42/pangomm-%{version}.tar.xz
9# Source0-md5: 6cffedf2225c4e72645a7d757fb5b832
12affd2e 10URL: https://www.gtkmm.org/
7ef93766 11BuildRequires: autoconf >= 2.59
b684277f 12BuildRequires: automake >= 1:1.11
40f420a2 13BuildRequires: crossmingw32-cairomm >= 1.12.0
96a2f5e4 14BuildRequires: crossmingw32-gcc-c++ >= 1:4.7
5eec1e2f 15BuildRequires: crossmingw32-glibmm >= 2.48.0
96a2f5e4 16BuildRequires: crossmingw32-pango >= 1.41.0
accc7186 17BuildRequires: libtool >= 2:2.0
96a2f5e4 18BuildRequires: mm-common >= 0.9.10
7ef93766 19BuildRequires: pkgconfig >= 1:0.15
b684277f 20BuildRequires: rpmbuild(macros) >= 1.446
5e1672ab
JB
21BuildRequires: tar >= 1:1.22
22BuildRequires: xz
40f420a2 23Requires: crossmingw32-cairomm >= 1.12.0
96a2f5e4 24Requires: crossmingw32-gcc-c++ >= 1:4.7
5eec1e2f 25Requires: crossmingw32-glibmm >= 2.48.0
96a2f5e4 26Requires: crossmingw32-pango >= 1.41.0
7ef93766
JB
27Provides: crossmingw32-gtkmm-pango
28Obsoletes: crossmingw32-gtkmm-pango
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%define no_install_post_strip 1
32
33%define target i386-mingw32
34%define target_platform i386-pc-mingw32
35
36%define _sysprefix /usr
37%define _prefix %{_sysprefix}/%{target}
38%define _libdir %{_prefix}/lib
39%define _pkgconfigdir %{_prefix}/lib/pkgconfig
40%define _dlldir /usr/share/wine/windows/system
41%define __cc %{target}-gcc
42%define __cxx %{target}-g++
42df9968 43%define __pkgconfig_provides %{nil}
0902db15 44%define __pkgconfig_requires %{nil}
7ef93766 45
4fe9972e 46%define _ssp_cflags %{nil}
7ef93766
JB
47%ifnarch %{ix86}
48# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
49%define optflags -O2
50%endif
ab466ace 51# -z options are invalid for mingw linker, most of -f options are Linux-specific
7ef93766 52%define filterout_ld -Wl,-z,.*
8084f475 53%define filterout_c -f[-a-z0-9=]*
7ef93766
JB
54
55%description
d12a0496 56A C++ interface for pango library - cross MinGW32 version.
7ef93766
JB
57
58%description -l pl.UTF-8
d12a0496 59Interfejs C++ dla biblioteki pango - wersja skrośna MinGW32.
7ef93766
JB
60
61%package static
d12a0496
JB
62Summary: Static pangomm library (cross MinGW32 version)
63Summary(pl.UTF-8): Statyczna biblioteka pangomm (wersja skrośna MinGW32)
7ef93766
JB
64Group: Development/Libraries
65Requires: %{name} = %{version}-%{release}
66Provides: crossmingw32-gtkmm-pango-static
67Obsoletes: crossmingw32-gtkmm-pango-static
68
69%description static
d12a0496 70Static pangomm library (cross MinGW32 version).
7ef93766
JB
71
72%description static -l pl.UTF-8
d12a0496 73Statyczna biblioteka pangomm (wersja skrośna MinGW32).
7ef93766
JB
74
75%package dll
76Summary: DLL pangomm library for Windows
77Summary(pl.UTF-8): Biblioteka DLL pangomm dla Windows
78Group: Applications/Emulators
40f420a2 79Requires: crossmingw32-cairomm-dll >= 1.12.0
5eec1e2f 80Requires: crossmingw32-glibmm-dll >= 2.48.0
96a2f5e4 81Requires: crossmingw32-pango-dll >= 1.41.0
7ef93766
JB
82Requires: wine
83Provides: crossmingw32-gtkmm-pango-dll
84Obsoletes: crossmingw32-gtkmm-pango-dll
85
86%description dll
87DLL pangomm library for Windows.
88
89%description dll -l pl.UTF-8
90Biblioteka DLL pangomm dla Windows.
91
92%prep
93%setup -q -n pangomm-%{version}
94
95%build
b684277f 96export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig:%{_npkgconfigdir}
7ef93766 97%{__libtoolize}
aa1fb165 98%{__aclocal} -I build
7ef93766
JB
99%{__autoconf}
100%{__autoheader}
101%{__automake}
8084f475
JB
102# std-threads required by glibmm requires at least WinXP API
103CPPFLAGS="%{rpmcppflags} -DWINVER=0x0501"
7ef93766
JB
104%configure \
105 --target=%{target} \
106 --host=%{target} \
aa1fb165 107 --disable-documentation \
5a97095e 108 --disable-silent-rules \
7ef93766
JB
109 --enable-static
110
111%{__make}
112
113%install
114rm -rf $RPM_BUILD_ROOT
115
116%{__make} install \
117 DESTDIR=$RPM_BUILD_ROOT
118
119install -d $RPM_BUILD_ROOT%{_dlldir}
40f420a2 120%{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
7ef93766 121
12affd2e
JB
122%{__rm} $RPM_BUILD_ROOT%{_libdir}/libpangomm-*.la
123
7ef93766
JB
124%if 0%{!?debug:1}
125%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
126%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
127%endif
128
129%clean
130rm -rf $RPM_BUILD_ROOT
131
132%files
133%defattr(644,root,root,755)
134%doc AUTHORS ChangeLog NEWS README
135%{_libdir}/libpangomm-1.4.dll.a
7ef93766
JB
136%{_libdir}/pangomm-1.4
137%{_includedir}/pangomm-1.4
138%{_pkgconfigdir}/pangomm-1.4.pc
139
140%files static
141%defattr(644,root,root,755)
142%{_libdir}/libpangomm-1.4.a
143
144%files dll
145%defattr(644,root,root,755)
fd50b6af 146%{_dlldir}/libpangomm-1.4-1.dll
This page took 0.137317 seconds and 4 git commands to generate.