]> git.pld-linux.org Git - packages/glibmm.git/blob - glibmm.spec
- up to 2.12.4
[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.12.4
9 Release:        1
10 License:        LGPL
11 Group:          Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.12/%{name}-%{version}.tar.bz2
13 # Source0-md5:  ebe48ad63555c0296469fd439a4d07ba
14 URL:            http://gtkmm.sourceforge.net/
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  glib2-devel >= 1:2.12.4
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.4
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.4
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 %configure \
83         --enable-fulldocs \
84         %{?with_static_libs:--enable-static}
85
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT \
93         gtkmm_docdir=%{_gtkdocdir}/%{name}-2.4 \
94         glibmm_docdir=%{_examplesdir}/%{name}-%{version}
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %doc AUTHORS ChangeLog CHANGES NEWS README
105 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
106
107 %files devel
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/lib*.so
110 %{_libdir}/lib*.la
111 %dir %{_libdir}/%{name}-2.4
112 %{_libdir}/%{name}-2.4/include
113 %dir %{_libdir}/%{name}-2.4/proc
114 %{_libdir}/%{name}-2.4/proc/m4
115 %{_libdir}/%{name}-2.4/proc/pm
116 %attr(755,root,root) %{_libdir}/%{name}-2.4/proc/gmmproc
117 %attr(755,root,root) %{_libdir}/%{name}-2.4/proc/*.pl
118 %{_includedir}/%{name}-2.4
119 %{_pkgconfigdir}/*.pc
120 %{_aclocaldir}/*.m4
121
122 %if %{with static_libs}
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/lib*.a
126 %endif
127
128 %files doc
129 %defattr(644,root,root,755)
130 %{_gtkdocdir}/%{name}-2.4
131 %{_examplesdir}/%{name}-%{version}
This page took 0.045763 seconds and 4 git commands to generate.