File: pgadmin3.spec

package info (click to toggle)
pgadmin3 1.20.0~beta2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 73,704 kB
  • ctags: 18,591
  • sloc: cpp: 193,786; ansic: 18,736; sh: 5,154; pascal: 1,120; yacc: 927; makefile: 516; lex: 421; xml: 126; perl: 40
file content (85 lines) | stat: -rw-r--r-- 2,571 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
%define name		pgadmin3
%define major_version 	1.20.0-beta2
%define minor_version 	1mdk
%define wxGTK2_version 	2.6.0
%define withwxconfig 	wx-config
%define desktop_vendor 	pgadmin
%define debug_package 	%{nil}
%define __os_install_post /usr/lib/rpm/brp-compress

Summary:	Graphical client for PostgreSQL.
Name: 		%{name}
Version:	%{major_version}
Release:	%{minor_version}
License: 	BSD
Group: 		Databases
Source: 	%{name}-%{major_version}.tar.bz2
URL: 		http://www.pgadmin.org/
Packager: 	pgAdmin project <pgadmin-hackers@postgresql.org>
BuildRoot: 	%{_tmppath}/%{name}-root
BuildRequires:  postgresql postgresql-devel

#BuildRequires: wxGTK2ud >= 2.6-%{wxGTK2_version}, wxGTK2ud-devel >= 2.6-%{wxGTK2_version}, wxGTK2ud-stc >= 2.6-%{wxGTK2_version}, wxGTK2ud-xrc >= 2.6-%{wxGTK2_version}

%description
PostgreSQL Tools.

%prep
%setup -q

%build
export CFLAGS=""
export CXXFLAGS=""
%ifarch x86_64 amd64
%configure --with-wx-config=%{withwxconfig} --with-wx=/usr --with-ssl LDFLAGS=-L/usr/X11R6/lib64
%else
%configure --with-wx-config=%{withwxconfig} --with-wx=/usr --with-ssl
%endif
make all

%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
#strip --strip-debug %{buildroot}/%{_bindir}/%{name}

cp -f ./pgadmin/include/images/pgAdmin3.png %{buildroot}/%{_datadir}/%{name}/%{name}.png
cp -f ./pkg/%{name}.desktop %{buildroot}/%{_datadir}/%{name}/%{name}.desktop

mkdir -p %{buildroot}/%{_datadir}/applications

desktop-file-install --vendor %{desktop_vendor} --delete-original  --dir %{buildroot}/%{_datadir}/applications --add-category X-Red-Hat-Base --add-category Application --add-category Development %{buildroot}/%{_datadir}/%{name}/%{name}.desktop

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root, 755 )
%doc LICENCE.txt README.txt BUGS.txt
%doc docs/en_US/*
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications

%changelog
* Thur Feb 10 2005 Dave Page <dpage@pgadmin.org>
- 1.2.0
- Add 64 bit libs per Vasilev Max

* Tue Dec 3 2004 Hugo Ferreira <hmf at inescporto.pt>
- 1.2.0 
- Some changes for MDK 10.1 (name, BuildRequires, minor_version to 1mdk  and 
  Group to Databases). Checked w/ rpmlint. Still has problems.

* Wed Nov 17 2004 Devrim GUNDUZ <devrim@gunduz.org>
- 1.2.0 RC2 

* Mon Nov 15 2004 Devrim GUNDUZ <devrim@gunduz.org>
- 1.2.0 RC1 rebuilt
- Fixed spec file so that beta and rc tags will be considered. (Note: AFAICS my previous rpms were broken :( )

* Thu Nov 4 2004 Devrim GUNDUZ <devrim@gunduz.org>
- 1.2.0 RC1

* Mon Jun 10 2003 Jean-Michel POURE <pgadmin-hackers@postgresql.org>
- 1.2.0 Initial build