swt2c / rpms / pgadmin3

Forked from rpms/pgadmin3 5 years ago
Clone
72f2de7
Summary:	Graphical client for PostgreSQL
72f2de7
Name:		pgadmin3
d540839
Version:	1.22.1
4e366b3
Release:	3%{?dist}
da66fc2
License:	PostgreSQL
cvsextras 90cdfb9
Group:		Applications/Databases
d540839
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
19c89b4
# Move this == null check to a static function.  This works, but I opted
19c89b4
# for the compiler flag since it "fixes" all cases, and pgadmin4 is on the
19c89b4
# way.
19c89b4
Patch3:		%{name}-nullthis.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
d540839
pgAdmin III is designed to answer the needs of all users,
d540839
from writing simple SQL queries to developing complex databases.
d540839
The graphical interface supports all PostgreSQL features and
d540839
makes administration easy. The application also includes a syntax
d540839
highlighting SQL editor, a server-side code editor, an
d540839
SQL/batch/shell job scheduling agent, support for the Slony-I
d540839
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
4e366b3
%patch3 -p1 -b .nullthis
cvsextras 90cdfb9
cvsextras 90cdfb9
%build
a5a7930
export LIBS="-lwx_gtk2u_core-2.8"
19c89b4
export CXXFLAGS="%optflags -fno-delete-null-pointer-checks"
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
4e366b3
* Fri Jul 19 2016 Stuart Gathman <stuart@gathman.org> 1.22.1-3
4e366b3
- Fix a few of the null pointer problems, bz#1369520
4e366b3
19c89b4
* Fri Jul 19 2016 Stuart Gathman <stuart@gathman.org> 1.22.1-2
19c89b4
- Compile with --no-delete-null-pointer-checks, bz#1335043
19c89b4
19c89b4
* Fri Jul  1 2016 Stuart Gathman <stuart@gathman.org> 1.22.1-1.3
19c89b4
- Attempt to mitigate pervasive this == 0 coding error
19c89b4
d540839
* Wed Feb 17 2016 Devrim GUNDUZ <devrim@gunduz.org> 1.22.1-1
d540839
- Update to 1.22.1
d540839
- Update download URL
d540839
f96b34d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.0-4
f96b34d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f96b34d
ef9cd18
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20.0-3
ef9cd18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ef9cd18
2add9a2
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.20.0-2
2add9a2
- Rebuilt for GCC 5 C++11 ABI change
2add9a2
a562919
* Tue Mar 10 2015 Kevin Fenzi <kevin@scrye.com> 1.20.0-1
a562919
- Rebuild for new gcc
a562919
5832b5b
* Mon Dec 22 2014 Devrim GUNDUZ <devrim@gunduz.org> 1.20.0-1
5832b5b
- Update to 1.20.0
5832b5b
- Update download URL -- community will deprecate FTP service.
5832b5b
2db021e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18.1-3
2db021e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2db021e
7fb5eeb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18.1-2
7fb5eeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7fb5eeb
29ea91a
* Tue Oct 8 2013 Devrim GUNDUZ <devrim@gunduz.org> 1.18.1-1
29ea91a
- Update to 1.18.1
29ea91a
06c98d1
* Wed Sep 11 2013 Devrim GUNDUZ <devrim@gunduz.org> 1.18.0-1
06c98d1
- Update to 1.18.0
06c98d1
- Trim changelog
06c98d1
33b4346
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16.1-2
33b4346
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
33b4346
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