]> git.pld-linux.org Git - packages/gdlmm.git/blob - gdlmm.spec
- updated dependencies, added static_libs bcond
[packages/gdlmm.git] / gdlmm.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        C++ bindings for gdl library
6 Summary(pl.UTF-8):      Wiązania C++ do biblioteki gdl
7 Name:           gdlmm
8 Version:        3.7.3
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gdlmm/3.7/%{name}-%{version}.tar.xz
13 # Source0-md5:  518623e187d8bbe4c40c1d0dc3663e05
14 URL:            https://github.com/GNOME/gdlmm
15 BuildRequires:  autoconf >= 2.59
16 BuildRequires:  automake >= 1:1.9
17 BuildRequires:  gdl-devel >= 3.7
18 BuildRequires:  glibmm-devel >= 2.16.0
19 BuildRequires:  gtkmm3-devel >= 3.0.0
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  libtool >= 2:1.5
22 BuildRequires:  mm-common >= 0.8
23 BuildRequires:  pkgconfig
24 Requires:       gdl >= 3.7
25 Requires:       glibmm >= 2.16.0
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 C++ bindings for gdl library.
30
31 %description -l pl.UTF-8
32 Wiązania C++ do biblioteki gdl.
33
34 %package devel
35 Summary:        Header files for gdlmm library
36 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gdlmm
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       gdl-devel >= 3.7
40 Requires:       glibmm-devel >= 2.16.0
41 Requires:       gtkmm3-devel >= 3.0.0
42
43 %description devel
44 Header files for gdlmm library.
45
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki gdlmm.
48
49 %package static
50 Summary:        Static gdlmm library
51 Summary(pl.UTF-8):      Statyczna biblioteka gdlmm
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 Static gdlmm library.
57
58 %description static -l pl.UTF-8
59 Statyczna biblioteka gdlmm.
60
61 %package apidocs
62 Summary:        gdlmm API documentation
63 Summary(pl.UTF-8):      Dokumentacja API biblioteki gdlmm
64 Group:          Documentation
65 %if "%{_rpmversion}" >= "5"
66 BuildArch:      noarch
67 %endif
68
69 %description apidocs
70 API and internal documentation for gdlmm library.
71
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API biblioteki gdlmm.
74
75 %prep
76 %setup -q
77
78 %build
79 %configure \
80         %{?with_static_libs:--enable-static} \
81         --disable-silent-rules
82
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgdlmm-3.0.la
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 NEWS README
102 %attr(755,root,root) %{_libdir}/libgdlmm-3.0.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libgdlmm-3.0.so.2
104
105 %files devel
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libgdlmm-3.0.so
108 %{_libdir}/gdlmm-3.0
109 %{_includedir}/gdlmm-3.0
110 %{_pkgconfigdir}/gdlmm-3.0.pc
111
112 %if %{with static_libs}
113 %files static
114 %defattr(644,root,root,755)
115 %{_libdir}/libgdlmm-3.0.a
116 %endif
117
118 %files apidocs
119 %defattr(644,root,root,755)
120 %{_docdir}/gdlmm-3.0
121 %{_datadir}/devhelp/books/gdlmm-3.0
This page took 0.078625 seconds and 3 git commands to generate.