# Copyright (c) 2002-2009 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # # $Id: Bivio-bOP.spec,v 1.19 2011/03/02 20:52:26 nagler Exp $ # Name: Bivio-bOP Summary: Perl application development framework for information systems Group: Development/Libraries Provides: Bivio-bOP License: LGPL Version: 11.49 Release: 1 Source0: http://www.bivio.biz/f/bOP/%{name}-%{version}.tar.gz BuildRoot: %{_builddir}/%{name} %define files_list %{_builddir}/%{name}-%{version}-%{release}-files.list %description bivio OLTP Platform (bop) is an open source application development framework primarily focused on information systems. The architecture is layered, so you can use just a little bit, the whole thing, or somewhere in between. bOP has about 900 Perl classes. %prep [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %setup -b 0 -q %build umask 022 perl Makefile.PL make POD2MAN=true perl -I lib -w bin/b-pod to_html lib html chmod -R a+rX html %install umask 022 make $(perl -MConfig -e " foreach \$y ( grep(\$_ =~ /^install(?!style)/ && \$Config::Config{\$_} && \$Config::Config{\$_} =~ m{^/}, sort(keys(%Config::Config))), ) { print uc(\$y) . qq{=$RPM_BUILD_ROOT\$Config::Config{\$y} }; } ") POD2MAN=true pure_install find $RPM_BUILD_ROOT -name "*.bs" \ -o -name .packlist -o -name perllocal.pod | xargs rm -f datadir=$RPM_BUILD_ROOT/%{_datadir} mkdir -p $datadir ln -s %{name}-%{version} $datadir/%{name} datadir=$datadir/%{name}-%{version} mkdir -p $datadir cp -a LICENSE README html files contrib emacs $datadir (cd $RPM_BUILD_ROOT; find ./usr \( -type l -o -type f \) -print) \ | egrep -v 'files.list$' \ | sed -e 's/^\.//' > %{files_list} %files -f %{files_list} %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT rm -f %{files_list} %post %postun