proj/proj.spec

82 lines
1.9 KiB
RPMSpec

#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: proj
Version: 4.7.0
Release: 1
License: MIT
Summary: Cartographic projection software
Url: ftp://ftp.remotesensing.org/proj/
Group: Applications/GIS
Source0: proj-%{version}.tar.bz2
Source1: proj-datumgrid-1.5.zip
BuildRequires: bzip2
BuildRequires: unzip
Provides: libproj = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: %{_prefix}
%package -n libproj0
Summary: Cartographic projection software
Group: Applications/GIS
%package -n libproj-devel
Summary: Development files for PROJ
Group: Development/Libraries/C and C++
Requires: libproj0 = %{version}
%description -n libproj0
This package the library for performing respective
forward and inverse transformation of cartographic data to or from cartesian
data with a wide range of selectable projection functions.
%description
This package offers the commandline tools for performing respective
forward and inverse transformation of cartographic data to or from cartesian
data with a wide range of selectable projection functions.
%description -n libproj-devel
This package contains libproj and the appropriate header files and man pages.
%prep
%setup -q -b 0 -n proj-%{version}
cd nad
unzip -o %{SOURCE1}
%build
%configure --disable-static
make
%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.la
%post -n libproj0 -p /sbin/ldconfig
%postun -n libproj0 -p /sbin/ldconfig
%clean
%files -n libproj0
%defattr(0644,root,root)
%{_libdir}/*.so.*
%files
%defattr(-,root,root)
%doc NEWS AUTHORS COPYING README ChangeLog
%defattr(0755,root,root)
%{_bindir}/*
%dir %{_datadir}/proj
%defattr(0644,root,root)
%{_mandir}/man1/*.1*
%{_datadir}/proj/*
%files -n libproj-devel
%defattr(0644,root,root)
%{_mandir}/man3/*.3*
%{_includedir}/*.h
%{_libdir}/*.so
%changelog