Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
1ce3513791 | ||
|
0d920d360d | ||
|
74fc147d03 | ||
|
6ab84d8e29 | ||
|
3c971ab2ae | ||
|
7aae2ea102 |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
libgeotiff-1.2.5.tar.gz
|
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
||||
# Makefile for source rpm: libgeotiff
|
||||
# $Id$
|
||||
NAME := libgeotiff
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
20
libgeotiff-multilib.patch
Normal file
20
libgeotiff-multilib.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- libgeotiff-1.2.4/Doxyfile 2001-03-05 06:36:54.000000000 +0200
|
||||
+++ libgeotiff.work/Doxyfile 2008-01-06 05:28:45.000000000 +0200
|
||||
@@ -49,7 +49,7 @@
|
||||
# each generated HTML page. If it is left blank doxygen will generate a
|
||||
# standard footer.
|
||||
|
||||
-HTML_FOOTER =
|
||||
+HTML_FOOTER = no_date_footer.html
|
||||
|
||||
# The QUIET tag can be used to turn on/off the messages that are generated
|
||||
# by doxygen. Possible values are YES and NO. If left blank NO is used.
|
||||
--- libgeotiff-1.2.4/no_date_footer.html 1970-01-01 02:00:00.000000000 +0200
|
||||
+++ libgeotiff.work/no_date_footer.html 2008-01-06 05:33:09.000000000 +0200
|
||||
@@ -0,0 +1,6 @@
|
||||
+<hr size="1"><address style="text-align: right;"><small>
|
||||
+Generated for $projectname by <a href="http://www.doxygen.org/
|
||||
+index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
|
||||
+$doxygenversion</small></address>
|
||||
+</body>
|
||||
+</html>
|
10
libgeotiff-soname.patch
Normal file
10
libgeotiff-soname.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- libgeotiff-1.2.4/Makefile.in.orig 2007-02-04 18:57:47.000000000 +0100
|
||||
+++ libgeotiff-1.2.4/Makefile.in 2007-07-23 18:47:45.000000000 +0200
|
||||
@@ -101,6 +101,7 @@
|
||||
|
||||
$(GEOTIFF_SO): ${OBJS}
|
||||
${LD_SHARED} ${OBJS} ${LIBS} -o $(GEOTIFF_SO)
|
||||
+ ${CC} -shared ${OBJS} ${LIBS} -o $(GEOTIFF_SO) -Wl,-soname=libgeotiff.so.$(VERSION_MAJOR).$(VERSION_MINOR)
|
||||
rm -f libgeotiff.$(SO_EXT)
|
||||
${LN} $(GEOTIFF_SO) libgeotiff.$(SO_EXT)
|
||||
|
171
libgeotiff.spec
Normal file
171
libgeotiff.spec
Normal file
@ -0,0 +1,171 @@
|
||||
Name: libgeotiff
|
||||
Version: 1.2.5
|
||||
Release: 2%{?dist}
|
||||
Summary: GeoTIFF format library
|
||||
Group: System Environment/Libraries
|
||||
License: MIT
|
||||
URL: http://www.remotesensing.org/geotiff/geotiff.html
|
||||
Source: ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/%{name}-%{version}.tar.gz
|
||||
Patch0: libgeotiff-soname.patch
|
||||
Patch1: libgeotiff-multilib.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: libtiff-devel libjpeg-devel proj-devel zlib-devel
|
||||
|
||||
%description
|
||||
GeoTIFF represents an effort by over 160 different remote sensing,
|
||||
GIS, cartographic, and surveying related companies and organizations
|
||||
to establish a TIFF based interchange format for georeferenced
|
||||
raster imagery.
|
||||
|
||||
%package devel
|
||||
Summary: Development Libraries for the GeoTIFF file format library
|
||||
Group: Development/Libraries
|
||||
Requires: pkgconfig libtiff-devel
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The GeoTIFF library provides support for development of geotiff image format.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%patch0 -p1 -b .soname~
|
||||
%patch1 -p1 -b .multilib~
|
||||
|
||||
# fix wrongly encoded files from tarball
|
||||
set +x
|
||||
for f in `find . -type f` ; do
|
||||
if file $f | grep -q ISO-8859 ; then
|
||||
set -x
|
||||
iconv -f ISO-8859-1 -t UTF-8 $f > ${f}.tmp && \
|
||||
mv -f ${f}.tmp $f
|
||||
set +x
|
||||
fi
|
||||
if file $f | grep -q CRLF ; then
|
||||
set -x
|
||||
sed -i -e 's|\r||g' $f
|
||||
set +x
|
||||
fi
|
||||
done
|
||||
set -x
|
||||
|
||||
# remove junks
|
||||
find . -name ".cvsignore" -exec rm -rf '{}' \;
|
||||
|
||||
%build
|
||||
|
||||
# disable -g flag removal
|
||||
sed -i 's| \| sed \"s\/-g \/\/\"||g' configure
|
||||
|
||||
%configure \
|
||||
--prefix=%{_prefix} \
|
||||
--includedir=%{_includedir}/%{name}/ \
|
||||
--with-proj \
|
||||
--with-tiff \
|
||||
--with-jpeg \
|
||||
--with-zip
|
||||
# WARNING
|
||||
# disable %{?_smp_mflags}
|
||||
# it breaks compile
|
||||
|
||||
make
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# install libgeotiff
|
||||
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
|
||||
|
||||
# install manualy some file
|
||||
install -p -m 755 bin/makegeo %{buildroot}%{_bindir}
|
||||
|
||||
# install pkgconfig file
|
||||
cat > %{name}.pc <<EOF
|
||||
prefix=%{_prefix}
|
||||
exec_prefix=%{_prefix}
|
||||
libdir=%{_libdir}
|
||||
includedir=%{_includedir}/%{name}
|
||||
|
||||
Name: %{name}
|
||||
Description: GeoTIFF file format library
|
||||
Version: %{version}
|
||||
Libs: -L\${libdir} -lgeotiff
|
||||
Cflags: -I\${includedir}
|
||||
EOF
|
||||
|
||||
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
|
||||
install -p -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
|
||||
|
||||
#clean up junks
|
||||
rm -rf %{buildroot}%{_libdir}/*.a
|
||||
echo >> %{buildroot}%{_datadir}/epsg_csv/codes.csv
|
||||
|
||||
# generate docs
|
||||
doxygen
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc ChangeLog LICENSE README
|
||||
%doc docs/*.txt docs/*.html
|
||||
%{_bindir}/geotifcp
|
||||
%{_bindir}/listgeo
|
||||
%{_bindir}/makegeo
|
||||
%{_libdir}/libgeotiff.so.*
|
||||
%dir %{_datadir}/epsg_csv
|
||||
%attr(0644,root,root) %{_datadir}/epsg_csv/*.csv
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc docs/api
|
||||
%dir %{_includedir}/%{name}
|
||||
%attr(0644,root,root) %{_includedir}/%{name}/*.h
|
||||
%attr(0644,root,root) %{_includedir}/%{name}/*.inc
|
||||
%{_libdir}/libgeotiff.so
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
||||
* Mon Sep 15 2008 Balint Cristian <rezso@rdsor.ro> - 1.2.5-2
|
||||
- disable smp build for koji
|
||||
|
||||
* Mon Sep 15 2008 Balint Cristian <rezso@rdsor.ro> - 1.2.5-1
|
||||
- new bugfix release
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.4-3
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
* Sun Jan 06 2008 Balint Cristian <rezso@rdsor.ro> - 1.2.4-2
|
||||
- Fix multilib issue by removal of datetime in doxygen footers
|
||||
|
||||
* Sun Jan 06 2008 Balint Cristian <rezso@rdsor.ro> - 1.2.4-1
|
||||
- Rebuild for final release.
|
||||
|
||||
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.2.4-0.5.rc1
|
||||
- Rebuild for selinux ppc32 issue.
|
||||
|
||||
* Wed Jul 25 2007 Jesse Keating <jkeating@redhat.com> - 1.2.4-0.4.rc1
|
||||
- Rebuild for RH #249435
|
||||
|
||||
* Tue Jul 24 2007 Balint Cristian <cbalint@redhat.com> 1.2.4-0.3.rc1
|
||||
- codes are under MIT
|
||||
- pkg-config cflags return fix
|
||||
- epsg_csv ownership
|
||||
|
||||
* Mon Jul 23 2007 Balint Cristian <cbalint@redhat.com> 1.2.4-0.2.rc1
|
||||
- fix debuginfo usability
|
||||
- move header files to the subdirectory
|
||||
- specify the full URL of the source
|
||||
- leave *.inc headers included
|
||||
- libgeotiff-devel should require libtiff-devel
|
||||
- works to keep timestamps on the header files installed
|
||||
- docs proper triage
|
||||
|
||||
* Mon Jul 23 2007 Balint Cristian <cbalint@redhat.com> 1.2.4-0.1.rc1
|
||||
- initial pack for fedora
|
||||
- add pkgconfig file
|
||||
- add soname versioning patch
|
Loading…
Reference in New Issue
Block a user