2b1fba5
# Note: devel package does not contain any headers. Do I need to add them?
2b1fba5
# .so files are shared libraries, I need to call /sbin/ldconfig, but where? In a
2b1fba5
# post section for the devel package?
2b1fba5
# Schemas handling also needs to be looked at.
2b1fba5
Name:           aeskulap
2b1fba5
Version:        0.2.2
Mario Ceresa 2d78b67
Release:        0.20beta1%{?dist}
2b1fba5
Summary:        A full open source replacement for commercially available DICOM viewers
2b1fba5
2b1fba5
License:        LGPLv2+
2b1fba5
URL:            http://aeskulap.nongnu.org
2b1fba5
2b1fba5
Source0:        http://www.bms-austria.com/~pipelka/aeskulap/%{name}-%{version}-beta1.tar.gz
2b1fba5
Source1:        %{name}-tutorials.pdf
2b1fba5
# applied all the patches from the debian package
2b1fba5
# svn export svn://svn.debian.org/svn/debian-med/trunk/packages/aeskulap/trunk/ aeskulap-debian
2b1fba5
Patch0:         %{name}-circular-svg.patch
2b1fba5
Patch2:         %{name}-DcmElement.patch
2b1fba5
Patch3:         %{name}-desktop.patch
2b1fba5
Patch4:         %{name}-findAndCopyElement.patch
2b1fba5
Patch5:         %{name}-gcc.patch
2b1fba5
Patch6:         %{name}-i18n.patch
2b1fba5
# This is used to update the configure.in before running autoreconf to update the autotoolization. 
2b1fba5
Patch7:         %{name}-configure.patch
2b1fba5
Patch8:         %{name}-oflog.patch
2b1fba5
Patch9:         %{name}-patientNames.patch
2b1fba5
2b1fba5
BuildRequires:   dcmtk-devel
2b1fba5
BuildRequires:   intltool libpng-devel libjpeg-turbo-devel
2b1fba5
BuildRequires:   libtiff-devel gtkmm24-devel libglademm24-devel 
2b1fba5
BuildRequires:   gconfmm26-devel libtool
2b1fba5
BuildRequires:   openssl-devel
2b1fba5
BuildRequires:   gettext-devel
2b1fba5
BuildRequires:   tcp_wrappers-devel
2b1fba5
BuildRequires:   desktop-file-utils
2b1fba5
BuildRequires:   GConf2
2b1fba5
Requires(pre):   GConf2
2b1fba5
Requires(post):  GConf2
2b1fba5
Requires(preun): GConf2
2b1fba5
2b1fba5
%description
2b1fba5
Aeskulap is able to load a series of special images stored in the
2b1fba5
DICOM format for review. Additionally Aeskulap is able to query
2b1fba5
and fetch DICOM images from archive nodes (also called PACS) over
2b1fba5
the network.
2b1fba5
2b1fba5
The goal of this project is to create a full open source replacement
2b1fba5
for commercially available DICOM viewers.
2b1fba5
2b1fba5
Aeskulap is based on gtkmm, glademm and gconfmm and designed to run
2b1fba5
under Linux. Ports of these packages are available for different
2b1fba5
platforms. It should be quite easy to port Aeskulap to any platform
2b1fba5
were these packages are available.
2b1fba5
2b1fba5
%prep
2b1fba5
%setup -q -n %{name}-%{version}-beta1
2b1fba5
# configure.in patch
2b1fba5
%patch7 -p1
2b1fba5
# otherwise it fails
2b1fba5
touch ./NEWS
2b1fba5
autoreconf -if
2b1fba5
2b1fba5
# apply patches
2b1fba5
%patch0 -p1
2b1fba5
%patch2 -p1
0716ade
%patch3 -p2
2b1fba5
%patch4 -p1
2b1fba5
%patch5 -p1
2b1fba5
%patch6 -p1
2b1fba5
%patch8 -p1
2b1fba5
%patch9 -p1
2b1fba5
2b1fba5
# remove bundled copy of dcmtk!
2b1fba5
rm -rvf dcmtk
2b1fba5
2b1fba5
# remove header : Debian used a patch for this
2b1fba5
sed -ri "/dcmtk\/dcmdata\/dcdebug\.h/d" ./imagepool/poolfindassociation.cpp ./imagepool/poolmoveassociation.cpp
2b1fba5
2b1fba5
%build
2b1fba5
# point her to the correct lib version depending on the arch
2b1fba5
sed -i 's/lib -ldcmjpeg/%{_lib}\/dcmtk -ldcmjpeg/' configure configure.in
2b1fba5
2b1fba5
%configure --disable-static --disable-schemas-install
2b1fba5
make %{?_smp_mflags}
2b1fba5
2b1fba5
%install
2b1fba5
rm -rf $RPM_BUILD_ROOT
2b1fba5
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
2b1fba5
make install DESTDIR=$RPM_BUILD_ROOT
2b1fba5
2b1fba5
install -p -m 0644 %{SOURCE1} -t .
2b1fba5
2b1fba5
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
2b1fba5
2b1fba5
# remove .la files. Is this sufficient?
2b1fba5
find $RPM_BUILD_ROOT -name "*.la" -exec rm -fv '{}' \;
2b1fba5
2b1fba5
%find_lang %{name}
2b1fba5
2b1fba5
%pre
2b1fba5
%gconf_schema_prepare %{name}
2b1fba5
2b1fba5
%post
2b1fba5
%gconf_schema_upgrade %{name}
2b1fba5
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
2b1fba5
2b1fba5
%preun
2b1fba5
%gconf_schema_remove %{name}
2b1fba5
2b1fba5
%postun
2b1fba5
if [ $1 -eq 0 ] ; then
2b1fba5
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
2b1fba5
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
2b1fba5
fi
2b1fba5
2b1fba5
%posttrans
2b1fba5
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
2b1fba5
2b1fba5
%files -f %{name}.lang
2b1fba5
%defattr(-,root,root,-)
2b1fba5
%{_bindir}/%{name}
2b1fba5
%{_libdir}/%{name}/
2b1fba5
%{_datadir}/%{name}/
2b1fba5
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
2b1fba5
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
2b1fba5
%{_datadir}/applications/%{name}.desktop
2b1fba5
%{_sysconfdir}/gconf/schemas/%{name}.schemas
2b1fba5
%doc AUTHORS ABOUT-NLS ChangeLog COPYING README %{name}-tutorials.pdf
2b1fba5
2b1fba5
%changelog
Mario Ceresa 2d78b67
* Tue Dec 16 2014 Mario Ceresa <mrceresa AT fedoraproject DOT org> - 0.2.2-0.20beta1
Mario Ceresa 2d78b67
- Bump up for dcmtk rebuild
Mario Ceresa 2d78b67
373eed7
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-0.19beta1
373eed7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
373eed7
b33dc16
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-0.18beta1
b33dc16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b33dc16
3d3d993
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-0.17beta1
3d3d993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3d3d993
0716ade
* Thu Mar 14 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.2.2-0.16beta1
0716ade
- Update patch
0716ade
0b8c94f
* Thu Mar 14 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.2.2-0.15beta1
ab2be54
- Update desktop file patch to correct mimetype
ab2be54
9a3fd08
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-0.14beta1
9a3fd08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9a3fd08
c58936b
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 0.2.2-0.13beta1
c58936b
- rebuild due to "jpeg8-ABI" feature drop
c58936b
f60aa6b
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.2.2-0.12beta1
f60aa6b
- rebuild against new libjpeg
f60aa6b
e700785
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-0.11beta1
e700785
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e700785
b9a3194
* Mon May 07 2012 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.2-0.10beta1
b9a3194
- Spec bump for libtiff update and rebuild
b9a3194
45af7c5
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-0.9beta1
45af7c5
- Rebuilt for c++ ABI breakage
45af7c5
ef4f943
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-0.8beta1
ef4f943
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ef4f943
ca0fa88
* Fri Jan 06 2012 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.2-0.7beta1
ca0fa88
- spec bump for gcc 4.7 rebuild
ca0fa88
1da76fa
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.2.2-0.6beta1
1da76fa
- Rebuild for new libpng
1da76fa
2b1fba5
* Sat Jul 09 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.2-0.5beta1
2b1fba5
- Update scriptlets
2b1fba5
2b1fba5
* Sat Jul 09 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.2-0.4beta1
2b1fba5
- Update license
2b1fba5
2b1fba5
* Mon Jul 04 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.2-0.3beta1
2b1fba5
- remove autoconf patch and call autoreconf in the spec
2b1fba5
2b1fba5
* Wed Jun 29 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.2-0.2beta1
2b1fba5
- get rid of devel package
2b1fba5
- add tutorials as additional documentation
2b1fba5
 
2b1fba5
* Mon Jun 06 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.2-0.1beta1
2b1fba5
- initial rpm build