17402
|
1 |
#
|
|
2 |
# spec file for package libchamplain
|
|
3 |
#
|
17415
|
4 |
# Copyright 2010 Sun Microsystems, Inc.
|
17402
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
%define owner jouby
|
17881
|
9 |
|
|
10 |
%define OSR LFI#105446 (gnome Exec. summary):n/a
|
17402
|
11 |
|
|
12 |
Name: libchamplain
|
17415
|
13 |
License: LGPLv2
|
17402
|
14 |
Group: Development/Libraries
|
18150
|
15 |
Version: 0.6.0
|
17402
|
16 |
Release: 1
|
|
17 |
Distribution: Java Desktop System
|
17881
|
18 |
Vendor: Gnome Community
|
17402
|
19 |
URL: http://projects.gnome.org/libchamplain/
|
|
20 |
Summary: a Clutter based widget to display rich, eye-candy and interactive maps
|
18150
|
21 |
Source: http://download.gnome.org/sources/%{name}/0.6/%{name}-%{version}.tar.bz2
|
17402
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
17584
|
23 |
# date:2010-02-23 owner:chrisk type:bug
|
17402
|
24 |
|
|
25 |
Requires: clutter >= 1.0
|
|
26 |
Requires: glib >= 2.10
|
|
27 |
Requires: cairo >= 1.4
|
|
28 |
Requires: gio >= 2.16
|
|
29 |
Requires: gdk >= 2.14
|
|
30 |
Requires: sqlite >= 3.0
|
|
31 |
Requires: gtk >= 2.12
|
|
32 |
Requires: clutter-gtk >= 0.10
|
|
33 |
BuildRequires: cairo-devel >= 1.4
|
|
34 |
BuildRequires: clutter-cairo-devel >= 0.8
|
|
35 |
BuildRequires: clutter-devel >= 0.8.4
|
|
36 |
BuildRequires: clutter-gtk-devel >= 0.8
|
|
37 |
BuildRequires: clutter-devel >= 1.0.0
|
|
38 |
BuildRequires: clutter-gtk-devel >= 0.10
|
|
39 |
BuildRequires: gir-repository-devel
|
|
40 |
BuildRequires: glib2-devel >= 2.16
|
|
41 |
BuildRequires: gobject-introspection-devel
|
|
42 |
|
|
43 |
%description
|
|
44 |
libchamplain is a Clutter based widget to display rich, eye-candy and
|
|
45 |
interactive maps.
|
|
46 |
|
|
47 |
%package devel
|
|
48 |
Summary: Libraries and include files for libchamplain.
|
|
49 |
Group: Development/Libraries
|
|
50 |
Requires: %{name} = %{version}
|
|
51 |
|
|
52 |
%description devel
|
|
53 |
Libraries and header files if you want to make use of the libchamplain library in your
|
|
54 |
own programs.
|
|
55 |
|
|
56 |
|
|
57 |
%prep
|
|
58 |
%setup -q
|
|
59 |
|
|
60 |
#FIXME: When #590829 fixed in next release, remove following lines
|
|
61 |
rm -f m4/lt~obsolete.m4
|
|
62 |
rm -f m4/ltoptions.m4
|
|
63 |
rm -f m4/libtool.m4
|
|
64 |
rm -f m4/ltsugar.m4
|
|
65 |
rm -f m4/ltversion.m4
|
|
66 |
|
|
67 |
%build
|
|
68 |
%ifos linux
|
|
69 |
if [ -x /usr/bin/getconf ]; then
|
|
70 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
71 |
fi
|
|
72 |
%else
|
|
73 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
74 |
%endif
|
|
75 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
76 |
CPUS=1
|
|
77 |
fi
|
|
78 |
|
|
79 |
libtoolize --force
|
|
80 |
aclocal $ACLOCAL_FLAGS -I m4
|
|
81 |
autoheader
|
|
82 |
automake -a -c -f
|
|
83 |
autoconf
|
|
84 |
|
|
85 |
./configure --prefix=%{_prefix} \
|
|
86 |
--bindir=%{_bindir} \
|
|
87 |
--mandir=%{_mandir} \
|
18150
|
88 |
--disable-memphis \
|
17402
|
89 |
--libdir=%{_libdir} \
|
|
90 |
--datadir=%{_datadir} \
|
|
91 |
--includedir=%{_includedir} \
|
18342
|
92 |
--sysconfdir=%{_sysconfdir}
|
17402
|
93 |
|
|
94 |
make -j $CPUS
|
|
95 |
|
|
96 |
%install
|
|
97 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
98 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
99 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
|
100 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
101 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
102 |
|
|
103 |
%clean
|
|
104 |
rm -rf $RPM_BUILD_ROOT
|
|
105 |
|
|
106 |
|
|
107 |
%files
|
|
108 |
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
109 |
%defattr (-, root, root)
|
|
110 |
%{_prefix}/lib/lib*.so.*
|
|
111 |
%{_prefix}/share/gir-*
|
|
112 |
|
|
113 |
%files devel
|
|
114 |
%defattr (-, root, root)
|
|
115 |
%{_prefix}/include/liblibchamplain-*
|
|
116 |
%{_prefix}/lib/lib*.a
|
|
117 |
%{_prefix}/lib/lib*.la
|
|
118 |
%{_prefix}/lib/lib*.so
|
|
119 |
%{_prefix}/lib/pkgconfig/*
|
|
120 |
|
|
121 |
%changelog
|
17763
|
122 |
* Fri Mar 26 2010 - [email protected]
|
|
123 |
- Bump to 0.4.5.
|
17584
|
124 |
* Tue Feb 23 2010 - [email protected]
|
|
125 |
- Add libchamplain-01-fixxref-modules.diff to fix build issue.
|
17415
|
126 |
* Fri Jan 01 2010 - [email protected]
|
|
127 |
- Correct license info
|
17402
|
128 |
* Wed Oct 28 2009 - [email protected]
|
|
129 |
- Bump to 0.4.2.
|
|
130 |
* Fri Sep 18 2009 - [email protected]
|
|
131 |
- Bump to 0.4.0.
|
|
132 |
- Remove upstreamed patch clutter-1-0.diff for bugzilla #590825
|
|
133 |
- Add patch libtool.diff to fix bugzilla #595534.
|
|
134 |
* Wed Aug 05 2009 - [email protected]
|
|
135 |
- Initial spec.
|