2478d5a
#global pre RC1
73b2409
017724f
Name:          shapelib
a04fde2
Version:       1.4.1
0ec590d
Release:       6%{?pre:.%pre}%{?dist}
017724f
Summary:       C library for handling ESRI Shapefiles
7b7f560
# The core library is dual-licensed LGPLv2 or MIT.
7b7f560
# Some contributed files have different licenses:
7b7f560
# - contrib/csv2shp.c: GPLv2+
7b7f560
# - contrib/dbfinfo.c: Public domain
7b7f560
# - contrib/dbfcat.c:  Public domain
7b7f560
License:       (LGPLv2+ or MIT) and GPLv2+ and Public Domain
017724f
URL:           http://shapelib.maptools.org/
28f9c56
Source0:       http://download.osgeo.org/shapelib/%{name}-%{version}%{?pre:%pre}.tar.gz
28f9c56
# Man pages from debian package
28f9c56
# wget https://salsa.debian.org/debian-gis-team/shapelib/-/archive/master/shapelib-master.tar.gz
28f9c56
# tar --strip-components=2 -xvf shapelib-master.tar.gz shapelib-master/debian/man
28f9c56
# tar -czf shapelib-man.tar.gz man/
28f9c56
# rm -r man
28f9c56
Source1:       %{name}-man.tar.gz
28f9c56
28f9c56
BuildRequires: automake autoconf libtool
35a7c9f
BuildRequires: gcc-c++
73b2409
BuildRequires: make
ebb6b2d
BuildRequires: proj-devel >= 4.4.1
28f9c56
# For man pages
28f9c56
BuildRequires: rubygem-ronn
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
73b2409
017724f
%package devel
017724f
Summary:       Development files for shapelib
017724f
Requires:      %{name}%{?_isa} = %{version}-%{release}
017724f
c5796ad
%description devel
c5796ad
This package contains libshp and the appropriate header files.
c5796ad
73b2409
017724f
%package tools
017724f
Summary:       shapelib utility programs
017724f
Requires:      %{name}%{?_isa} = %{version}-%{release}
017724f
017724f
%description tools
017724f
This package contains various utility programs distributed with shapelib.
017724f
7c8b4ee
c5796ad
%prep
28f9c56
%autosetup -a1
c5796ad
7c8b4ee
c5796ad
%build
28f9c56
# Kill rpath
28f9c56
autoreconf -ifv
28f9c56
017724f
%configure --disable-static
73b2409
%make_build
c5796ad
7c8b4ee
c5796ad
%install
017724f
%make_install
c5796ad
017724f
# Remove static libraries
7c8b4ee
find %{buildroot} -name '*.la' -exec rm -f {} ';'
7c8b4ee
28f9c56
# Build man pages
28f9c56
ronn -r --date="$(LC_ALL=C date -u "+%Y-%m-%d")" --manual=%{name} man/*.md
28f9c56
mkdir -p %{buildroot}%{_mandir}/man1/
28f9c56
install -pm 0644 man/*.1 %{buildroot}%{_mandir}/man1/
c5796ad
8afe1c9
%ldconfig_scriptlets
c5796ad
7c8b4ee
c5796ad
%files
7c8b4ee
%doc README README.tree ChangeLog web/*.html
7c8b4ee
%license COPYING
2478d5a
%{_libdir}/libshp.so.2*
c5796ad
c5796ad
%files devel
017724f
%{_includedir}/shapefil.h
017724f
%{_libdir}/libshp.so
017724f
%{_libdir}/pkgconfig/%{name}.pc
017724f
017724f
%files tools
017724f
%doc contrib/doc/
017724f
%{_bindir}/*
28f9c56
%{_mandir}/man1/*.1*
c5796ad
7c8b4ee
c5796ad
%changelog
0ec590d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-6
0ec590d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0ec590d
28f9c56
* Mon Aug 20 2018 Sandro Mani <manisandro@gmail.com> - 1.4.1-5
28f9c56
- Add man pages (#1619071)
28f9c56
c86c09f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-4
c86c09f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c86c09f
35a7c9f
* Wed Mar 07 2018 Sandro Mani <manisandro@gmail.com> - 1.4.1-3
35a7c9f
- BR: gcc-c++
35a7c9f
59d5a75
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
59d5a75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
59d5a75
a04fde2
* Thu Sep 14 2017 Sandro Mani <manisandro@gmail.com> - 1.4.1-1
a04fde2
- Update to 1.4.1
a04fde2
e77e16f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-5
e77e16f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e77e16f
a461146
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-4
a461146
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a461146
3900632
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
3900632
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3900632
95009b8
* Wed Jan 25 2017 Sandro Mani <manisandro@gmail.com> - 1.4.0-2
95009b8
- Rebuild (proj)
95009b8
2478d5a
* Sun Dec 11 2016 Sandro Mani <manisandro@gmail.com> - 1.4.0-1
2478d5a
- Update to 1.4.0
2478d5a
73b2409
* Wed Dec 07 2016 Sandro Mani <manisandro@gmail.com> - 1.4.0-0.1.RC1
73b2409
- Update to 1.4.0-RC1
73b2409
d3b5771
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0f-9
d3b5771
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d3b5771
4f85d54
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0f-8
4f85d54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4f85d54
c2c07e1
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.3.0f-7
c2c07e1
- Rebuilt for GCC 5 C++11 ABI change
c2c07e1
7c8b4ee
* Thu Mar 12 2015 Sandro Mani <manisandro@gmail.com> - 1.3.0f-5
7c8b4ee
- Rebuild (proj)
7c8b4ee
d30049c
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0f-5
d30049c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d30049c
64d1aeb
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0f-4
64d1aeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
64d1aeb
0a82a4a
* Sun Apr 06 2014 Sandro Mani <manisandro@gmail.com> - 1.3.0f-3
0a82a4a
- Backport some fixes from the gdal bundled shapelib
0a82a4a
7b7f560
* Thu Aug 08 2013 Sandro Mani <manisandro@gmail.com> - 1.3.0f-2
7b7f560
- Add missing licenses
7b7f560
017724f
* Mon Aug 05 2013 Sandro Mani <manisandro@gmail.com> - 1.3.0f-1
017724f
- Update to 1.3.0 final
2f5a80f
984345d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0b2-10.1
984345d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
984345d
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
017724f
* Fri Apr  8 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