Accepting request 289933 from Application:Geo

1

OBS-URL: https://build.opensuse.org/request/show/289933
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/proj?expand=0&rev=11
This commit is contained in:
Dominique Leuenberger 2015-03-11 08:57:49 +00:00 committed by Git OBS Bridge
commit 312f0dfc3f
4 changed files with 29 additions and 29 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:da9e5054454ff24bea11074ff4eadd3bb078d9b2d42f57e7a362e8067ac394f5
size 597580

3
proj-4.8.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2db2dbf0fece8d9880679154e0d6d1ce7c694dd8e08b4d091028093d87a9d1b5
size 785279

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sun Mar 8 09:59:50 UTC 2015 - mpluskal@suse.com
- Cleanup spec file with spec-cleaner
- Cleanup dependecies
- Use url for source
- Update url
-------------------------------------------------------------------
Fri Apr 20 12:09:29 UTC 2012 - tzotsos@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package proj
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@ -16,38 +16,31 @@
#
%define libname lib%{name}0
Name: proj
Version: 4.8.0
Release: 0
Summary: Cartographic projection software
License: MIT
Group: Productivity/Scientific/Other
Url: ftp://ftp.remotesensing.org/proj/
Source0: proj-%{version}.tar.bz2
Source1: proj-datumgrid-1.5.zip
BuildRequires: bzip2
BuildRequires: unzip
%if 0%{?centos_version} || 0%{?rhel_version}
BuildRequires: pkgconfig
%else
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
%endif
BuildRequires: unzip
Provides: libproj = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: %{_prefix}
%package -n libproj0
%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: libproj0 = %{version}
Requires: %{libname} = %{version}
%description -n libproj0
%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.
@ -61,27 +54,26 @@ data with a wide range of selectable projection functions.
This package contains libproj and the appropriate header files and man pages.
%prep
%setup -q -b 0 -n proj-%{version}
%setup -q
cd nad
unzip -o %{SOURCE1}
%build
%configure --disable-static
make
%configure \
--disable-static
make %{?_smp_mflags}
%install
%makeinstall
rm %{buildroot}/%{_libdir}/*.la
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 libproj0 -p /sbin/ldconfig
%post -n %{libname} -p /sbin/ldconfig
%postun -n libproj0 -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%clean
%files -n libproj0
%files -n %{libname}
%defattr(0644,root,root)
%{_libdir}/*.so.*