File osmfilter.spec of Package osmfilter
#
# spec file for package osmfilter
#
Name: osmfilter
Version: 1.4.6
Release: 0
Summary: Program to filter OpenStreetMap data
License: AGPL-3.0
Url: http://wiki.openstreetmap.org/wiki/Osmfilter
Source: http://m.m.i24.cc/osmfilter.c
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The input file name must be supplied as command line argument. The file must not be a stream. Redirections from standard input will not work because the program needs random access to the file. You do not need to specify the input format, osmfilter will recognize these.
Formats: .osm (XML), .osc (OSM Change File), .osh (OSM Full History), .o5m (speed-optimized) and .o5c (speed-optimized Change File).
The output format is .osm by default. If you want a different format, please specify it using the appropriate command line parameter.
%prep
%setup -q -c -T
cp %SOURCE0 .
%build
%__cc $RPM_OPT_FLAGS -o osmfilter osmfilter.c
%install
mkdir -p ${RPM_BUILD_ROOT}%_bindir/
install -m 0755 -D osmfilter ${RPM_BUILD_ROOT}%_bindir/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%attr(0755,root,root) %_bindir/osmfilter
%changelog