File: osm2pgsql.spec.in

package info (click to toggle)
osm2pgsql 0.80.0%2Br27899-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 964 kB
  • sloc: ansic: 8,824; cpp: 731; sh: 672; makefile: 74; sql: 1
file content (96 lines) | stat: -rw-r--r-- 3,061 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96

%define svn @SVN@

Summary: Imports map data from www.OpenStreetMap.org to a PostgresSQL database
Name: 	 @PACKAGE@
Group:	 Applications/Text
Version: @VERSION@
Release: 1.%{svn}%{?dist}

License: GPL
URL:     http://svn.openstreetmap.org/applications/utils/export/osm2pgsql
Source0: %{name}-%{version}.tar.bz2
Source1: osm2pgsql-svn.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 

BuildRequires: geos-devel
BuildRequires: libxml2-devel
BuildRequires: postgresql-devel
BuildRequires: bzip2-devel
BuildRequires: proj-devel

%description
Processes the planet file from the communtiy mapping project at
http://www.openstreetmap.org. The map data is converted from XML to a
database stored in PostgreSQL with PostGIS geospatial extentions. This
database may then be used to render maps with Mapnik or for other
geospatial analysis.

%prep
%setup -q  -n %{name}


%build

export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"

make all


%install
rm -rf $RPM_BUILD_ROOT
install -D -p osm2pgsql $RPM_BUILD_ROOT/usr/bin/osm2pgsql


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%doc README
%{_bindir}/osm2pgsql


%changelog
* Sun Nov 23 2008 Keith Sharp <kms@passback.co.uk> - 0.55-1.20081123
- Fixed case of README.txt filename in Makefile
- Fixed case of README.txt filename in osm2pgsql.spec.in
- Fixed make clean to remove generated osm2pgsql.spec file

* Mon Sep  3 2007 Jon Burgess <jburgess777@googlemail.com> - 0.06-1.20070903
- Add several command line options and help text
- "--append" mode which imports extra data into the DB
- "--database" to specify the Postgresql DB name
- "--slim" to select the middle_ram code
- Multiple files can be read sequentially, e.g. lots of tiger county.osm files

* Sun Aug 19 2007 Jon Burgess <jburgess777@googlemail.com> - 0.04-1.20070812
- Allow polygon data types to appear as linestring if not closed (was broken by previous change)
- Handle exception when finding an interior point of a complex polygon geometry
- Add in a text cache for key/value pairs
- Switch to 65k blocks for object store
- Exclude source= during import
- The above changes save around 10% memory usage during a planet import
- Push leisure= polygons down to improve rendering

* Sun Aug 19 2007 Jon Burgess <jburgess777@googlemail.com> - 0.3-1.20070812
- Handle polygons with holes properly
- Export a couple more keys

* Sun Aug 12 2007 Jon Burgess <jburgess777@googlemail.com> - 0.2-1.20070812
- Added rpm build target to SVN osm2pgsql source
- Enhanced middle-ram to remove hard coded maximum IDs 
- Support negative IDs in middle-ram
- Replace centroid with interior to cope with unusual pareking polygons
 
* Tue Jul 31 2007 Keith Sharp <kms@passback.co.uk> 0.1-2.20070728svn
- Fixed BuidlRequires so that Mock builds work.

* Sat Jul 28 2007 Keith Sharp <kms@passback.co.uk> 0.1-1.20070728svn
- Updated to latest SVN, now includes UTF8Sanitize functioanlity
- Building on F7 now has latest GEOS

* Fri Mar 16 2007 Keith Sharp <kms@passback.co.uk> 0.1-1.20070316svn
- Initial build