c5796ad
# This RPM will possibly fail on PowerPCs, but I am ignoring this.
c5796ad
Summary: API in "C" for Shapefile handling
c5796ad
Name: shapelib
6091e55
Version: 1.3.0b2
2e0c1ed
Release: 9.1%{?dist}
08ad4a2
# No version of the LGPL is given.
08ad4a2
License: LGPLv2+ or MIT
7f31554
URL: http://shapelib.maptools.org/
9ec9a96
Source: http://download.osgeo.org/shapelib/%{name}-%{version}.tar.gz
9ec9a96
Patch0: shapelib-1.3.0b1-Makefile.patch
6091e55
Patch1: shapelib-1.3.0b2-Makefile2.patch
9ec9a96
Patch2: shapelib-1.2.10-endian.patch
9ec9a96
Patch3: shapelib-1.3.0b1-buildid.patch
7f31554
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c5796ad
Group: Development/Libraries
ebb6b2d
BuildRequires: proj-devel >= 4.4.1
c5796ad
c5796ad
%package devel
76a07cb
Summary: Development files for shapelib
76a07cb
Group: Development/Libraries
76a07cb
Requires: %{name} = %{version}-%{release}
c5796ad
c5796ad
%description
c5796ad
The Shapefile C Library provides the ability to write
c5796ad
simple C programs for reading, writing and updating (to a
c5796ad
limited extent) ESRI Shapefiles, and the associated
c5796ad
attribute file (.dbf).
c5796ad
c5796ad
%description devel
c5796ad
This package contains libshp and the appropriate header files.
c5796ad
c5796ad
%prep
3dc468d
%setup -q -n %{name}-%{version}
7f31554
%patch0 -p1 -b .makefile
9ec9a96
%patch1 -p1 -b .makefile2
01b9083
#patch2 -p1 -b .endian
7f31554
%patch3 -p1 -b .buildid
7f31554
sed -i "s/\r//g" README
7f31554
chmod -x README
c5796ad
c5796ad
%build
c5796ad
make %{?_smp_mflags} libdir=%{_libdir} CFLAGS="$RPM_OPT_FLAGS" lib
c5796ad
make %{?_smp_mflags} libdir=%{_libdir} CFLAGS="$RPM_OPT_FLAGS" all
c5796ad
c5796ad
cd contrib
c5796ad
make %{?_smp_mflags} libdir=%{_libdir} EXTRACFLAGS="$RPM_OPT_FLAGS"
c5796ad
c5796ad
%install
c5796ad
rm -rf $RPM_BUILD_ROOT
c5796ad
c5796ad
%makeinstall
3e37ab9
find %{buildroot} -name \*\.a -print | xargs rm -f
3e37ab9
find %{buildroot} -name \*\.la -print | xargs rm -f
c5796ad
c5796ad
cd contrib
c5796ad
%makeinstall
c5796ad
c5796ad
%clean
c5796ad
rm -rf $RPM_BUILD_ROOT
c5796ad
c5796ad
%post -p /sbin/ldconfig
c5796ad
c5796ad
%postun -p /sbin/ldconfig
c5796ad
c5796ad
%files
b1c4f29
%defattr(-,root,root,-)
c5796ad
%{_bindir}/*
c5796ad
%{_libdir}/*.so.*
c5796ad
Shawn McCann 63584ed
%doc LICENSE.LGPL README README.tree web/*.html
76a07cb
%doc contrib/doc/shpproj.txt stream1.sh stream1.out stream2.sh
c5796ad
%doc stream2.out makeshape.sh stream3.out ChangeLog
c5796ad
c5796ad
%files devel
c5796ad
%defattr(-,root,root,-)
7f31554
%doc LICENSE.LGPL README
c5796ad
%{_includedir}/*
c5796ad
%{_libdir}/*.so
c5796ad
c5796ad
%changelog
2e0c1ed
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0b2-9.1
2e0c1ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2e0c1ed
9402b52
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0b2-8.1
9402b52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9402b52
01b9083
* Thu Apr 21 2011 Karsten Hopp <karsten@redhat.com> 1.3.0b2-7.1
01b9083
- remove endian definition from Makefile, leave it to endian.h
01b9083
3a93a62
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0b2-7
3a93a62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3a93a62
6091e55
* Wed May 19 2010 Lucian Langa <cooly@gnome.eu.org> - 1.3.0b2-6
6091e55
- update to latest upstream beta
6091e55
9ec9a96
* Tue Mar 09 2010 Lucian Langa <cooly@gnome.eu.org> - 1.3.0b1-5
9ec9a96
- update to latest upstream version
9ec9a96
5ead7d0
* Fri Feb 19 2010 Lucian Langa <cooly@gnome.eu.org> - 1.2.10-2.20100216cvs
5ead7d0
- update patch0-3 fix undefined symbols
5ead7d0
3dc468d
* Tue Feb 16 2010 Lucian Langa <cooly@gnome.eu.org> - 1.2.10-1.20100216cvs
3dc468d
- revert to latest cvs snapshot
3dc468d
d2e6eab
* Thu Feb 04 2010 Lucian Langa <cooly@gnome.eu.org> - 1.3.0b1-4
d2e6eab
- misc cleanups
d2e6eab
3e37ab9
* Thu Feb 04 2010 Lucian Langa <cooly@gnome.eu.org> - 1.3.0b1-3
3e37ab9
- do not package static libfiles (#556094)
3e37ab9
05e589b
* Thu Jan 07 2010 Lucian Langa <cooly@gnome.eu.org> - 1.3.0b1-2
05e589b
- fix patch2 - no not depend on gdal
05e589b
7f31554
* Thu Jan 07 2010 Lucian Langa <cooly@gnome.eu.org> - 1.3.0b1-1
7f31554
- misc cleanups
7f31554
- update BR
7f31554
- fix source0
7f31554
- update to latest upstream snapshot
7f31554
1318c4b
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10-20.20060304cvs
1318c4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1318c4b
c2ad77f
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10-19.20060304cvs
c2ad77f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c2ad77f
f0f7766
* Thu Sep  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.2.10-18.20060304cvs
f0f7766
- fix patch application
f0f7766
08ad4a2
* Thu Sep  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.2.10-17.20060304cvs
08ad4a2
- fix license tag
08ad4a2
cd29f9d
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.10-16.20060304cvs
cd29f9d
- Autorebuild for GCC 4.3
cd29f9d
Shawn McCann ca7437b
* Sun Oct  21 2007 Shawn McCann <mccann0011@hotmail.com> - 1.2.10-15.20060304cvs
Shawn McCann ca7437b
- Fix for bug 339931
Shawn McCann ca7437b
Shawn McCann e4d2e34
* Sat Sep  16 2006 Shawn McCann <mccann0011@hotmail.com> - 1.2.10-12.20060304cvs
Shawn McCann e4d2e34
- Rebuild for FC6
Shawn McCann e4d2e34
Shawn McCann 5db616a
* Sun Mar  5 2006 Shawn McCann <mccann0011@hotmail.com> - 1.2.10-11.20060304cvs
Shawn McCann 5db616a
- Fixed a makefile bug that messed up parallel builds
Shawn McCann 5db616a
Shawn McCann 63584ed
* Sat Mar  4 2006 Shawn McCann <mccann0011@hotmail.com> - 1.2.10-10.20060304cvs
Shawn McCann 63584ed
- Upgraded to cvs snapshot taken on March 4, 2006
Shawn McCann 63584ed
Shawn McCann e3bb038
* Sat Mar  4 2006 Shawn McCann <mccann0011@hotmail.com> - 1.2.10-9
Shawn McCann e3bb038
- Rebuild for Fedora Extras 5
Shawn McCann e3bb038
4278247
* Mon Apr 11 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.2.10-8
4278247
- Fix "invalid lvalue in assignment" for GCC4.
4278247
f4a01c0
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
f4a01c0
- rebuilt
f4a01c0
75b5986
* Sun Feb 13 2005 David Woodhouse <dwmw2@infradead.org> 0:1.2.10-6
75b5986
- Don't hard-code endianness; just use endian.h
75b5986
c5796ad
* Wed Dec 15 2004 David M. Kaplan <dmk@erizo.ucdavis.edu> 0:1.2.10-5
c5796ad
- Patched patch and spec file according to suggestions of Michael Schwendt
c5796ad
- In particular, this separates the building from the installing in the rpm.
c5796ad
c5796ad
* Thu Aug 12 2004 David M. Kaplan <dmk@erizo.ucdavis.edu> 0:1.2.10-0.fdr.4
c5796ad
- Moved RPM_OPT_FLAGS out of make files.
c5796ad
- Removed backup files from patch.
c5796ad
- Made sure that make was using the appropriate libdir.
c5796ad
c5796ad
* Mon Dec 22 2003 David M. Kaplan <dmk@erizo.ucdavis.edu> 0:1.2.10-0.fdr.3
c5796ad
- Added url tag, changed copyright to license and changed permissions on patch file.
c5796ad
c5796ad
* Mon Dec 22 2003 David M. Kaplan <dmk@erizo.ucdavis.edu> 0:1.2.10-0.fdr.2
c5796ad
- Add source URL
c5796ad
- Removed proj requirement as it is automatically detected.
c5796ad
- Added epoch to proj-devel requirement
7f31554
- Fixed post and postun
76a07cb
- Changed group to Development/Libraries, although this appears to be only
c5796ad
  somewhat satisfactory.
c5796ad
- Removed "which make"
c5796ad
c5796ad
* Wed Nov  5 2003 David M. Kaplan <dmk@erizo.ucdavis.edu> 0:1.2.10-0.fdr.1
c5796ad
- Updated to 1.2.10 release
c5796ad
- Major changes to spec for Fedora
c5796ad
- Changes to Makefile patch for Fedora
c5796ad
- Split off devel package