diff --git a/shapelib-1.4.1.tar.gz b/shapelib-1.4.1.tar.gz new file mode 100644 index 0000000..1ac4e49 Binary files /dev/null and b/shapelib-1.4.1.tar.gz differ diff --git a/shapelib-master.tar.gz b/shapelib-master.tar.gz new file mode 100644 index 0000000..e8cde86 Binary files /dev/null and b/shapelib-master.tar.gz differ diff --git a/shapelib.spec b/shapelib.spec new file mode 100644 index 0000000..ee13407 --- /dev/null +++ b/shapelib.spec @@ -0,0 +1,76 @@ +Name: shapelib +Version: 1.4.1 +Release: 8 +Summary: A Shapefile C Library +License: (LGPLv2+ or MIT) and GPLv2+ and Public Domain +URL: http://shapelib.maptools.org/ +Source0: http://download.osgeo.org/shapelib/%{name}-%{version}.tar.gz +Source1: https://salsa.debian.org/debian-gis-team/shapelib/-/archive/master/shapelib-master.tar.gz + +BuildRequires: automake autoconf libtool gcc-c++ make proj-devel >= 4.4.1 +BuildRequires: rubygem-ronn + +Provides: %{name}-tools = %{version}-%{release} +Obsoletes: %{name}-tools < %{version}-%{release} + +%description +The Shapefile C Library provides the ability to write simple C +programs for reading, writing and updating (to a limited extent) ESRI +Shapefiles, and the associated attribute file (.dbf). This package +also contains various utility programs for using shapelib. + +%package devel +Summary: Development files for shapelib + +Requires: %{name} = %{version}-%{release} + +%description devel +The shapelib-devel package contains development files for applications +that use shapelib. + +%package help +Summary: Documents for shapelib + +%description help +The shape-lib-help package contains related documents. + +%prep +%autosetup -n %{name}-%{version} -a1 -p1 + +%build +autoreconf -ifv +tar --strip-components=2 -xvf %{SOURCE1} shapelib-master/debian/man +%configure --disable-static +%make_build + +%install +%make_install + +%delete_la + +ronn -r --date="$(LC_ALL=C date -u "+%Y-%m-%d")" --manual=%{name} man/*.md +install -d %{buildroot}%{_mandir}/man1/ +install -pm 0644 man/*.1 %{buildroot}%{_mandir}/man1/ + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%license COPYING +%{_bindir}/* +%{_libdir}/libshp.so.2* + +%files devel +%{_includedir}/shapefil.h +%{_libdir}/libshp.so +%{_libdir}/pkgconfig/%{name}.pc + +%files help +%doc README README.tree ChangeLog web/*.html +%doc contrib/doc/ +%{_mandir}/man1/*.1* + +%changelog +* Fri Feb 14 2020 gulining - 1.4.1-8 +- Package init