]> git.pld-linux.org Git - SPECS.git/blob - libgdamm3.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / libgdamm3.spec
1 # TODO:
2 # - package examples
3 #
4 # Conditional build:
5 %bcond_without  static_libs     # don't build static library
6 #
7 %define         realname        libgdamm
8 Summary:        C++ wrappers for libgda 3.x
9 Summary(pl.UTF-8):      Interfejsy C++ dla libgda 3.x
10 Name:           libgdamm3
11 Version:        3.0.1
12 Release:        1
13 License:        LGPL v2+
14 Group:          Libraries
15 Source0:        http://ftp.gnome.org/pub/GNOME/sources/libgdamm/3.0/%{realname}-%{version}.tar.bz2
16 # Source0-md5:  63583ec970e643962474401400e19994
17 Patch0:         am_fix.patch
18 BuildRequires:  autoconf
19 BuildRequires:  automake >= 1:1.9
20 BuildRequires:  glibmm-devel >= 2.12.8
21 BuildRequires:  libgda3-devel >= 3.0.0
22 BuildRequires:  libtool
23 BuildRequires:  perl-base
24 BuildRequires:  pkgconfig
25 Requires:       glibmm >= 2.12.8
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 C++ wrappers for libgda 3.x.
30
31 %description -l pl.UTF-8
32 Interfejsy C++ dla libgda 3.x.
33
34 %package devel
35 Summary:        Header files for libgdamm3 library
36 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libgdamm3
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       glibmm-devel >= 2.12.8
40 Requires:       libgda3-devel >= 3.0.0
41
42 %description devel
43 Header files for libgdamm3 library.
44
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki libgdamm3.
47
48 %package static
49 Summary:        Static libgdamm3 library
50 Summary(pl.UTF-8):      Statyczna biblioteka libgdamm3
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static libgdamm3 library.
56
57 %description static -l pl.UTF-8
58 Statyczna biblioteka libgdamm3.
59
60 %prep
61 %setup -q -n %{realname}-%{version}
62 %patch0 -p1
63
64 %build
65 %{__libtoolize}
66 %{__aclocal} -I scripts
67 %{__autoconf}
68 %{__automake}
69 %configure \
70         %{?with_static_libs:--enable-static}
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post   -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
87
88 %files
89 %defattr(644,root,root,755)
90 %doc AUTHORS ChangeLog NEWS README TODO
91 %attr(755,root,root) %{_libdir}/libgdamm-3.0.so.*.*.*
92 %attr(755,root,root) %ghost %{_libdir}/libgdamm-3.0.so.10
93
94 %files devel
95 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_libdir}/libgdamm-3.0.so
97 %{_libdir}/libgdamm-3.0
98 %{_includedir}/libgdamm-3.0
99 %{_pkgconfigdir}/libgdamm-3.0.pc
100
101 %if %{with static_libs}
102 %files static
103 %defattr(644,root,root,755)
104 %{_libdir}/libgdamm-3.0.a
105 %endif
This page took 0.9601 seconds and 3 git commands to generate.