Blame SPECS/tcl-pgtcl.spec

e61410
Name:		tcl-pgtcl
e61410
Version:	2.0.0
e61410
Release:	3%{?dist}
e61410
Summary:	A Tcl client library for PostgreSQL
e61410
e61410
Group:		Applications/Databases
e61410
URL:		http://sourceforge.net/projects/pgtclng/
e61410
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
e61410
# recognizes it as an independent license, so we do as well.
e61410
License: PostgreSQL
e61410
e61410
Source0:	http://downloads.sourceforge.net/pgtclng/pgtcl%{version}.tar.gz
e61410
# Note that for some reason docs are date-labeled not version-labeled
e61410
Source1:	http://downloads.sourceforge.net/pgtclng/pgtcldocs-20110918.zip
e61410
e61410
Patch1:		pgtcl-no-rpath.patch
e61410
e61410
Provides:	pgtcl = %{version}-%{release}
e61410
# pgtcl was originally shipped as a sub-RPM of the PostgreSQL package;
e61410
# these Provides/Obsoletes give a migration path.  Note there is no
e61410
# intention of changing the version numbers in future.
e61410
Provides:	postgresql-tcl = 8.5.0-1
e61410
Obsoletes:	postgresql-tcl < 8.5
e61410
e61410
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
e61410
e61410
BuildRequires:	postgresql-devel tcl-devel
e61410
BuildRequires:	autoconf
e61410
e61410
Requires:	tcl(abi) >= 8.5
e61410
e61410
%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)}
e61410
%{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}}
e61410
e61410
%description
e61410
PostgreSQL is an advanced Object-Relational database management system.
e61410
The tcl-pgtcl package contains Pgtcl, a Tcl client library for connecting
e61410
to a PostgreSQL server.
e61410
e61410
%prep
e61410
%setup -q -n pgtcl%{version}
e61410
e61410
unzip %{SOURCE1}
e61410
PGTCLDOCDIR=`basename %{SOURCE1} .zip`
e61410
mv $PGTCLDOCDIR Pgtcl-docs
e61410
e61410
%patch1 -p1
e61410
e61410
autoconf
e61410
e61410
%build
e61410
e61410
%configure --libdir=%{tcl_sitearch} --with-tcl=%{_libdir}
e61410
e61410
# note: as of pgtcl 1.5.2, its makefile is not parallel-safe
e61410
make all
e61410
e61410
%install
e61410
rm -rf $RPM_BUILD_ROOT
e61410
e61410
make install DESTDIR=$RPM_BUILD_ROOT
e61410
# we don't really need to ship the .h file
e61410
rm -f $RPM_BUILD_ROOT%{_includedir}/libpgtcl.h
e61410
e61410
%clean
e61410
rm -rf $RPM_BUILD_ROOT
e61410
e61410
%files
e61410
%defattr(-,root,root,-)
e61410
%{_libdir}/tcl%{tcl_version}/pgtcl%{version}/
e61410
%doc Pgtcl-docs/*
e61410
e61410
%changelog
e61410
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-3
e61410
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e61410
e61410
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2
e61410
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e61410
e61410
* Sun Feb  5 2012 Tom Lane <tgl@redhat.com> 2.0.0-1
e61410
- Update to pgtcl 2.0.0
e61410
- Update URLs to reference new project site at sourceforge
e61410
e61410
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-3
e61410
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e61410
e61410
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-2
e61410
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e61410
e61410
* Wed Dec 29 2010 Tom Lane <tgl@redhat.com> 1.8.0-1
e61410
- Update to pgtcl 1.8.0.
e61410
- Relabel license as PostgreSQL now that that's separately recognized by OSI.
e61410
e61410
* Thu Jan 21 2010 Tom Lane <tgl@redhat.com> 1.6.2-3
e61410
- Correct Source: tags and comment to reflect how to get the tarball.
e61410
e61410
* Tue Nov 24 2009 Tom Lane <tgl@redhat.com> 1.6.2-2
e61410
- Fix License tag as per discussion in PyGreSQL package review request.
e61410
Related: #452321
e61410
e61410
* Fri Jun 20 2008 Tom Lane <tgl@redhat.com> 1.6.2-1
e61410
- Created package by stripping down postgresql specfile and adjusting
e61410
  to meet current packaging guidelines for Tcl extensions.