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
aaf654b
Release:        0.12beta1%{?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
aaf654b
%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
aaf654b
* Thu Mar 14 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.2.2-0.12beta1
aaf654b
- Update patch command. Should build now.
aaf654b
ab2be54
* Thu Mar 14 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.2.2-0.11beta1
ab2be54
- Update desktop file patch to correct mimetype
ab2be54
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