rendered paste body cat refdb.spec
%define name refdb
%define rel pre7
%define version 0.9.7
%define release %mkrel 0.%{rel}.1
%define major 0
%define libname %mklibname %{name} %{major}
Summary: RefDB is a reference database and bibliography tool for SGML, XML, and LaTeX documents
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://refdb.sourceforge.net/pre/refdb-%{version}-%{rel}.tar.bz2
Source1: refdb-README.urpmi
License: GPL
Group: Sciences/Computer science
Url: http://refdb.sourceforge.net
Requires: libreadline5
Requires: libdbi0
Requires: libexpat0
Buildrequires: btparse
Buildrequires: libdbi0-devel
Buildrequires: libdbi-drivers-dbd-pgsql
Buildrequires: libexpat0-devel
Buildrequires: libreadline5-devel
#Buildrequires: docbook-style-xsl
#Buildrequires: openjade
#Buildrequires: tei-xsl
#Buildrequires: libxslt-proc
#Buildrequires: tidy
Buildrequires: perl(MARC::Charset)
Buildrequires: perl(MARC::Record)
Buildrequires: perl(RefDB)
Buildrequires: perl(Term::Clui)
Buildrequires: perl(Text::Iconv)
Buildrequires: perl(XML::Parser)
BuildRoot: %{_tmppath}/%{name}-%{version}
%description
RefDB is a reference database and bibliography tool for
SGML, XML, and LaTeX documents, sort of a Reference
Manager or BibTeX for markup languages. It is portable and
known to run on Linux, FreeBSD, and Windows/Cygwin.
%package -n %{name}-clients
Summary: Clients for using %{name}
Group: Networking/Remote access
%description -n %{name}-clients
Clients allowing to connect to the refdb server.
%package -n %{libname}
Summary: RefDB shared libraries
Group: System/Libraries
%description -n %{libname}
RefDB is a reference database and bibliography tool for
SGML, XML, and LaTeX documents, sort of a Reference
Manager or BibTeX for markup languages. It is portable and
known to run on Linux, FreeBSD, and Windows/Cygwin.
RefDB libraries
%package -n %{libname}-devel
Summary: Headers for developing programs that will use %{name}
Group: Development/C
Requires: %{libname} = %{version}
Provides: %{name}-devel = %{version}-%{release}
Provides: lib%{name}-devel = %{version}-%{release}
%description -n %{libname}-devel
This package contains the headers that programmers will need to develop
applications which will use %{name}.
%prep
%setup -q -n %{name}-%{version}-%{rel}
cp %{SOURCE1} README.urpmi
%build
%configure --disable-docs --disable-rpath
%make
%install
#%{__rm} -rf $RPM_BUILD_ROOT
#mkdir -p $RPM_BUILD_ROOT/%{_mandir}
#%{_install} man/*.1 $RPM_BUILD_ROOT/%{_mandir}
#%{_install} man/*.8 $RPM_BUILD_ROOT/%{_mandir}
#mkdir -p $RPM_BUILD_ROOT/%{_includedir}/%{libname}
#%{_install} src/*.c $RPM_BUILD_ROOT/%{_includedir}/%{libname}
#%{_install} src/*.h $RPM_BUILD_ROOT/%{_includedir}/%{libname}
%makeinstall_std
%clean
#%{__rm} -rf $RPM_BUILD_ROOT
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%defattr(-,root,root,0755)
%{_bindir}/*
%{_datadir}/refdb/*
%{_sysconfdir}/refdb/*
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README UPGRADING
%files -n %{name}-clients
%defattr(-,root,root,0755)
%{_bindir}/refdbc
%{_bindir}/refdba
%{_bindir}/refdbib
%files -n %{libname}
%defattr(-,root,root,0755)
%{_libdir}/
%files -n %{libname}-devel
%defattr(-,root,root,0755)
%{_includedir}/*
%{_mandir}/*/*
%doc doc
%changelog
* Wed Jun 21 2006 Stéphane Téletchéa <steletch@mandriva.org> 0.9.7-pre7-1mdv2007.0
- Initial release, with rpm construction taken from Markus Pilzecker <mp@dfki.de>'s work, and others
- Disable docs building since it is already provided in the archive (and causing build problems)