File podofo.spec of Package podofo
# norootforbuild
Name: podofo
Version: 0.6.0
Release: 0
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: freetype2-devel fontconfig-devel zlib-devel libjpeg-devel gcc-c++ libtiff-devel openssl-devel
BuildRequires: cmake >= 2.5
Group: Development/Libraries
Summary: PDF parsing and creation library
Source0: %{name}-%{version}.tar.bz2
%define prefix /usr
%description
A cross platform PDF parsing and creation library. Podofo also
includes some command line tools for working with PDF files.
%package -n libpodofo0_6_0
License: LGPL
Summary: PDF parsing and creation library
Group: Development/Libraries
%description -n libpodofo0_6_0
A cross platform PDF parsing and creation library. Podofo also
includes some command line tools for working with PDF files.
%package devel
Requires: libodofo0_6_0 = %{version}
Summary: Development files for podofo
Group: Development/Libraries
License: LGPL
Autoreqprov: on
#PreReq: %install_info_prereq
%description devel
Devel package for podofo library
%prep
%setup -q -n %{name}-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$CFLAGS"
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%prefix -DPODOFO_BUILD_STATIC=FALSE ../
%if 0%{?suse_version} > 100
cmake ../ -DCMAKE_INSTALL_PREFIX=%prefix -DPODOFO_BUILD_STATIC=FALSE -DPODOFO_USE_VISIBILITY=1
%endif
%ifarch x86_64 ppc64 s390x mips64 sparc64
cmake -DWANT_LIB64=1 DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} ../
%endif
make %{?jobs:-j %jobs}
# this fail if in the install section. Don't ask.
make -e DESTDIR=$RPM_BUILD_ROOT install
%install
#make install
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%{_bindir}/*
%files -n libpodofo0_6_0
%defattr(-,root,root)
%{_libdir}/libpodofo.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/podofo
#%{_libdir}/libpodofo.*a
%{_libdir}/libpodofo.so
%post -n libpodofo0_6_0 -p /sbin/ldconfig
%postun -n libpodofo0_6_0 -p /sbin/ldconfig
%changelog -n
* Sun Oct 05 2008 hub@figuiere.net
- Package closer to policies: split.
* Mon Jul 15 2008 <mrdocs at opensuse.org>
- 0.6 release
* Sat Jul 12 2008 <mrdocs at opensuse.org>
- new svn snapshot of upcoming 0.6.0
- add openssl-devel dependency
- 64 bit builds fixed
* Mon Aug 27 2007 <mrdocs at scribus.info>
- enable debug package
* Wed Aug 08 2007 <mrdocs at scribus.info>
- revert back to 0.5.0 as the API is unstable
* Tue Aug 01 2007 <mrdocs at scribus.info>
- new svn snapshot with 64 bit build support
* Thu Jul 26 2007 <mrdocs at scribus.info>
- version upgrade
- use cmake as autotools are no longer supported
* Tue Dec 26 2006 - Bernhard Walle <bwalle@suse.de>
- initial package