8cbc870
Name:		arc-gui-clients
f84bb51
Version:	0.4.6
66b023d
Release:	17%{?dist}
8cbc870
Summary:	ARC Graphical Clients
8cbc870
8cbc870
License:	ASL 2.0
8cbc870
URL:		http://sourceforge.net/projects/arc-gui-clients/
8cbc870
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}-Source.tar.gz
f84bb51
#		Fixes for ARC version 4
f84bb51
Patch0:		%{name}-arc4.patch
28104c8
#		Fixes for ARC version 5.1
28104c8
Patch1:		%{name}-arc5.patch
09f6ab6
#		Fix some compiler warnings
09f6ab6
Patch2:		%{name}-warnings.patch
2e2f108
#		Fix a crash
2e2f108
Patch3:		%{name}-no-job-list-crash-fix.patch
8cbc870
8cbc870
BuildRequires:	cmake
8cbc870
BuildRequires:	qt4-devel
8cbc870
BuildRequires:	qt4-webkit-devel
8cbc870
BuildRequires:	glibmm24-devel
f84bb51
BuildRequires:	nss-devel
8cbc870
BuildRequires:	nordugrid-arc-devel
8cbc870
BuildRequires:	desktop-file-utils
8cbc870
8cbc870
%description
8cbc870
Provides graphical clients to the NorduGrid ARC middleware.
8cbc870
8cbc870
%prep
8cbc870
%setup -q -n %{name}-%{version}-Source
f84bb51
%patch0 -p1
28104c8
%patch1 -p1
09f6ab6
%patch2 -p1
2e2f108
%patch3 -p1
8cbc870
8cbc870
%build
09f6ab6
if pkg-config --atleast-version 2.6 sigc++-2.0 ; then
09f6ab6
  if [ `echo __GNUC__ | gcc -E - | tail -1` -lt 6 ] ; then
09f6ab6
    # Workaround for too new libsigc++/glibmm, too old gcc combination
09f6ab6
    export CXXFLAGS="%{optflags} -std=c++11"
09f6ab6
  fi
09f6ab6
fi
28104c8
66b023d
%cmake .
8cbc870
make %{?_smp_mflags}
8cbc870
8cbc870
%install
8cbc870
make install DESTDIR=%{buildroot}
8cbc870
Richard Hughes ec7fdc0
# Register as an application to be visible in the software center
Richard Hughes ec7fdc0
#
Richard Hughes ec7fdc0
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes ec7fdc0
# project, translated and installed into the right place during `make install`.
Richard Hughes ec7fdc0
#
Richard Hughes ec7fdc0
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes ec7fdc0
#
09f6ab6
mkdir -p %{buildroot}%{_datadir}/appdata
09f6ab6
cat > %{buildroot}%{_datadir}/appdata/arcstat-ui.appdata.xml <
Richard Hughes ec7fdc0
Richard Hughes ec7fdc0
Richard Hughes ec7fdc0
<component type="desktop">
Richard Hughes ec7fdc0
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes ec7fdc0
  <id>arcstat-ui.desktop</id>
Richard Hughes ec7fdc0
  <metadata>
Richard Hughes ec7fdc0
    <value key="X-Merge-With-Parent">arcstorage-ui.desktop</value>
Richard Hughes ec7fdc0
  </metadata>
Richard Hughes ec7fdc0
</component>
Richard Hughes ec7fdc0
EOF
Richard Hughes ec7fdc0
8cbc870
desktop-file-validate %{buildroot}%{_datadir}/applications/arccert-ui.desktop
8cbc870
desktop-file-validate %{buildroot}%{_datadir}/applications/arcproxy-ui.desktop
8cbc870
desktop-file-validate %{buildroot}%{_datadir}/applications/arcstat-ui.desktop
8cbc870
desktop-file-validate %{buildroot}%{_datadir}/applications/arcstorage-ui.desktop
8cbc870
desktop-file-validate %{buildroot}%{_datadir}/applications/arcsub-ui.desktop
8cbc870
8cbc870
%files
8cbc870
%{_bindir}/arccert-ui
8cbc870
%{_bindir}/arcproxy-ui
8cbc870
%{_bindir}/arcstat-ui
8cbc870
%{_bindir}/arcstorage-ui
8cbc870
%{_bindir}/arcsub-ui
Richard Hughes ec7fdc0
%{_datadir}/appdata/*.appdata.xml
8cbc870
%{_datadir}/applications/arccert-ui.desktop
8cbc870
%{_datadir}/applications/arcproxy-ui.desktop
8cbc870
%{_datadir}/applications/arcstat-ui.desktop
8cbc870
%{_datadir}/applications/arcstorage-ui.desktop
8cbc870
%{_datadir}/applications/arcsub-ui.desktop
a4af65b
%{!?_licensedir: %doc AUTHORS LICENSE README}
a4af65b
%{?_licensedir: %doc AUTHORS README}
a4af65b
%{?_licensedir: %license LICENSE}
8cbc870
8cbc870
%changelog
66b023d
* Thu Jan 17 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.4.6-17
66b023d
- Add source directory to cmake command
66b023d
8bf986a
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-16
8bf986a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8bf986a
2e2f108
* Sun Feb 25 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.4.6-15
2e2f108
- Fix a crash
2e2f108
6c9987b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-14
6c9987b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6c9987b
09f6ab6
* Wed Oct 11 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.4.6-13
09f6ab6
- Fix EPEL 7 compilation
09f6ab6
- Fix some compiler warnings
09f6ab6
72c88db
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-12
72c88db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
72c88db
2ced3aa
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-11
2ced3aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2ced3aa
95d1916
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-10
95d1916
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
95d1916
28104c8
* Fri Jun 24 2016 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.4.6-9
28104c8
- Adapt to ARC 5.1
28104c8
fe370e9
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-8
fe370e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fe370e9
4d501d7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.6-7
4d501d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4d501d7
a302f0a
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.4.6-6
a302f0a
- Rebuilt for GCC 5 C++11 ABI change
a302f0a
a4af65b
* Tue Mar 31 2015 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.4.6-5
a4af65b
- Implement new license packaging guidelines
a4af65b
Richard Hughes ec7fdc0
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 0.4.6-4
Richard Hughes ec7fdc0
- Add an AppData file for the software center
Richard Hughes ec7fdc0
b755e89
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.6-3
b755e89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b755e89
21ca6f6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.6-2
21ca6f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
21ca6f6
f84bb51
* Thu Nov 28 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.4.6-1
f84bb51
- Release 0.4.6
f84bb51
41cd240
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-3
41cd240
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
41cd240
8cbc870
* Thu Apr 25 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.4.3-2
8cbc870
- Add missing BR qt4-webkit-devel
8cbc870
8cbc870
* Thu Apr 18 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.4.3-1
8cbc870
- Release 0.4.3
8cbc870
8cbc870
* Fri Nov 02 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.3.1-3
8cbc870
- Drop unnecessary scriptlets
8cbc870
8cbc870
* Fri Oct 19 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.3.1-2
8cbc870
- Drop obsolete buildroot removal and group tag
8cbc870
8cbc870
* Tue Sep 18 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.3.1-1
8cbc870
- Update to 0.3.1
8cbc870
8cbc870
* Wed Aug 22 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.3.0-1
8cbc870
- Update to 0.3.0
8cbc870
8cbc870
* Wed Jul 04 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 0.2.3-1
8cbc870
- Initial build