spec cleanup

epel9
Dan Horák 9 years ago
parent c8aef09fb2
commit 3787e9af96

@ -8,7 +8,6 @@ URL: http://ogdi.sourceforge.net/
Source0: http://dl.sourceforge.net/ogdi/%{name}-%{version}.beta2.tar.gz Source0: http://dl.sourceforge.net/ogdi/%{name}-%{version}.beta2.tar.gz
Source1: http://ogdi.sourceforge.net/ogdi.pdf Source1: http://ogdi.sourceforge.net/ogdi.pdf
Patch0: ogdi-3.2.0.beta2-projfix.patch Patch0: ogdi-3.2.0.beta2-projfix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
BuildRequires: unixODBC-devel zlib-devel BuildRequires: unixODBC-devel zlib-devel
BuildRequires: expat-devel proj-devel tcl-devel BuildRequires: expat-devel proj-devel tcl-devel
@ -23,6 +22,7 @@ geospatial data products over any TCP/IP network, and a
driver-oriented approach to facilitate access to several geospatial driver-oriented approach to facilitate access to several geospatial
data products/formats. data products/formats.
%package devel %package devel
Summary: OGDI header files and documentation Summary: OGDI header files and documentation
Group: Development/Libraries Group: Development/Libraries
@ -33,6 +33,7 @@ Requires: zlib-devel expat-devel proj-devel
%description devel %description devel
OGDI header files and developer's documentation. OGDI header files and developer's documentation.
%package odbc %package odbc
Summary: ODBC driver for OGDI Summary: ODBC driver for OGDI
Group: System Environment/Libraries Group: System Environment/Libraries
@ -41,6 +42,7 @@ Requires: %{name} = %{version}-%{release}
%description odbc %description odbc
ODBC driver for OGDI. ODBC driver for OGDI.
%package tcl %package tcl
Summary: TCL wrapper for OGDI Summary: TCL wrapper for OGDI
Group: System Environment/Libraries Group: System Environment/Libraries
@ -49,6 +51,7 @@ Requires: %{name} = %{version}-%{release}
%description tcl %description tcl
TCL wrapper for OGDI. TCL wrapper for OGDI.
%prep %prep
%setup -q -n %{name}-%{version}.beta2 %setup -q -n %{name}-%{version}.beta2
%patch0 -p1 -b .projfix %patch0 -p1 -b .projfix
@ -56,8 +59,8 @@ TCL wrapper for OGDI.
# include documentation # include documentation
cp -p %{SOURCE1} . cp -p %{SOURCE1} .
%build
%build
TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
INST_LIB=%{_libdir}/;export INST_LIB INST_LIB=%{_libdir}/;export INST_LIB
export CFG=debug # for -g export CFG=debug # for -g
@ -73,7 +76,7 @@ export CFLAGS="$OPT_FLAGS -fPIC -DPIC -DDONT_TD_VOID -DUSE_TERMIO"
# WARNING !!! # WARNING !!!
# using %{?_smp_mflags} may break build # using %{?_smp_mflags} may break build
make make
# build tcl interface # build tcl interface
make -C ogdi/tcl_interface \ make -C ogdi/tcl_interface \
@ -87,9 +90,8 @@ ODBC_LINKLIB="-lodbc"
make -C ogdi/attr_driver/odbc \ make -C ogdi/attr_driver/odbc \
ODBC_LINKLIB="-lodbc" ODBC_LINKLIB="-lodbc"
%install
rm -rf %{buildroot}
%install
# export env # export env
TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
@ -111,9 +113,9 @@ rm %{buildroot}%{_bindir}/example?
# we have multilib ogdi-config # we have multilib ogdi-config
%if "%{_lib}" == "lib" %if "%{_lib}" == "lib"
%define cpuarch 32 %global cpuarch 32
%else %else
%define cpuarch 64 %global cpuarch 64
%endif %endif
# fix file(s) for multilib issue # fix file(s) for multilib issue
@ -129,7 +131,7 @@ cat > %{buildroot}%{_bindir}/%{name}-config <<EOF
ARCH=\$(uname -m) ARCH=\$(uname -m)
case \$ARCH in case \$ARCH in
x86_64 | ppc64 | ia64 | s390x | sparc64 | alpha | alphaev6 ) x86_64 | ppc64 | ppc64le | ia64 | s390x | sparc64 | alpha | alphaev6 | aarch64 )
ogdi-config-64 \${*} ogdi-config-64 \${*}
;; ;;
*) *)
@ -140,14 +142,12 @@ EOF
chmod 755 %{buildroot}%{_bindir}/%{name}-config chmod 755 %{buildroot}%{_bindir}/%{name}-config
touch -r ogdi-config.in %{buildroot}%{_bindir}/%{name}-config touch -r ogdi-config.in %{buildroot}%{_bindir}/%{name}-config
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-)
%doc LICENSE NEWS ChangeLog README %doc LICENSE NEWS ChangeLog README
%{_bindir}/gltpd %{_bindir}/gltpd
%{_bindir}/ogdi_* %{_bindir}/ogdi_*
@ -158,7 +158,6 @@ rm -rf %{buildroot}
%{_libdir}/%{name}/lib*.so %{_libdir}/%{name}/lib*.so
%files devel %files devel
%defattr(-,root,root,-)
%doc ogdi.pdf %doc ogdi.pdf
%doc ogdi/examples/example1/example1.c %doc ogdi/examples/example1/example1.c
%doc ogdi/examples/example2/example2.c %doc ogdi/examples/example2/example2.c
@ -170,13 +169,12 @@ rm -rf %{buildroot}
%{_libdir}/libogdi.so %{_libdir}/libogdi.so
%files odbc %files odbc
%defattr(-,root,root,-)
%{_libdir}/%{name}/liblodbc.so %{_libdir}/%{name}/liblodbc.so
%files tcl %files tcl
%defattr(-,root,root,-)
%{_libdir}/%{name}/libecs_tcl.so %{_libdir}/%{name}/libecs_tcl.so
%changelog %changelog
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-0.25.beta2 * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-0.25.beta2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

Loading…
Cancel
Save