[packages/aeskulap] pldize
glen
glen at pld-linux.org
Sun Aug 7 13:39:00 CEST 2016
commit d84b39f43521076406f477d0e8308455d978347c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Aug 7 14:38:17 2016 +0300
pldize
note: %gconf_schema_* macros do not exist in pld
aeskulap.spec | 45 +++++++++++++++++++++++----------------------
1 file changed, 23 insertions(+), 22 deletions(-)
---
diff --git a/aeskulap.spec b/aeskulap.spec
index c7d1a44..bee4de7 100644
--- a/aeskulap.spec
+++ b/aeskulap.spec
@@ -2,32 +2,38 @@ Summary: Full open source replacement for commercially available DICOM viewers
Name: aeskulap
Version: 0.2.2
Release: 0.1
+Group: X11/Applications/Science
# The sources of the (internal) libraries are LGPLv2+, the rest of the sources are GPLv2+,
# except binreloc.{c,h} and the documentation, which are in the public domain
License: GPLv2+ and LGPLv2+ and Public Domain
+Source0: https://github.com/jenslody/aeskulap/archive/e3ef378/%{name}-%{version}.tar.gz
+# Source0-md5: 184d2c2c7b2826723686b98cc6833a12
URL: https://github.com/jenslody/aeskulap
-Source0: https://github.com/jenslody/aeskulap/archive/master.zip#/%{name}-%{version}-%{release}.zip
-# Source0-md5: 62ce5c0da69e3edecb9d7c58effc43fd
-Group: X11/Applications/Science
BuildRequires: GConf2
BuildRequires: appstream-glib
BuildRequires: dcmtk-devel >= 3.6.1
BuildRequires: desktop-file-utils
+BuildRequires: gconfmm-devel
BuildRequires: gettext-devel
BuildRequires: glib2-devel
BuildRequires: gtkmm-devel
BuildRequires: intltool
+BuildRequires: libglademm-devel
BuildRequires: libjpeg-turbo-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: libwrap-devel
BuildRequires: openssl-devel
-BuildRequires: gconfmm-devel
-BuildRequires: libglademm-deve
+BuildRequires: rpmbuild(macros) >= 1.596
Requires(pre): GConf2
Requires(post): GConf2
Requires(preun): GConf2
+Requires: desktop-file-utils
+Requires: gtk-update-icon-cache
+Requires: hicolor-icon-theme
+Requires: shared-mime-info
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Aeskulap is able to load a series of special images stored in the
@@ -44,20 +50,21 @@ platforms. It should be quite easy to port Aeskulap to any platform
were these packages are available.
%prep
-%setup -q -n aeskulap-master
-autoreconf --force --install
-intltoolize --force --copy --automake
+%setup -qc
+mv aeskulap-*/* .
%build
+autoreconf --force --install
+intltoolize --force --copy --automake
# point to the correct lib version depending on the arch
sed -i 's/lib -ldcmjpeg/%{_lib} -ldcmjpeg/' configure configure.ac
export CPPFLAGS='-std=c++11'
%configure \
--disable-static \
- --disable-schemas-install \
+ --disable-schemas-install
-%{__make} %{?_smp_mflags}
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
@@ -65,8 +72,8 @@ export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-desktop-file-validate $RPM_BUILD_ROOT/%{_desktopdir}/%{name}.desktop
-appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_datadir}/appdata/%{name}.appdata.xml
+desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
%find_lang %{name}
@@ -78,21 +85,15 @@ rm -rf $RPM_BUILD_ROOT
%post
%gconf_schema_upgrade %{name}
-%update_icon_cache_post hicolor &>/dev/null || :
-%{_bindir}/%update_desktop_database
+%update_icon_cache hicolor
+%update_desktop_database
%preun
%gconf_schema_remove %{name}
%postun
-if [ $1 -eq 0 ] ; then
- %update_icon_cache_post hicolor &>/dev/null
- gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-fi
-%{_bindir}/%update_desktop_database
-
-%posttrans
-gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+%update_icon_cache hicolor
+%update_desktop_database
%files -f %{name}.lang
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/aeskulap.git/commitdiff/d84b39f43521076406f477d0e8308455d978347c
More information about the pld-cvs-commit
mailing list