source: projects/specs/trunk/p/perl-DBD-Pg/perl-DBD-Pg-vl.spec @ 3202

Revision 3202, 2.9 KB checked in by iwaim, 13 years ago (diff)

perl-DBD-Pg-2.18.0-1

Line 
1Summary: the DBI PostgreSQL interface for Perl
2Name: perl-DBD-Pg
3Version: 2.18.0
4Release: 1%{?_dist_release}
5License: GPL or Artistic
6Group: Development/Libraries
7Source0: http://search.cpan.org/CPAN/authors/id/D/DB/DBDPG/DBD-Pg-%{version}.tar.gz
8Source1: filter-requires-perl-DBD-Pg.sh
9Patch0:perl-DBD-1.31-fixver.patch
10
11Url: http://search.cpan.org/author/DWHEELER/DBD-Pg/
12BuildRoot: %{_tmppath}/%{name}-%{version}-root
13BuildRequires: perl >= 5.004, postgresql-devel, perl-DBI
14Requires: perl >= 5.004
15
16%define __perl_requires %{SOURCE1}
17
18Vendor: Project Vine
19Distribution: Vine Linux
20
21%description
22the DBI PostgreSQL interface for Perl
23
24%prep
25%setup -q -n DBD-Pg-%{version}
26
27%patch0 -p1 -b .fixver
28
29%build
30export POSTGRES_INCLUDE=%{_includedir}/pgsql
31export POSTGRES_LIB=%{_libdir}
32CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
33make
34
35%check
36make test
37
38%clean
39rm -rf %{buildroot}
40
41%install
42rm -rf %{buildroot}
43#mkdir -p %{buildroot}%{_prefix}
44#make INSTALLSITEARCH=%{buildroot}%{perl_sitearch} \
45#     INSTALLSITEMAN3DIR=%{buildroot}%{_mandir}/man3  \
46#     install
47
48make DESTDIR=$RPM_BUILD_ROOT install
49
50find %{buildroot}%{_prefix} -type f -print |
51        sed "s@^%{buildroot}@@g" |
52        grep -v ^%{_mandir} |
53        grep -v perllocal.pod |
54        grep -v "\.packlist" > %{name}.files
55if [ "$(cat %{name}.files)X" = "X" ] ; then
56    echo "ERROR: EMPTY FILE LIST"
57    exit -1
58fi
59
60%files -f %{name}.files
61%defattr(-,root,root)
62%doc README Changes
63%dir %{perl_vendorarch}/DBD
64%dir %{perl_vendorarch}/auto/DBD
65%dir %{perl_vendorarch}/auto/DBD/Pg
66%{_mandir}/*/*
67
68%changelog
69* Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.18.0-1
70- new upstream release
71- drop  CVE-2009-0663, 1341 patch (Patch1): upstream fixed
72- add requires filter (Source1)
73- add Vendor and Distribution tags
74
75* Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 1.49-5
76- rebuilt with postgresql-8.4.0
77
78* Sat May 16 2009 Satoshi IWMAOTO <satoshi.iwamoto@nifty.ne.jp> 1.49-4vl5
79- add patch0 from rhel5
80- add patch1 to fix CVE-2009-0663, 1341
81- 2vl5,3vl5 are skipped to Plus < Seed version number...
82
83* Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 1.49-1vl5
84- applied new versioning policy
85- rebuilt with postgresql-8.3.3
86
87* Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 1.49-0vl5
88- rebuilt with postgresql-8.2.6
89
90* Wed Sep 19 2007 Shu KONNO <owa@bg.wakwak.com> 1.49-0vl4
91- rebuilt with postgresql-8.2.5
92
93* Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.49-0vl1
94- new upstream release
95- rebuilt with perl-5.8.6, perl-DBI-1.51
96- changed Group to Development/Libraries
97- installed files to vendor_perl
98
99* Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 1.22-0vl3
100- rebuilt for VineSeed
101        -- built with perl-5.8.6, perl-DBI-1.46
102
103* Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 1.22-0vl2
104- rebuilt for VineLinux-3.1
105        -- built with perl-5.8.2, perl-DBI-1.46
106
107* Sat May 24 2003 IWAI Masaharu <iwai@alib.jp> 1.22-0vl1
108- first build for Vine Linux
109
Note: See TracBrowser for help on using the repository browser.