]>
Commit | Line | Data |
---|---|---|
42177554 CM |
1 | # TODO: |
2 | # - packages files for internal help system and gtk-doc | |
3 | # | |
30f72643 CM |
4 | Summary: Emerillon is a map viewer featuring Open Street Maps |
5 | Name: emerillon | |
42177554 | 6 | Version: 0.1.2 |
30f72643 CM |
7 | Release: 0.1 |
8 | License: GPL | |
9 | Group: Applications | |
10 | Source0: http://download.gnome.org/sources/emerillon/0.1/%{name}-%{version}.tar.bz2 | |
42177554 | 11 | # Source0-md5: 78a328edd19f9d022e163e9652fa2e5b |
30f72643 CM |
12 | URL: http://projects.gnome.org/emerillon/ |
13 | BuildRequires: clutter-devel | |
14 | BuildRequires: geoclue-devel >= 0.11.1 | |
15 | BuildRequires: glib-devel >= 2.12.0 | |
16 | BuildRequires: gtk+2-devel >= 2.12.0 | |
42177554 | 17 | BuildRequires: libchamplain-devel >= 0.6 |
30f72643 CM |
18 | BuildRequires: libethos-devel >= 0.2 |
19 | BuildRequires: librest-devel >= 0.6.1 | |
20 | Requires: clutter | |
21 | Requires: geoclue >= 0.11.1 | |
22 | Requires: glib >= 2.12.0 | |
23 | Requires: gtk+2 >= 2.12.0 | |
42177554 | 24 | Requires: libchamplain >= 0.6 |
30f72643 CM |
25 | Requires: libethos >= 0.2 |
26 | Requires: librest >= 0.6.1 | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | Emerillon is a map viewer. Aiming at simple user interface, Emerillon | |
31 | is a powerful, extensible application. It is pronounced | |
32 | Ey-may-ree-yon. | |
33 | ||
34 | It features OpenStreetMap based maps: the street map, the cycling map | |
35 | and the transportation map. Use it to: | |
36 | ||
37 | - Browse maps, | |
38 | - Search the map for places, | |
39 | - Placemark places for later quick access. | |
40 | ||
41 | Emerillon is named after the Émérillon, one of the three boats that | |
42 | visited New France under Jacques Cartier's command in 1535. Émérillon | |
43 | is also French for Merlin Falcons. | |
44 | ||
45 | %package devel | |
46 | Summary: Header files for emerillon | |
47 | Group: Development/Libraries | |
48 | Requires: %{name} = %{version}-%{release} | |
49 | ||
50 | %description devel | |
51 | Header files for emerillon | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | ||
56 | # If gtk+2 >= 2.20 patch for new names of depricated methods. | |
57 | %define GTKVER %(rpm -q --qf %{version} gtk+2) | |
58 | %if "GTKVER" >= "2.20.0" | |
59 | %{__sed} -i -e 's/GTK_WIDGET_VISIBLE/gtk_widget_get_visible/g' %{name}/*.c | |
60 | %{__sed} -i -e 's/GTK_WIDGET_NO_WINDOW/gtk_widget_get_has_window/g' %{name}/*.c | |
61 | %endif | |
62 | ||
63 | %build | |
64 | %configure \ | |
65 | --disable-schemas-install | |
66 | %{__make} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | %find_lang %{name} | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post | |
80 | %gconf_schema_install %{name}.schemas | |
81 | ||
82 | %preun | |
83 | %gconf_schema_uninstall %{name}.schemas | |
84 | ||
85 | %files -f %{name}.lang | |
86 | %defattr(644,root,root,755) | |
87 | %doc AUTHORS ChangeLog COPYING INSTALL NEWS README | |
88 | %dir %{_libdir}/%{name} | |
89 | %{_libdir}/%{name}/plugins | |
90 | %attr(755,root,root) %{_bindir}/%{name} | |
91 | %{_sysconfdir}/gconf/schemas/%{name}.schemas | |
92 | %dir %{_datadir}/%{name} | |
93 | %{_datadir}/%{name}/%{name}-ui.xml | |
94 | %{_desktopdir}/%{name}.desktop | |
95 | ||
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %{_includedir}/%{name}-0.1/%{name} | |
99 | %{_pkgconfigdir}/*.pc |