- merged 2.42.0 from PLD
[packages/pangomm.git] / pangomm.spec
1 %define         apiver  1.4
2
3 Summary:        A C++ interface for pango library
4 Summary(pl.UTF-8):      Interfejs C++ dla biblioteki pango
5 Name:           pangomm
6 Version:        2.42.0
7 Release:        1
8 License:        LGPL v2+
9 Group:          X11/Libraries
10 Source0:        http://ftp.gnome.org/pub/GNOME/sources/pangomm/2.42/%{name}-%{version}.tar.xz
11 # Source0-md5:  6cffedf2225c4e72645a7d757fb5b832
12 URL:            http://www.gtkmm.org/
13 BuildRequires:  autoconf >= 2.59
14 BuildRequires:  automake >= 1:1.11
15 BuildRequires:  cairomm-devel >= 1.12.0
16 BuildRequires:  glibmm-devel >= 2.48.0
17 BuildRequires:  libstdc++-devel >= 6:4.7
18 BuildRequires:  libtool >= 2:2.0
19 BuildRequires:  mm-common >= 0.9.10
20 BuildRequires:  pango-devel >= 1:1.41.0
21 BuildRequires:  perl-base >= 1:5.6.0
22 BuildRequires:  pkgconfig
23 BuildRequires:  tar >= 1:1.22
24 BuildRequires:  xz
25 Requires:       cairomm >= 1.12.0
26 Requires:       glibmm >= 2.48.0
27 Requires:       pango >= 1:1.41.0
28 Provides:       gtkmm-pango
29 Obsoletes:      gtkmm-pango
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 A C++ interface for pango library.
34
35 %description -l pl.UTF-8
36 Interfejs C++ dla biblioteki pango.
37
38 %package devel
39 Summary:        Header files for pangomm library
40 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki pangomm
41 Group:          X11/Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43 Requires:       cairomm-devel >= 1.12.0
44 Requires:       glibmm-devel >= 2.48.0
45 Requires:       libstdc++-devel >= 6:4.7
46 Requires:       pango-devel >= 1:1.41.0
47 Provides:       gtkmm-pango-devel
48 Obsoletes:      gtkmm-pango-devel
49
50 %description devel
51 Header files for pangomm library.
52
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe biblioteki pangomm.
55
56 %package static
57 Summary:        Static pangomm library
58 Summary(pl.UTF-8):      Statyczna biblioteka pangomm
59 Group:          X11/Development/Libraries
60 Requires:       %{name}-devel = %{version}-%{release}
61 Provides:       gtkmm-pango-static
62 Obsoletes:      gtkmm-pango-static
63
64 %description static
65 Static pangomm library.
66
67 %description static -l pl.UTF-8
68 Statyczna biblioteka pangomm.
69
70 %package apidocs
71 Summary:        pangomm library API documentation
72 Summary(pl.UTF-8):      Dokumentacja API biblioteki pangomm
73 Group:          Documentation
74
75 %description apidocs
76 pangomm library API documentation.
77
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API biblioteki pangomm.
80
81 %prep
82 %setup -q
83
84 %build
85 %{__libtoolize}
86 %{__aclocal} -I build
87 %{__autoconf}
88 %{__autoheader}
89 %{__automake}
90 %configure \
91         --disable-silent-rules \
92         --enable-static
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post   -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
107
108 %files
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog NEWS README
111 %attr(755,root,root) %{_libdir}/libpangomm-%{apiver}.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libpangomm-%{apiver}.so.1
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libpangomm-%{apiver}.so
117 %{_includedir}/pangomm-%{apiver}
118 %{_libdir}/pangomm-%{apiver}
119 %{_pkgconfigdir}/pangomm-%{apiver}.pc
120
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/libpangomm-%{apiver}.a
124
125 %files apidocs
126 %defattr(644,root,root,755)
127 %{_docdir}/pangomm-%{apiver}