Name: liborigin Version: 20071119 Release: 2%{?dist} Summary: Library for reading OriginLab OPJ project files License: GPLv2 Group: Development/Libraries URL: http://sourceforge.net/projects/%{name}/ Source: http://belnet.dl.sourceforge.net/sourceforge/liborigin/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: cmake Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description A library for reading OriginLab OPJ project files. %package devel Summary: Header files, libraries and development documentation for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %prep %setup -q %build # fix for hardcoded path of %{_libdir} %ifarch x86_64 sparc64 ppc64 amd64 %{__sed} -i "s|install(TARGETS origin DESTINATION lib)|install(TARGETS origin DESTINATION lib64)|" CMakeLists.txt %endif %cmake %{__make} VERBOSE=1 %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} INSTALL="install -p" DESTDIR=%{buildroot} install install -d %{buildroot}%{_includedir}/%{name}/ install -pm 644 OPJFile.h tree.hh %{buildroot}%{_includedir}/%{name}/ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc COPYING README ws4.opj import.qs %{_bindir}/opj2dat %{_libdir}/%{name}.so.0* %files devel %defattr(-,root,root,-) %{_includedir}/%{name}/ %{_libdir}/%{name}.so %changelog * Mon Feb 18 2008 Fedora Release Engineering - 20071119-2 - Autorebuild for GCC 4.3 * Fri Jan 18 2008 Chitlesh Goorah - 20071119-1 - New upstream release - fix for hardcoded path of %%{_libdir} - opted cmake during the build process * Thu Aug 23 2007 Chitlesh Goorah - 20070115-4 - queued for mass rebuild for Fedora 8 - BuildID * Tue Jan 30 2007 Chitlesh Goorah - 20070115-3 - Fix directory ownership for -devel package * Sat Jan 27 2007 Chitlesh Goorah - 20070115-2 - Added fix for hardcoded path of %%{_libdir} - Added $$RPM_OPT_FLAGS to Makefile.LINUX * Sat Jan 20 2007 Chitlesh Goorah - 20070115-1 - Initial package