proj/proj.spec

98 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package proj
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define libname lib%{name}0
Name: proj
Version: 4.8.0
Release: 0
Summary: Cartographic projection software
License: MIT
Group: Productivity/Scientific/Other
Url: http://trac.osgeo.org/proj
Source0: http://download.osgeo.org/proj/%{name}-%{version}.tar.gz
Source1: ftp://ftp.remotesensing.org/proj/%{name}-datumgrid-1.5.zip
BuildRequires: pkg-config
BuildRequires: unzip
Provides: libproj = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%package -n %{libname}
Summary: Cartographic projection software
Group: Applications/GIS
%package -n libproj-devel
Summary: Development files for PROJ
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description -n %{libname}
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
cd nad
unzip -o %{SOURCE1}
%build
%configure \
--disable-static
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
cd src
cp projects.h %{buildroot}/%{_includedir}/projects.h
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%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
%{_libdir}/pkgconfig/proj.pc
%changelog