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