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