]> git.pld-linux.org Git - packages/glibmm.git/blob - glibmm.spec
- 2.11.2
[packages/glibmm.git] / glibmm.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        A C++ interface for glib library
6 Summary(pl):    Interfejs C++ dla biblioteki glib
7 Name:           glibmm
8 Version:        2.11.2
9 Release:        1
10 License:        LGPL
11 Group:          Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.11/%{name}-%{version}.tar.bz2
13 # Source0-md5:  bad2e7c6e19e4cc8ee7666951189ed25
14 URL:            http://gtkmm.sourceforge.net/
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  glib2-devel >= 1:2.12.0
18 BuildRequires:  libsigc++-devel >= 1:2.0.17
19 BuildRequires:  libstdc++-devel
20 BuildRequires:  libtool >= 2:1.4d
21 BuildRequires:  perl-XML-Parser
22 BuildRequires:  pkgconfig
23 Requires:       glib2 >= 1:2.12.0
24 Requires:       libsigc++ >= 1:2.0.17
25 Obsoletes:      gtkmm-glib
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 A C++ interface for glib library.
30
31 %description -l pl
32 Interfejs C++ dla biblioteki glib.
33
34 %package devel
35 Summary:        Header files for glibmm library
36 Summary(pl):    Pliki nag³ówkowe biblioteki glibmm
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       glib2-devel >= 1:2.12.0
40 Requires:       libsigc++-devel >= 1:2.0.17
41 Requires:       libstdc++-devel
42 Obsoletes:      gtkmm-glib-devel
43
44 %description devel
45 Header files for glibmm library.
46
47 %description devel -l pl
48 Pliki nag³ówkowe biblioteki glibmm.
49
50 %package static
51 Summary:        Static glibmm library
52 Summary(pl):    Statyczna biblioteka glibmm
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55 Obsoletes:      gtkmm-glib-static
56
57 %description static
58 Static glibmm library.
59
60 %description static -l pl
61 Statyczna biblioteka glibmm.
62
63 %package doc
64 Summary:        Reference documentation and examples for glibmm
65 Summary(pl):    Szczegó³owa dokumentacja i przyk³ady dla glibmm
66 Group:          Documentation
67
68 %description doc
69 Reference documentation and examples for glibmm.
70
71 %description doc -l pl
72 Szczegó³owa dokumentacja i przyk³ady dla glibmm.
73
74 %prep
75 %setup -q
76
77 %build
78 %{__libtoolize}
79 %{__aclocal} -I scripts
80 %{__autoconf}
81 %{__automake}
82 LDFLAGS="%{rpmldflags} -Wl,--as-needed"
83 %configure \
84         --enable-fulldocs \
85         %{?with_static_libs:--enable-static}
86
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT \
94         gtkmm_docdir=%{_gtkdocdir}/%{name}-2.4 \
95         glibmm_docdir=%{_examplesdir}/%{name}-%{version}
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post   -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
102
103 %files
104 %defattr(644,root,root,755)
105 %doc AUTHORS ChangeLog CHANGES NEWS README
106 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/lib*.so
111 %{_libdir}/lib*.la
112 %dir %{_libdir}/%{name}-2.4
113 %{_libdir}/%{name}-2.4/include
114 %dir %{_libdir}/%{name}-2.4/proc
115 %{_libdir}/%{name}-2.4/proc/m4
116 %{_libdir}/%{name}-2.4/proc/pm
117 %attr(755,root,root) %{_libdir}/%{name}-2.4/proc/gmmproc
118 %attr(755,root,root) %{_libdir}/%{name}-2.4/proc/*.pl
119 %{_includedir}/%{name}-2.4
120 %{_pkgconfigdir}/*.pc
121 %{_aclocaldir}/*.m4
122
123 %if %{with static_libs}
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/lib*.a
127 %endif
128
129 %files doc
130 %defattr(644,root,root,755)
131 %{_gtkdocdir}/%{name}-2.4
132 %{_examplesdir}/%{name}-%{version}
This page took 0.033743 seconds and 4 git commands to generate.