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