|
|
|
@ -27,7 +27,6 @@ Design goals:
|
|
|
|
|
Summary: Development Libraries for FreeXL
|
|
|
|
|
|
|
|
|
|
Requires: freexl%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The freexl-devel package contains libraries and header files for
|
|
|
|
@ -37,6 +36,13 @@ developing applications that use freexl.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
# We want to install a “clean” version of the examples
|
|
|
|
|
mkdir -p clean
|
|
|
|
|
cp -rp examples clean/
|
|
|
|
|
# Automake files don’t work without a configure.ac; don’t bother installing
|
|
|
|
|
# them.
|
|
|
|
|
rm -vf clean/examples/Makefile.*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --enable-gcov=no --disable-static
|
|
|
|
@ -46,28 +52,19 @@ make %{?_smp_mflags}
|
|
|
|
|
# Preserve date of header file
|
|
|
|
|
sed -i 's/^INSTALL_HEADER = \$(INSTALL_DATA)/& -p/' headers/Makefile.in
|
|
|
|
|
|
|
|
|
|
# Generate HTML documentation and clean unused installdox script
|
|
|
|
|
# Generate HTML documentation
|
|
|
|
|
doxygen
|
|
|
|
|
rm -f html/installdox
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
# Clean up
|
|
|
|
|
pushd examples
|
|
|
|
|
make clean
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
|
|
# Delete undesired libtool archives
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/libfreexl.la
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
find '%{buildroot}' -type f -name '*.la' -print -delete
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
@ -79,7 +76,7 @@ rm -f %{buildroot}%{_libdir}/libfreexl.la
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc examples
|
|
|
|
|
%doc clean/examples
|
|
|
|
|
%doc html
|
|
|
|
|
|
|
|
|
|
%{_includedir}/freexl.h
|
|
|
|
|