72f2de7
Summary:	Graphical client for PostgreSQL
72f2de7
Name:		pgadmin3
819bbe7
Version:	1.22.1
e4476e9
Release:	1%{?dist}
da66fc2
License:	PostgreSQL
cvsextras 90cdfb9
Group:		Applications/Databases
819bbe7
Source:		http://download.postgresql.org/pub/pgadmin3/release/v%{version}/src/%{name}-%{version}.tar.gz
5179cd4
Patch0:		%{name}-1.14.2-cflags.patch
0389261
Patch2:		%{name}-desktop.patch
72f2de7
URL:		http://www.pgadmin.org/
72f2de7
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c2017dc
BuildRequires:	wxGTK-devel postgresql-devel desktop-file-utils openssl-devel libxml2-devel libxslt-devel
c2017dc
Requires:	wxGTK
cvsextras 90cdfb9
cvsextras 90cdfb9
%description
c2017dc
pgAdmin III is a powerful administration and development
c2017dc
platform for the PostgreSQL database, free for any use.
c2017dc
It is designed to answer the needs of all users,
c2017dc
from writing simple SQL queries to developing complex
c2017dc
databases. The graphical interface supports all PostgreSQL
c2017dc
features and makes administration easy.
c2017dc
819bbe7
pgAdmin III is designed to answer the needs of all users,
819bbe7
from writing simple SQL queries to developing complex databases.
819bbe7
The graphical interface supports all PostgreSQL features and
819bbe7
makes administration easy. The application also includes a syntax
819bbe7
highlighting SQL editor, a server-side code editor, an
819bbe7
SQL/batch/shell job scheduling agent, support for the Slony-I
819bbe7
replication engine and much more. No additional drivers are
c2017dc
required to communicate with the database server.
c2017dc
cvsextras 90cdfb9
%prep
cvsextras 90cdfb9
%setup -q
5179cd4
%patch0 -p1
0389261
%patch2 -p0
cvsextras 90cdfb9
cvsextras 90cdfb9
%build
a5a7930
export LIBS="-lwx_gtk2u_core-2.8"
b671f06
%configure --disable-debug --disable-dependency-tracking --with-wx-version=2.8 --with-wx=%{_prefix}
c2017dc
make %{?_smp_mflags} all
cvsextras 90cdfb9
cvsextras 90cdfb9
%install
8f5272c
rm -rf %{buildroot}
8f5272c
make DESTDIR=%{buildroot} install
8f5272c
0389261
mkdir -p %{buildroot}%{_datadir}/%{name}/
8f5272c
cp -f ./pkg/debian/pgadmin3.xpm %{buildroot}/%{_datadir}/%{name}/%{name}.xpm
8f5272c
8f5272c
mkdir -p %{buildroot}/%{_datadir}/applications
8f5272c
8f5272c
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
8f5272c
%if 0%{?rhel}
8f5272c
	--vendor="" \
8f5272c
%endif
8f5272c
	--add-category Development pkg/%{name}.desktop
cvsextras 90cdfb9
8f5272c
# Convert changelog, fix incorrect end-of-line encoding
8f5272c
iconv -f iso-8859-1 -t utf-8 -o CHANGELOG.utf8 CHANGELOG
8f5272c
sed -i 's/\r$//' CHANGELOG.utf8
8f5272c
touch -c -r CHANGELOG CHANGELOG.utf8
8f5272c
mv -f CHANGELOG.utf8 CHANGELOG
cvsextras 90cdfb9
8f5272c
# Remove unwanted and double files
8f5272c
rm -f docs/{Docs.vcproj,builddocs.bat}
8f5272c
rm -f %{buildroot}%{_datadir}/%{name}/i18n/{*,.}/wxstd.mo
cvsextras 90cdfb9
8f5272c
# Move locales to their correct place
8f5272c
mkdir -p %{buildroot}%{_datadir}/locale
8f5272c
mv -f %{buildroot}%{_datadir}/%{name}/i18n/??_?? %{buildroot}%{_datadir}/locale
8f5272c
8f5272c
%find_lang %{name}
cvsextras 90cdfb9
cvsextras 90cdfb9
%clean
8f5272c
rm -rf %{buildroot}
cvsextras 90cdfb9
8f5272c
%files -f %{name}.lang
8f5272c
%defattr(-,root,root)
8f5272c
%doc BUGS CHANGELOG LICENSE README docs/*
cvsextras 90cdfb9
%{_bindir}/*
cvsextras 90cdfb9
%{_datadir}/%{name}
cvsextras 90cdfb9
%{_datadir}/applications/*
cvsextras 90cdfb9
cvsextras 90cdfb9
%changelog
819bbe7
* Wed Feb 17 2016 Devrim GUNDUZ <devrim@gunduz.org> 1.22.1-1
819bbe7
- Update to 1.22.1
819bbe7
- Update download URL
819bbe7
bf203a6
* Mon Dec 22 2014 Devrim GUNDUZ <devrim@gunduz.org> 1.20.0-1
bf203a6
- Update to 1.20.0
bf203a6
- Update download URL -- community will deprecate FTP service.
bf203a6
cf55778
* Tue Oct 8 2013 Devrim GUNDUZ <devrim@gunduz.org> 1.18.1-1
cf55778
- Update to 1.18.1
cf55778
b111fd1
* Wed Sep 11 2013 Devrim GUNDUZ <devrim@gunduz.org> 1.18.0-1
b111fd1
- Update to 1.18.0
b111fd1
- Trim changelog
b111fd1
e4476e9
* Fri Jan 25 2013 Devrim GUNDUZ <devrim@gunduz.org> 1.16.1-1
e4476e9
- Update to 1.16.1
e4476e9
da66fc2
* Mon Oct 29 2012 Devrim GUNDUZ <devrim@gunduz.org> 1.16.0-2
da66fc2
- Update licence, per bz #871183.
da66fc2
2af60a6
* Sun Oct 28 2012 Devrim GUNDUZ <devrim@gunduz.org> 1.16.0-1
2af60a6
- Update to 1.16.0
2af60a6
0bfc558
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.2-3
0bfc558
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0bfc558
5179cd4
* Fri May 11 2012 Ville Skyttä <ville.skytta@iki.fi> - 1.14.2-2
5179cd4
- Fix -debuginfo (#746349).
5179cd4
6dee38f
* Thu May 10 2012 Devrim GUNDUZ <devrim@gunduz.org> 1.14.2-1
6dee38f
- Update to 1.14.2
6dee38f
720bbac
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.0-2
720bbac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
720bbac
316833e
* Thu Oct 13 2011 Devrim GUNDUZ <devrim@gunduz.org> 1.14.0-1
316833e
- Update to 1.14.0
316833e
581b43d
* Tue Apr 19 2011 Devrim GUNDUZ <devrim@gunduz.org> 1.12.3-1
581b43d
- Update to 1.12.3
581b43d
316833e
* Wed Feb 23 2011 Devrim GUNDUZ <devrim@gunduz.org> 1.12.2-3
0389261
- Actually install desktop file.
0389261
0389261
* Tue Feb 15 2011 Devrim GUNDUZ <devrim@gunduz.org> 1.12.2-2
553cc66
- Update to 1.12.2
553cc66
8c220d9
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.5-2
8c220d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8c220d9
5819dac
* Tue Aug 3 2010 Devrim GUNDUZ <devrim@gunduz.org> 1.10.5-1
5819dac
- Update to 1.10.5
5819dac
22a5e30
* Wed Jul 14 2010 Dan Horák <dan@danny.cz> - 1.10.3-3
22a5e30
- rebuilt against wxGTK-2.8.11-2
22a5e30
a994f81
* Tue Jun 15 2010 Michel Salim <salimma@fedoraproject.org> - 1.10.3-2
a994f81
- Ship the hints files (bz #513039)
a994f81
4dcdacd
* Thu May 13 2010 Devrim GUNDUZ <devrim@gunduz.org> 1.10.3-1
4dcdacd
- Update to 1.10.3
4dcdacd
88c76f0
* Mon Mar 15 2010 Devrim GUNDUZ <devrim@gunduz.org> 1.10.2-1
88c76f0
- Update to 1.10.2
88c76f0
7fe7514
* Thu Dec 3 2009 Devrim GUNDUZ <devrim@gunduz.org> 1.10.1-1
7fe7514
- Update to 1.10.1
7fe7514
58b26e6
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-2
58b26e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
58b26e6
8f5272c
* Mon Jun 29 2009 Devrim GUNDUZ <devrim@gunduz.org> 1.10.0-1
8f5272c
- Update to 1.10.0
8f5272c
- Update licence
8f5272c
- Incorporate some changes from rpmfusion:
8f5272c
  Corrected pgadmin3 documentation path to avoid errors (#448)
8f5272c
  Re-added the branding directory for some users (RHBZ #473748)
8f5272c
  Removed useless -docs package, main package shipped it anyway
8f5272c
  Many spec file and package cleanups to get rpmlint very silent