[freemedforms] initial import #707002
Ankur Sinha
ankursinha at fedoraproject.org
Mon Jul 11 01:41:01 UTC 2011
commit ff03f3dab81b496b11761d96a275b7b93821f1a5
Author: Ankur Sinha <sanjay.ankur at gmail.com>
Date: Mon Jul 11 07:10:41 2011 +0530
initial import #707002
.gitignore | 1 +
freemedforms-remove-quazip.patch | 63 ++++++++++++++++++++++
freemedforms.spec | 109 ++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 174 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..209dbf2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/freemedformsfullsources-0.5.9~alpha1.tgz
diff --git a/freemedforms-remove-quazip.patch b/freemedforms-remove-quazip.patch
new file mode 100644
index 0000000..76af441
--- /dev/null
+++ b/freemedforms-remove-quazip.patch
@@ -0,0 +1,63 @@
+diff -ur ../freemedforms-0.5.9~alpha1.orig/global_resources/translations/xmlio_de.ts ./global_resources/translations/xmlio_de.ts
+--- ../freemedforms-0.5.9~alpha1.orig/global_resources/translations/xmlio_de.ts 2010-09-25 13:59:38.000000000 +0530
++++ ./global_resources/translations/xmlio_de.ts 2011-06-15 14:57:06.227533580 +0530
+@@ -48,14 +48,6 @@
+ </message>
+ </context>
+ <context>
+- <name>QuaZipFile</name>
+- <message>
+- <location filename="../../contrib/quazip/quazip/quazipfile.cpp" line="141"/>
+- <source>ZIP/UNZIP API error %1</source>
+- <translation type="unfinished"></translation>
+- </message>
+-</context>
+-<context>
+ <name>UserAdministrativePage</name>
+ <message>
+ <location filename="../../usertoolkit/widgets/tkUserWizard.cpp" line="575"/>
+diff -ur ../freemedforms-0.5.9~alpha1.orig/global_resources/translations/xmlio_fr.ts ./global_resources/translations/xmlio_fr.ts
+--- ../freemedforms-0.5.9~alpha1.orig/global_resources/translations/xmlio_fr.ts 2010-09-25 13:59:38.000000000 +0530
++++ ./global_resources/translations/xmlio_fr.ts 2011-06-15 14:57:23.763622553 +0530
+@@ -48,14 +48,6 @@
+ </message>
+ </context>
+ <context>
+- <name>QuaZipFile</name>
+- <message>
+- <location filename="../../contrib/quazip/quazip/quazipfile.cpp" line="141"/>
+- <source>ZIP/UNZIP API error %1</source>
+- <translation type="unfinished"></translation>
+- </message>
+-</context>
+-<context>
+ <name>UserAdministrativePage</name>
+ <message>
+ <location filename="../../usertoolkit/widgets/tkUserWizard.cpp" line="575"/>
+diff -ur ../freemedforms-0.5.9~alpha1.orig/libs/libs.pro ./libs/libs.pro
+--- ../freemedforms-0.5.9~alpha1.orig/libs/libs.pro 2010-06-10 23:05:52.000000000 +0530
++++ ./libs/libs.pro 2011-06-15 14:55:51.896145574 +0530
+@@ -6,6 +6,5 @@
+ medicalutils \
+ aggregation \
+ extensionsystem \
+- utils \
+- ../contrib/quazip
++ utils
+
+diff -ur ../freemedforms-0.5.9~alpha1.orig/plugins/coreplugin/coreplugin_dependencies.pri ./plugins/coreplugin/coreplugin_dependencies.pri
+--- ../freemedforms-0.5.9~alpha1.orig/plugins/coreplugin/coreplugin_dependencies.pri 2011-03-09 10:13:28.000000000 +0530
++++ ./plugins/coreplugin/coreplugin_dependencies.pri 2011-06-15 15:01:28.478764695 +0530
+@@ -1,4 +1,3 @@
+ include( $${SOURCES_LIBS_PATH}/extensionsystem.pri )
+ include( $${SOURCES_LIBS_PATH}/translationutils.pri )
+ include( $${SOURCES_LIBS_PATH}/utils.pri )
+-include( $${SOURCES_CONTRIBS_PATH}/quazip/quazip.pri)
+diff -ur ../freemedforms-0.5.9~alpha1.orig/plugins/saverestoreplugin/saverestoreplugin_dependencies.pri ./plugins/saverestoreplugin/saverestoreplugin_dependencies.pri
+--- ../freemedforms-0.5.9~alpha1.orig/plugins/saverestoreplugin/saverestoreplugin_dependencies.pri 2010-03-23 16:22:19.000000000 +0530
++++ ./plugins/saverestoreplugin/saverestoreplugin_dependencies.pri 2011-06-15 15:01:08.000676095 +0530
+@@ -1,4 +1,3 @@
+ include( ../coreplugin/coreplugin.pri )
+ include( $${SOURCES_LIBS_PATH}/utils.pri)
+ include( $${SOURCES_LIBS_PATH}/translationutils.pri)
+-include( $${SOURCES_CONTRIBS_PATH}/quazip/quazip.pri )
diff --git a/freemedforms.spec b/freemedforms.spec
new file mode 100644
index 0000000..a39891e
--- /dev/null
+++ b/freemedforms.spec
@@ -0,0 +1,109 @@
+Name: freemedforms
+Version: 0.5.9
+Release: 0.1.alpha1%{?dist}
+Summary: An open Electronic Medical Record Manager
+
+License: GPLv3+ and LGPLv2
+URL: http://www.freemedforms.com
+Source0: http://freemedforms.googlecode.com/files/freemedformsfullsources-0.5.9~alpha1.tgz
+
+# remove quazip from the project files
+Patch0: %{name}-remove-quazip.patch
+
+BuildRequires: qt-devel libXext-devel qt-mysql
+BuildRequires: desktop-file-utils
+BuildRequires: quazip-devel libzip-devel
+BuildRequires: minizip-devel
+BuildRequires: zlib-devel
+Requires: %{name}-devel
+
+%description
+FreeMedForms aims to be a open Electronic Medical Record Manager.
+FreeMedForms is also a lot of derivatives sub-project, which are
+just standalone compilation of FreeMedForms plugins.
+
+This project is a free and open source project. A community grows up
+around it. FreeMedForms and derivatives is released under the terms
+of the new BSD License. Some parts of the code are LGPL v2.1.
+
+FreeMedForms and Derivatives are coded in C++/Qt4.4.3 at least.
+FreeMedForms and Derivatives are available for :
+- MacOs X universal
+- Linux : Ubuntu, Debian, OpenSuse, standalone binary
+- FreeBSD : need compilation of SVN trunk (please contact author)
+- Windows
+
+%package devel
+Summary: Development files for %{name}
+Group: Applications/Databases
+
+Requires: %{name} = %{version}
+
+%description devel
+This is the devel Package for %{name}
+
+%prep
+%setup -q -n %{name}-%{version}~alpha1
+%patch0 -p0 -b .removes_quazip_from_qmake_project_files
+
+# contrib/quazip is the location of the bundled quazip library
+# delete everything other than the modified global.h and global.cpp files
+find ./contrib/ ! -name "global.*" ! -name "exporter.h" -exec rm -fv '{}' \;
+
+# add the directory to include path, it looks for unzip.h and fails otherwise
+sed -i 's|\(INCLUDEPATH += $${PWD}/plugins $${PWD}/libs\)|\1 %{_includedir}/minizip/ |' config.pri
+sed -i '/DEPENDPATH += $${PWD}\/plugins $${PWD}\/libs/d' config.pri
+
+# correct include : could've used a patch too I guess
+sed -i 's|#include <quazip/quazip/quazipfile.h>|#include <quazip/quazipfile.h>|' plugins/saverestoreplugin/saverestorepage.cpp
+
+%build
+export PATH=$PATH:/usr/%{_lib}/qt4/bin/
+
+lrelease global_resources/translations/*.ts
+qmake freemedforms.pro -r -config release "CONFIG+=LINUX_INTEGRATED" "INSTALL_ROOT_PATH=$RPM_BUILD_ROOT%{_prefix}" "LOWERED_APPNAME=freemedforms" "LIBRARY_BASENAME=%{_lib}"
+# fails with j4, upstream said use j1
+make -j1
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+chmod -v 0755 $RPM_BUILD_ROOT/%{_libdir}/freemedforms/*.so*
+# internal libraries, let rpath be
+#chrpath --delete $RPM_BUILD_ROOT/%{_libdir}/FreeMedForms/*.so*
+#chrpath --delete $RPM_BUILD_ROOT/%{_bindir}/FreeMedForms
+
+# fix up desktop file
+sed -r -i "s/Categories=Office;MedicalSoftware/Categories=Office;/" ${RPM_BUILD_ROOT}%{_datadir}/applications/FreeMedForms.desktop
+sed -r -i "/Version/d" ${RPM_BUILD_ROOT}%{_datadir}/applications/FreeMedForms.desktop
+# validate desktop file
+desktop-file-validate \
+${RPM_BUILD_ROOT}%{_datadir}/applications/FreeMedForms.desktop
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING.txt INSTALL README.txt
+%{_datadir}/freemedforms/
+%{_bindir}/FreeMedForms
+%dir %{_libdir}/freemedforms
+%{_libdir}/freemedforms/*so.*
+%{_libdir}/freemedforms/*pluginspec
+%{_datadir}/applications/FreeMedForms.desktop
+%{_datadir}/pixmaps/freemedforms.svg
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/freemedforms/*.so
+
+%changelog
+* Wed Jun 15 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.9-0.1alpha1
+- Let rpath be
+- Corrections as Eric suggested at https://bugzilla.redhat.com/show_bug.cgi?id=707002#c2
+
+* Sat May 28 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.9-0.1alpha1
+- Used chrpath to remove rpath additions
+- Initial rpm build
+- Based on the spec used for OpenSUSE maintained by Sascha Manns.
+
diff --git a/sources b/sources
index e69de29..7123217 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+78e5ddf14f9decce9c466fc8bb2b12b1 freemedformsfullsources-0.5.9~alpha1.tgz
More information about the scm-commits
mailing list