]> git.pld-linux.org Git - packages/libgee0.6.git/blob - libgee0.6.spec
- unconditional noarch subpackages
[packages/libgee0.6.git] / libgee0.6.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4
5 Summary:        libgee - GObject collection library
6 Summary(pl.UTF-8):      libgee - biblioteka kolekcji oparta na GObject
7 Name:           libgee0.6
8 Version:        0.6.8
9 Release:        3
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/libgee/0.6/libgee-%{version}.tar.xz
13 # Source0-md5:  2688c24f9a12e7616ee808f9092d0afe
14 URL:            http://live.gnome.org/Libgee
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  glib2-devel >= 1:2.12.0
18 BuildRequires:  gobject-introspection-devel >= 0.9.0
19 BuildRequires:  libtool
20 BuildRequires:  pkgconfig
21 BuildRequires:  tar >= 1:1.22
22 BuildRequires:  xz
23 # not required for stable releases (all generated files are included)
24 #BuildRequires: vala
25 Requires:       glib2 >= 1:2.12.0
26 Obsoletes:      libgee < 0.7
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 libgee is a collection library providing GObject-based interfaces and
31 classes for commonly used data structures.
32
33 %description -l pl.UTF-8
34 libgee jest biblioteką udostępniajacą oparte na bibliotece GObject
35 interfejsy oraz klasy powszechnie używanych struktur danych.
36
37 %package devel
38 Summary:        Header files for libgee library
39 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libgee
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42 Requires:       glib2-devel >= 1:2.12.0
43 Obsoletes:      libgee-devel < 0.7
44
45 %description devel
46 Header files for libgee library.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki libgee.
50
51 %package static
52 Summary:        Static libgee library
53 Summary(pl.UTF-8):      Statyczna biblioteka libgee
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}-%{release}
56 Obsoletes:      libgee-static < 0.7
57
58 %description static
59 Static libgee library.
60
61 %description static -l pl.UTF-8
62 Statyczna biblioteka libgee.
63
64 %package -n vala-libgee0.6
65 Summary:        libgee API for Vala language
66 Summary(pl.UTF-8):      API libgee dla języka Vala
67 Group:          Development/Libraries
68 Requires:       %{name}-devel = %{version}-%{release}
69 Requires:       vala
70 Obsoletes:      vala-libgee < 0.7
71 BuildArch:      noarch
72
73 %description -n vala-libgee0.6
74 libgee API for Vala language.
75
76 %description -n vala-libgee0.6 -l pl.UTF-8
77 API libgee dla języka Vala.
78
79 %prep
80 %setup -q -n libgee-%{version}
81
82 %build
83 %{__libtoolize}
84 %{__aclocal}
85 %{__autoconf}
86 %{__autoheader}
87 %{__automake}
88 %configure \
89         --disable-silent-rules \
90         %{?with_static_libs:--enable-static}
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgee.la
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post   -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
106
107 %files
108 %defattr(644,root,root,755)
109 %doc AUTHORS ChangeLog NEWS README
110 %attr(755,root,root) %{_libdir}/libgee.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libgee.so.2
112 %{_libdir}/girepository-1.0/Gee-1.0.typelib
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libgee.so
117 %{_pkgconfigdir}/gee-1.0.pc
118 %{_includedir}/gee-1.0
119 %{_datadir}/gir-1.0/Gee-1.0.gir
120
121 %if %{with static_libs}
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/libgee.a
125 %endif
126
127 %files -n vala-libgee0.6
128 %defattr(644,root,root,755)
129 %{_datadir}/vala/vapi/gee-1.0.vapi
This page took 0.289798 seconds and 3 git commands to generate.